sys-kernel/gentoo-kernel: Bump to 6.12.25

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-04-25 20:34:35 +02:00
parent c53646b723
commit 04b06fe70f
2 changed files with 148 additions and 0 deletions
+3
View File
@@ -30,6 +30,9 @@ DIST genpatches-6.12-27.extras.tar.xz 4056 BLAKE2B 11700c29ff308a39c89ea581f7523
DIST genpatches-6.12-28.base.tar.xz 1749152 BLAKE2B 2a454052384b5e03757221a8207308d156b253f7a04d28d9279c354e1d83cd0d9526def4ac474790ea50300cfa04050d4e9b062427e1c320db4962c73717df62 SHA512 d25962b2dc938ac534ac95fc064c08977ec8882e6c9fe1d14a55a1f36f06612feb5bf082a380c1a96e58eb1e29cc017bf71a148188e1e937d45ebc23a1f985f6
DIST genpatches-6.12-28.experimental.tar.xz 78516 BLAKE2B 309425c98295df4e6bd71ecc08a72680fe385b4698d8adcb22ce63c37e83531bb359fd5b48a856dd04c9bd1371beb9dc4f56497cd619e212711d603ad6679322 SHA512 a3eccbdb420c66dee3d8ac876654ef152be3323ecaf824c821fce534c36e9b322264bcff21385a9bcedfe4ce38372800394003999c6c12e33e6dc96e8cb8fad3
DIST genpatches-6.12-28.extras.tar.xz 4056 BLAKE2B 1a468f5acc34bd688a26e3a24d9dcc39099014bb8bf0674b491c02f0cbc60b70ce8956c53577dad309823fe957067caa81480b623e0d8b8a17069f73c6fda272 SHA512 c7e64882aa38916b4017632d676e2a8885093840c40221e400cc61666d82258658558e6e59bc7eb0d90ae93bb88ccaf015233cd7f28c3796fed09b6ac89363cb
DIST genpatches-6.12-29.base.tar.xz 1803156 BLAKE2B 5db87d06800e230ab09e6f085126163fb4c3ad98b4261c988563436c9e5ab9c3783152c135ddec11012c3e6f1f9922782e9355416424af47074af5b352e3463e SHA512 4a98527730e096a1eea0d16faf88604d0db359b1ded00cab1417e4b6e2ba4f2fd9ef1a1739480895720ef63d80b753dd8752cc81592949d24e3dc678e4b6ea95
DIST genpatches-6.12-29.experimental.tar.xz 6048 BLAKE2B e4e22d8a316f80cc11cf8e1fc5115da5d475a25ebed6e0241a30eefbddb9186e9e498a5a719a839dc90a9032139ddeb7ea966515aaa39e7f248e801926b207a6 SHA512 a878aa0106e5f8f957496ce9b7de72de8d3d32f3245eeba802051b91a5675bb4e70dabe90a8175d818ba2f89f55520130d4cf7c8a6093e95ebfafae81d8ede60
DIST genpatches-6.12-29.extras.tar.xz 4052 BLAKE2B f65d1d41d35679a525c1b92f26194c48dc757abb18b37793b69d5b5a49f312be091682f19ade2215319f4f45e46517e2e1fd54090df5c405f962d8cb228aa689 SHA512 7f81c3da7d277c141b00a0e39840dbfaa6348ce45d87cf35ec94997958fa2cc0b8341352b90cb7accd2b3b216e85b8d756f7c13471686afca6acc7d12a5164e2
DIST genpatches-6.13-11.base.tar.xz 696060 BLAKE2B 1d90850c681688f299e6d66c6ab2a9f3d9a45ec516d2b727adb9dd7c71d33c452303190e2e0e3b2e5bbd779b1be22683d70e53e84324f1c3c545d942ff15fc44 SHA512 453db7b734144101cd3096fd1d0880700816ff1b8bf60b71436ac51eada5af8c74329ee288b302b5850231002bab5b8c3a737d4908ac09d05e32e9a5fb752603
DIST genpatches-6.13-11.experimental.tar.xz 79172 BLAKE2B 4e37e1e4ee40160d760ca55a0997fe52f3f0031b250e7c4d85aa7aa8fd3c2d0ac8364a8848c9182d93114c32d4f8b65ef01df4129650624f468cf236745f445c SHA512 206265b8f03dc89272532a07a3a3d76f47d1da61ff16c335f9bbdfe121d27328f011f2d6640dea5e3fde286529deb8f27ce00de8237176ce01c00bb155bbaee6
DIST genpatches-6.13-11.extras.tar.xz 4052 BLAKE2B a40b3c65ed30aa17797727e8df0efc37ea23639c965fe8acaa17f9315029ecf7603071f74d96a1623bc84f4d6d80f62f5119f85e714f32403bac6b300304a7d9 SHA512 a5953975b5e88bef1a8e8aa73f343343816db4e6731d5376dba6a3cc65e15b19e00e38817b5a5dfc5374ab9138ec1416a1d14143cdd41a52ba284ba506896bf3
@@ -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##*.} + 4 ))
# 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[@]}"
}