sys-kernel/gentoo-kernel: Bump to 6.12.29

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-05-18 19:54:46 +02:00
parent 0470e4bb8d
commit 52fda9f2ea
2 changed files with 148 additions and 0 deletions
+3
View File
@@ -32,6 +32,9 @@ DIST genpatches-6.12-32.extras.tar.xz 4052 BLAKE2B 2b831af1addceb4338bdcb87347bf
DIST genpatches-6.12-33.base.tar.xz 1940132 BLAKE2B 744c375cc762a071fbf956b5dc84e7126e35f82b04b3698f0fa52ce6fa6c781ba9631d6ed5b8a5acb5f04471809639b0c4e99651ff84f209b3d5a88e4f4195df SHA512 2dfe26826b474c36915b48504c2e5b911d7c731d0228b671d6cde1b8b7225aeeb7f0c4bea1793bfa43a69caf31c05c77d7c35c0ca90b9c73c6c4b2be44ea78a9
DIST genpatches-6.12-33.experimental.tar.xz 6060 BLAKE2B 30d79d0f840f867c5fe465f69821c2e499867406704e9e4d1c6c88089afc3bb66395ba257968c7794d912cae87d89b84ad9ba20b7404b425950ae390cfd73ce9 SHA512 38fa6fce9ca36c041749539f53d40b78d271df0a1320365dc20e3c1becab2e4a2946d53c87f1a89a19c8b277db9db21ee4020c8e68a31fa8ea876915c396218e
DIST genpatches-6.12-33.extras.tar.xz 4060 BLAKE2B 9a5356f45097a5af36e7f44e29d75e83b3b14cda16c86854bb4e1a6d2b974a86aa474916228e2a642aa9e58f05a58550d56d63c14bbd1de17c4a2c9c70a03b69 SHA512 36dc5f9501484d4fd3f03d30474b1b6df44a4b8b01f3cd0b7c449cf2c7b282d61c0d447d24ee49aa112a6048e239ec8576e622df389766deeea55d4fac724f33
DIST genpatches-6.12-34.base.tar.xz 2001840 BLAKE2B 0ca0805ebdc332d10ed56cac2d9613c6f8a5d3a204f39d9288e2dddf35a1db482d685dba8d333a45090e9b5d2a8ee83f5b677c0eeef5b1ca4d8f0f89a1e47075 SHA512 31bdd68f8c4ab72dddb98a41adc02294a10125eee23c1c6edf1af2c21b6043e4856e7633b256c0db7a6b6132d2f5355178334dddf10d32a9525e6a79e67173e6
DIST genpatches-6.12-34.experimental.tar.xz 6052 BLAKE2B f7ed8de1c1e381640bff028d69806b31d2652bb10214acb3e586f59ea5eaf939cf5ea49b430ad51f9a79c583db4c0e39ab7f0ff0ed8dc18d0766e0098ffe582f SHA512 c5b79eda68fe73c0ede63f8b9d4d17379566ad267b6d9dc659174a93a95db62fd2ee6230f18e3cdf0e9086c853f8390e73fcd665823fcd571d31bcc092c963b3
DIST genpatches-6.12-34.extras.tar.xz 4056 BLAKE2B 282da21aa2dfc4763367910b158acd6d1e8bf3b1c8ccefe6693784709e0e67f35086fc1c3bc96bab88fdd31f54192677d04ad097f6af14560a4898bf377428b4 SHA512 2d1780f59bbf46d3d1362474fa43817da901bc3563437598fd22708c74acc1fccccd87447de431ac200dd9c29b2eb5ddc870c4a1c5fdb401b4708e17f47668b8
DIST genpatches-6.14-5.base.tar.xz 478484 BLAKE2B b4a07d4eb4efd31162d0c6880d826535f894806a664690c4648314df4ba70f374a0e8091bc8d7a7193ca2e75fe57fe730ff6867f171c2b4a90af4788272e3888 SHA512 00aefb9d59b0bb4d6361e59e8e92d141f8f5e2b033a7418fe5625ad2fcb1aac247606a3e54f7cb791f02591d57362e84c61511c896cd17be1013b23e43f70e73
DIST genpatches-6.14-5.experimental.tar.xz 79800 BLAKE2B 9b707fc73bd1a4ac33259402fd2db095ebd71c2594e4d3f33c12628ad7cc0e6d0f6f737840bb35ab1c7281769eba6981fbfe3fd1aba5221d65caf4b3b58adde3 SHA512 21dd8b4819748f8ffc8e70ef72addaaa5b768c00ff45ce7117d94644571b98fec1399aff7471e03bd5b7758ddf62d1cfb34e35b5808a0fa14856935a3c26b8f6
DIST genpatches-6.14-5.extras.tar.xz 4052 BLAKE2B 131ba26cfcc2f1218a79b33069f5d01a1bdb016315f85913b557429999a17c414640246e2a95c1d79cfcdfcf60577f4bb614b728e56d725dc808cb5785795a3a SHA512 746e312955ab745c901c653d2f64fdbf075a80388ee1618072e52225f7fa6163e5cc65ea41791ffea89dc1b61f242317a1b3179e85647ba9dd7c9de27937d4c9
@@ -0,0 +1,145 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
KERNEL_IUSE_GENERIC_UKI=1
KERNEL_IUSE_MODULES_SIGN=1
inherit kernel-build toolchain-funcs
MY_P=linux-${PV%.*}
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 5 ))
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
CONFIG_VER=6.12.8-gentoo
GENTOO_CONFIG_VER=g16
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/${MY_P}.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
experimental? (
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.experimental.tar.xz
)
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
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}
)
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}/${MY_P}
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="debug experimental hardened"
REQUIRED_USE="
arm? ( savedconfig )
hppa? ( savedconfig )
riscv? ( savedconfig )
sparc? ( savedconfig )
"
RDEPEND="
!sys-kernel/gentoo-kernel-bin:${SLOT}
"
BDEPEND="
debug? ( dev-util/pahole )
"
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
"
src_prepare() {
local PATCHES=(
# meh, genpatches have no directory
"${WORKDIR}"/*.patch
)
default
local biendian=false
# prepare the default config
case ${ARCH} in
arm | hppa | loong | riscv | 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}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
;;
ppc64)
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
biendian=true
;;
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" )
kernel-build_merge_configs "${merge_configs[@]}"
}