mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
sys-kernel/gentoo-kernel: Bump to 6.12.96
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -33,6 +33,7 @@ DIST patch-6.1.176.xz 7596192 BLAKE2B 7315ef778efefb7f94d6de1bcabbf87ce9accc2359
|
||||
DIST patch-6.1.177.xz 7632012 BLAKE2B d1c93ff47abb193b430fefe75414af9128c621b2da4538e769eff8728c0035f948e2f5fe245a3633f4f6ec31857f0046aed5e493510c17dd340b434dc66428c7 SHA512 0f5bfce80c44916fe52a9adcda37f568fbc0a2e108f16a11d0b46f1c2d66bf197e1cbfa08bdabd85ac2bbeb4bc751dba7e76fb4d2f70658df7e24bef62cb91c0
|
||||
DIST patch-6.12.94.xz 4823260 BLAKE2B e3db641e9965737f5143714a52277c454fd70664b0a51f627f92a61d438c738e85451611afb60e8476e6d2aacec4f0e9dc009f3b720ac3bd59c54bad438cd8a4 SHA512 5afc7235971df37eb1209798d074469737614fd505f56b7ba0045053de69d35101abb375bf50d0dbe1fd2f211877bbd3353eb922427f7f2958911d1a7203bb08
|
||||
DIST patch-6.12.95.xz 4887224 BLAKE2B 3f7b0d40cf1cb395cee7489f43e3f22eee4ba76f8faa613915560c165f167e22aa2e07014ff4a93739d39a9b0a41605bbed34ef0ec86ecc6861a50ffd02fe69a SHA512 060cfa79f979c58ff9fd1e4c06a7ad5dd4ca70858f38fe6ba15e7dae9d8f953e28b5e593abbc5e61d6962520816537aad165327fb389127ea8a1c477620453b6
|
||||
DIST patch-6.12.96.xz 4953340 BLAKE2B 455d0eb19086f1feb82905ea233d9347595e1e92b1e943913e8f3d534bd2f7242e7ac1fb7781f239090eb606fbf5e308d8a4a0ce8686b430a58a3e33263afc4c SHA512 c112d977ca29d5967fbc6d678491f159ac15b7e3a5b03b7237fc5c4eecb1ef1a9a0e3c20bdeed55a680376990b1c52aadc9e0ad2f7a4f3406a0c1bf66b5771b4
|
||||
DIST patch-6.18.37.xz 2234984 BLAKE2B 3b805168cf717679ea26d5566ac8081a351a7e350d827c179fa102453f47d31f31c86eab2076bb9406245e0f5529d3a22379131d53e1aa5a48cd1b479227b1a3 SHA512 60a224dc9592b99a9f9bc37ed36c972c3bb8394c89aed7c75e14a05df3beb46e15d305603bfed9018db9b23e3b53eb17138342ad987a80519c792948fd410562
|
||||
DIST patch-6.18.38.xz 2262468 BLAKE2B 560c78a41e1e404b34d48352a404eb228d123092cf29dbb853d9fbda78f17c1e319ce3f7b591e4a2760bc838e6aeb8ddfbce41296c70c25ecf650e1425ab4fea SHA512 0ea26f5c06f1c5ceba6e2c468129e0195eb314c56abeedc7064bef0596f3ca96da4e220312a8a8b20cde210aceec304f47fb8927c54238dbdb5d387aefb0a9d8
|
||||
DIST patch-6.18.39.xz 2380952 BLAKE2B bec14f9eaefe9074b1188f190946cce0bcd11cdbde924e2b67224771c2ee4e84bdabad9157d2c2d9ef8ec839d72fdeb4bf9ec9c34ae6be60e93870ffb0a59cbd SHA512 f6bf71379410109de3af0be6f985b4a7b603e602f40759b921b8edc98b904cdf8b7b265ccb41426e0bc3cb31993d9a1ab459d8b52cc0406af6db5e66a3f8dee3
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
# 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-6.12.95
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to git.gentoo.org:fork/fedora/kernel
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_P=gentoo-kernel-config-g19
|
||||
SHA256SUM_DATE=20260718
|
||||
|
||||
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://gitweb.gentoo.org/proj/dist-kernel/gentoo-kernel-config.git/snapshot/${GENTOO_CONFIG_P}.tar.bz2
|
||||
https://gitweb.gentoo.org/fork/fedora/kernel.git/snapshot/kernel-${CONFIG_VER}.tar.bz2
|
||||
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
|
||||
)
|
||||
"
|
||||
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 )
|
||||
"
|
||||
|
||||
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 "${WORKDIR}/kernel-${CONFIG_VER}/kernel-x86_64-fedora.config" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-aarch64-fedora.config" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-ppc64le-fedora.config" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-riscv64-fedora.config" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-i686-fedora.config" .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_CONFIG_P}"
|
||||
|
||||
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[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user