sys-kernel/gentoo-kernel: Bump to 6.12.87_p2

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-05-13 22:02:14 +02:00
parent a6d9135bf4
commit 4d1dd202b7
2 changed files with 176 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@ DIST linux-gentoo-patches-6.1.171.tar.xz 29564 BLAKE2B a843335a9ccda738443882233
DIST linux-gentoo-patches-6.1.172_p1.tar.xz 13924 BLAKE2B 1c29bf3a2eaf724e4529015d21bf340ab622db7a14d1ad90b82fa385316fe879ee7cfea19523d6b7e996f576bafd8dbf6d6aa9baf503bed54e0ed782d36447ab SHA512 025777b1743d5d09e043289003f490727148910fbb7d956d44489c22c08111eaaa8a034ca97d6f9a6ff9a2c6a2b985cbfda87eecd80a8af79576e1ed7e49b010
DIST linux-gentoo-patches-6.12.87.tar.xz 20828 BLAKE2B 3d900956f1ffd0cdced9f0850ec8e785b271933855856cfce7e58542b123a5b8357aa22ea541171da249f173502d4aa7039ba136f730c13208ce408ce1e21e63 SHA512 f6a2813941244d3f03fe0fc6ff9a6f738fbb33263d279e412b5de82a74940fbf2fb687eb0f620cd61842e67f71f78a2e475ffeafc712d2b022a1f4d54ada5824
DIST linux-gentoo-patches-6.12.87_p1.tar.xz 16712 BLAKE2B 3cb266f229f5ede121190130698e57f9e77f625355803b4bddedbb27688431bf0e51a8a4ea5a6675359b7b0fa42ce4b4c4606f72f5c1faf04c9d49019aecd040 SHA512 a3cd3af5834cdfc4907d3f78604471bac6fd7834201ae127b029389f7af2d42f53e13f3d532ca4b6336cdd6cf19774a006a87eea12f123bcf58a6ed9934bef0a
DIST linux-gentoo-patches-6.12.87_p2.tar.xz 17460 BLAKE2B 0c18c004aff338318d2349a77373432395ce805185ac7b82f1f7fe9b503f437329b919c9be20dd0da63cb4f42cf62f799a82818f19d99fc044a6d653458597ac SHA512 16648ede808ae7918409f3503cca6ec19b4a3b998187059a20daccb0ce9fae0a96bc5dce80ba4675f30370e9ff801beaa9b85c90f387b317a01702c8eff96f9d
DIST linux-gentoo-patches-6.18.28.tar.xz 11732 BLAKE2B 33e143b5e0d03f94e797b152af7bbeb2dbf8a438fae48612306849faaae3dc45c2abcdd9949477b2c5d59ed75e6bee2106a1236b29ce4eb6fab17bf1dbdb22f3 SHA512 73df64fda24def43a8a346edadb18a778a5fe7125af4292f661ea14d6c8ac7ec3ebf39158062de91c3f99a1d71eb68a803af2b19163b4d4aaeefd70553d1e481
DIST linux-gentoo-patches-6.18.29.tar.xz 11644 BLAKE2B 967e17c2cf07f2126370238a8112b7271369931ff25f8f80cefd57ecefa774d0daa39286e63ac76a034c9f90c11a614c2a8ede4f74d047446d9e6f71f072c6fb SHA512 f3834ff6388cc53e2f5191c2999ff5df5a406fad226e5d7ee79b56cb2610658e8401714d94739da2342f19718dd2783d626047658e4703c55fcd59d35536dcd0
DIST linux-gentoo-patches-6.18.29_p1.tar.xz 12964 BLAKE2B efd053b33cc5a608189b4611d71609b5fa1dc9d0f00090a002e24ee6a0074ab9e4c305a93fbe94a1ff15be615361a645f237573794d4d826776fea661698e393 SHA512 e7be8ff70d9cf65c467fbbfc0969531b27a00527f1347ee2ce231abf2876f21cedb61d2c904b89090dd80c2f53448e1ab8c28fc362f0c5f336ca173b25c69614
@@ -0,0 +1,175 @@
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
KERNEL_IUSE_GENERIC_UKI=1
inherit kernel-build toolchain-funcs verify-sig
BASE_P=linux-${PV%.*}
PATCH_PV=${PV%_p*}
PATCHSET=linux-gentoo-patches-${PV}
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
CONFIG_VER=6.12.41-gentoo
GENTOO_CONFIG_VER=g18
SHA256SUM_DATE=20260508
DESCRIPTION="Linux kernel built with Gentoo patches"
HOMEPAGE="
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
https://www.kernel.org/
"
SRC_URI+="
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
verify-sig? (
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
)
amd64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
-> kernel-x86_64-fedora.config.${CONFIG_VER}
)
arm64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
-> kernel-aarch64-fedora.config.${CONFIG_VER}
)
ppc64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
)
riscv? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
-> kernel-riscv64-fedora.config.${CONFIG_VER}
)
x86? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
-> kernel-i686-fedora.config.${CONFIG_VER}
)
"
S=${WORKDIR}/${BASE_P}
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="debug hardened"
REQUIRED_USE="
arm? ( savedconfig )
hppa? ( savedconfig )
sparc? ( savedconfig )
"
RDEPEND="
!sys-kernel/gentoo-kernel-bin:${SLOT}
"
BDEPEND="
debug? ( dev-util/pahole )
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
"
PDEPEND="
>=virtual/dist-kernel-${PV}
"
QA_FLAGS_IGNORED="
usr/src/linux-.*/scripts/gcc-plugins/.*.so
usr/src/linux-.*/vmlinux
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
src_unpack() {
if use verify-sig; then
cd "${DISTDIR}" || die
verify-sig_verify_signed_checksums \
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
cd "${WORKDIR}" || die
fi
default
}
src_prepare() {
local patch
eapply "${WORKDIR}/patch-${PATCH_PV}"
eapply "${WORKDIR}/${PATCHSET}"
default
# add Gentoo patchset version
local extraversion=${PV#${PATCH_PV}}
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
local biendian=false
# prepare the default config
case ${ARCH} in
arm | hppa | loong | sparc)
> .config || die
;;
amd64)
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
;;
arm64)
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
biendian=true
;;
ppc)
# assume powermac/powerbook defconfig
# we still package.use.force savedconfig
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
;;
ppc64)
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
biendian=true
;;
riscv)
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
;;
x86)
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
;;
*)
die "Unsupported arch ${ARCH}"
;;
esac
local myversion="-gentoo-dist"
use hardened && myversion+="-hardened"
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
local merge_configs=(
"${T}"/version.config
"${dist_conf_path}"/base.config
"${dist_conf_path}"/6.12+.config
)
use debug || merge_configs+=(
"${dist_conf_path}"/no-debug.config
)
if use hardened; then
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
fi
fi
# this covers ppc64 and aarch64_be only for now
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
merge_configs+=( "${dist_conf_path}/big-endian.config" )
fi
use secureboot && merge_configs+=(
"${dist_conf_path}/secureboot.config"
"${dist_conf_path}/zboot.config"
)
kernel-build_merge_configs "${merge_configs[@]}"
}