mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
sys-kernel/gentoo-kernel-bin: Bump to 6.12.87_p2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -14,6 +14,10 @@ DIST gentoo-kernel-6.12.87-1.amd64.gpkg.tar 325386240 BLAKE2B 0f427bf7849382a8a9
|
||||
DIST gentoo-kernel-6.12.87-1.arm64.gpkg.tar 295321600 BLAKE2B 2b983e47f19bba864af1ee49a236ee632e3aeb698d010a29733548c9206129839da94dd2f7beb35973ca517d95453d0674457da07bfe8e33b375aa1624417192 SHA512 ad947ed0461df2814937bd96650eb1140101bbdd9806113a80e05ace2239be226c12f6f852702104458d14c794f133e277d83fcb9f51bb96108db970ea7cf9dc
|
||||
DIST gentoo-kernel-6.12.87-1.ppc64le.gpkg.tar 73932800 BLAKE2B 534742dd847bcabded30beb2a0b70c729209cd2d4c98bc8c92e717fa6825885a0dfb3173b1daa1dfc9a9c33f5efd99a764ee5b6b24b6eabece847928ddbf2343 SHA512 db0cbf0a73761a1ad85ca454092a17ca33294187330b00608b4d5fa57ccfb92134c8e75415bc2f702d7d4a077b7e26e335f48787a17431d2bb9ad5b7f50f0703
|
||||
DIST gentoo-kernel-6.12.87-1.x86.gpkg.tar 77742080 BLAKE2B f9a83eb8ee8f09b933e0d34d447f319935f530b1a9d79489a03a8bddfaccf0bf503e753d227ba18ddbe5c97231941c4b9fc6989bf2d4085a327f1cfb00fcf109 SHA512 2888d7d29f538bcbf6954f3654a3b59b058b9103efa45ba8c79d3885f7765f017dcec4c618b192e51d9abaf86753315017157206f922f38f30a79bc72d74af15
|
||||
DIST gentoo-kernel-6.12.87_p2-1.amd64.gpkg.tar 325427200 BLAKE2B 2fc6572a9a524d68301f0677403bed517aa2ecae55f74c5816526b8c88a8caabb8a3728f12eeccc6b83d6cbee0c91deda0fdedab37dfd57401b7c26a191ad66a SHA512 5a3552a57f42af6326c72315b4b4f48af018170fdb00719daa04bdcc04a0aec8737de8be42d8f48ef35736bcf43c59b3cbb8ee7526c5db191335ece6e039f455
|
||||
DIST gentoo-kernel-6.12.87_p2-1.arm64.gpkg.tar 295301120 BLAKE2B 3cdd85cd2f0f62d029aa5363975fd3a536dd7e7cf9d1b3f1f707ad49aaeb0706de954f5a660e1d0c8c8106a771f489b3e0508a16bac51e000ae976b1ddc00d6d SHA512 746e7309a831f80f7204b761981a08eb00604a99c4ca992cb5db3bfa86ad1e6b6bf88af3413e16332002a3a0a1403d3752910ae00edcebcec7b312cadb9ec1a1
|
||||
DIST gentoo-kernel-6.12.87_p2-1.ppc64le.gpkg.tar 73922560 BLAKE2B 14b492c94cae094efcb63102be14f0bc65c688581124374f789426a2f0fef151b6489156aaa46cf45d0f297669c7998c69a2bc50e7885d64856a41e0a7eed6f6 SHA512 04c5e1d1a2767fc8aeeb0923846509e7351ea75d9ec0ab6ed922b5ffd7ad6314ca09732b98c9fdec01f8961d0a70b6fd7cce4d706b856b017acb4ca02602bf6e
|
||||
DIST gentoo-kernel-6.12.87_p2-1.x86.gpkg.tar 77711360 BLAKE2B 846451365f3b8287e7c2904adb2c243e77b1846571a587580560a22594ac43edd36472be4f38f1e7a332ded2668d21a7a69f26d65ac1669d6e0ce4ff979bca2d SHA512 ada5c490beb832a03b3ff47f4152374ce6f4be4e685e7e4778e0cca36fe947dec3ced2896da9901ccb34e713ecbdc981b5de8bda9ebcde0fd36b2722af0ec3a4
|
||||
DIST gentoo-kernel-6.18.28-1.amd64.gpkg.tar 464773120 BLAKE2B 607984ec9150073ee5b2f4d752f26dd7c82865052cf159ce62b14cdf5f3076381935e6832bae435ee7430d3e49b6f4459ef359005bd53df9d8d01fcc1ff9735c SHA512 6a7565c19ed5c39b9da0cddc592146788ff9fbf20463ff1a43c4eb1c2e641762fbe6edc9d168186fc5a80f7df8a72c459df4b95eb5f3c7cba6ec07c78b9dbaaa
|
||||
DIST gentoo-kernel-6.18.28-1.arm64.gpkg.tar 451256320 BLAKE2B de27338c24a3871e24195060d4df115277a40cb05c0aaef02f1731404ca1a549145a0e144d989cd4fa8952b31b3169eb47162e1820d10dbe0797ef836b26677c SHA512 7179a3248480b1fae653adeae504c81d272485ee1cab02d9e44538f62a389e9823dc7e20336914240140af1a8a8ea3e697c222a0657c351678dded51d15c7167
|
||||
DIST gentoo-kernel-6.18.28-1.ppc64le.gpkg.tar 77178880 BLAKE2B 778d7b0dc1c88ebb8940aea118cd106d0971076f0118dd374e89bb238852f99f5f64c5268e99ce5ae546c969897c594c9fc563dbb1045153def5e5e611deefc2 SHA512 17b701dec61d604f34fa139badbe29156c7ed8c060382ad70a661cf8f8adcaeb1e2ebc41388c6da9517dfd07a29ec6fb93b21f9236c4ae7f149476e3b49454be
|
||||
@@ -58,6 +62,7 @@ DIST linux-gentoo-patches-5.10.255.tar.xz 24772 BLAKE2B 0b3a0b77f0e415d30cb5679f
|
||||
DIST linux-gentoo-patches-5.15.205.tar.xz 10888 BLAKE2B 268434fcf46e4fdd892c5f42a7cffe8ffe832eec8f396c71c0cf392c1d766abf57174999968fe08732ee473105449e57e8dbd8d7b0b359b4f7e532eceaab6f42 SHA512 a72ac83b7ecedd5bb683aad3383832095792a773c65f6b98f8e72a934b07e10b6a9aab6ae5f1b256de7f49aaf981430c582e64e7c6e5db1a37b1a1336ae54ace
|
||||
DIST linux-gentoo-patches-6.1.171.tar.xz 29564 BLAKE2B a843335a9ccda7384438822332a53748804fbc58df7198d9d1026436f4e261e640a185f78fc32f615e8527a61970d237ba0d6fb0726bb78aa4aa39ee808941aa SHA512 b8c83de0bf9e5515b46ab77c2b338c5d84ad284578efdce66f424a4a11f202d1846a095dd618de0ebe4faf7123234ed38fad814faba414bc1293e3bd25686c6c
|
||||
DIST linux-gentoo-patches-6.12.87.tar.xz 20828 BLAKE2B 3d900956f1ffd0cdced9f0850ec8e785b271933855856cfce7e58542b123a5b8357aa22ea541171da249f173502d4aa7039ba136f730c13208ce408ce1e21e63 SHA512 f6a2813941244d3f03fe0fc6ff9a6f738fbb33263d279e412b5de82a74940fbf2fb687eb0f620cd61842e67f71f78a2e475ffeafc712d2b022a1f4d54ada5824
|
||||
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_p2.tar.xz 13700 BLAKE2B 2cfc28dab9f7d47775b405fedd3d0c1d699f4aa150a2f6aaadb05fbab3b14e309d314f83c577c48d75999f6894d12b9c6105a0ca7b99afab98bdaa9291d34c67 SHA512 8dda6e5620d58e45f1c65299b22d3cb91f415faa268ce6c455acb8f55709a0cf962a6a232e4e7cfdf8a5f87502a7f7f47f8bf98b682dab9126d7a8a800a51cf3
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
# 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-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-${PV}
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260508
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel 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
|
||||
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://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/ppc64le/$(ver_cut 1-2)/${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/x86/$(ver_cut 1-2)/${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
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
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/.config"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user