mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
sys-kernel/gentoo-kernel-bin: Bump to 6.6.112
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -142,6 +142,10 @@ DIST gentoo-kernel-6.6.111-1.amd64.gpkg.tar 274708480 BLAKE2B 5a3d3abc36f4f50e6d
|
||||
DIST gentoo-kernel-6.6.111-1.arm64.gpkg.tar 247623680 BLAKE2B 2c97c90ba69279f025365d23ffc219e16ddf66fd5070aaa9e684e0c6dea2d799f0ca76d2f10a5561247f7b2fd3e055e92f2b260faf697b4321c2e9305b288328 SHA512 82dcabbd0644c8d705a51d74734a06927afeb477d9dd108a559d0c75512033aaaa54f2b5f0b1cb81ae3a67a593f1dca2b237d377f5a3e4a79ba2475ede4dd8bf
|
||||
DIST gentoo-kernel-6.6.111-1.ppc64le.gpkg.tar 64481280 BLAKE2B 5d0e0f0f9ac177c2b9ef04c0326228054b12e2411457e3d99ad818ad31ff3c19410b9836e15bb16a7754bb81ebdda26d74c45febbdf7f7d8f35e5ff37fac5d9c SHA512 8b9c5e02c84d6db172ef0912b9a33ae83e82cdc2e6ce15d2bd8e71ac6aaed76f81d1866925f898c0f60d3c58bf5686dd2a19342417db29427bb1ecc277ee7372
|
||||
DIST gentoo-kernel-6.6.111-1.x86.gpkg.tar 68710400 BLAKE2B 3a6c730428d12464ee52632bc7a2271021b313c94a32cad780b1fba0d4cc09fbcaf9e4acdfdd932d13e896e7d046cd7bc9fc2c888c40b78ad8f7644a340960e5 SHA512 2537e75d148f133bdb2479394a9293fdb4ff252d7d328b45f85a0b136b0733ae76ddb0aaacdbf971c8eb35a95c06202f4500ba2c0fdc6a90e65c2dcd367e71d5
|
||||
DIST gentoo-kernel-6.6.112-1.amd64.gpkg.tar 274749440 BLAKE2B d2a877b13f05fb03daecc36ad8aeefcb8a04994dc377036209bfd5c00e4297979db6ecb81dd63c0d17e3fcd1cb7a20f435959c6437877aadb90bd28b8d8affe1 SHA512 893dbee7321f1945a8446f74d09f0afad6e8ed8cf3ed7c7e33e78659afe10773e7e982a0c26074dd479aeabbfa3e37ac35c1441823ee82ef8890c56c057ebdb5
|
||||
DIST gentoo-kernel-6.6.112-1.arm64.gpkg.tar 247633920 BLAKE2B 0dc7966dc5f4758d0e5531c82c8a49ba91b99c61bc727a6f9507e16cf7b64a4affcba16d1bdea24a817db31063e7dd2fc462499c83ad34878f0f8845ba5912d2 SHA512 2145bc6fe4d169bb279e601227246ab61d57498199885915bf8737ff2183db7d0fec33bb846f9ff31063b206c2999f5c5c3267b688f404ec7242b4cb367dcda9
|
||||
DIST gentoo-kernel-6.6.112-1.ppc64le.gpkg.tar 64460800 BLAKE2B 9f90865a38cfc7d220d0b55042a0b694740c15f549c5c0aa939ea93ccab1b9fec9df2b8f079e88d3d7e7ebce5cba506aff6b214389a1adeff6fa65a08b7ebde2 SHA512 31e3c53f2b4b225b49bfcc249d18b242073ebe8cfb7024426e4acf1c833c0db10510cf39ed0adf0509bddea4e6b025033fbc7b4870cbc4fa88fe1304aa4f605b
|
||||
DIST gentoo-kernel-6.6.112-1.x86.gpkg.tar 68700160 BLAKE2B 65b8ed955b62fbfc2fff5fa396826dd981b499f55f3c4c2bf2e6820eaaadb69dce40f5d1c9d24f78a763aef00a52a6fd81c383772816b7dc7bf58682971db234 SHA512 de110af58ebab6bd69b99a2b2383d47bc6a61302bc2d0eb6a8df40d489eeb052441b2fb18d4ee0bd66206250a8fd9f85a9a1fabefee42b61a46091bf01e78bd5
|
||||
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
|
||||
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
|
||||
DIST linux-5.x-sha256sums-20250717.asc 364595 BLAKE2B 75abc4c666dede398ee54a7323380496f75cecb9439261305a60200169430544eaec7bc9e6ee3d4b1beb667d51cb6c858ebe109e3a9446667e9b1793298aef08 SHA512 1d52b1dfc0da4d287f4d1d02bb05a38c24f5505002c567bedc48b4bfd523a2135bdaa8e103c75e7bf521d356b66e7b36009054a792d8eaf3034ae1ef09fe3ff2
|
||||
@@ -218,3 +222,4 @@ DIST patch-6.6.108.xz 4910552 BLAKE2B 6d482fe76be8b11fc931087537872b2a5b2ef862c8
|
||||
DIST patch-6.6.109.xz 4925652 BLAKE2B 1eea77c0d6966963fa61546aa5a2e4deff3145a61e0b3ddc2a179222aa736f7f65d8581ce4e549bf2d0a76b679dda6c0a2970e49036b8a6be8c9104a390d9fd6 SHA512 a3c9fadf8d6c55c569fc388c3585ef571a958eee3736cddc900beaec14c3b59e78ad3e38493177d35322f3f840f6f372c231bdf5272243e6d831590499d8c6bc
|
||||
DIST patch-6.6.110.xz 4926864 BLAKE2B 062eded9bbb18836209b7b07bd5803602212f4bd1d0c9d87252eddbe9cbbce216f78618d3b797c8d3768ec4a1b71081c3aaf1ebf7cdbe4c59ddfcd77595bb658 SHA512 927f002bf2ec227c19d115589337e4189c8320aa30d54325923078e87f74e2b7ffa5f6dd9cec515c3266dcff3d74ddab2cae6cdfd63c120fa34923ed7d455ec3
|
||||
DIST patch-6.6.111.xz 4931684 BLAKE2B a832e787516bb20de7e4841b1f5adb45683c900bb4df9b7856878c150a0b5e27d8b83c951eb68cdbf8ff0cd42e4a12c65792c032854b140efd7759eb9b1c39be SHA512 583fbec82cf16b75e1e447a51c858dfde9b1599f4970e927043d6f2e7f4cd0afc619432b001d3cb89d33c02414eb217b811717973b163d646676c3ca86f48b3c
|
||||
DIST patch-6.6.112.xz 4963076 BLAKE2B 4e4798a85173a15fd73cd126d9444b0726701bc9c4d7f94a5fce44401787f6e8c2550190e9243426b8216e866663aa9a554552b1199e55b54138d60a4c9f22be SHA512 6a622dac83d2a7f737799403d41695582ed7f7cd008096af55fc930cc387c498dcffd826ed51cf9fa5011bd7a53549f8ab95418c010e9ed9a0e16aba91cbbde2
|
||||
|
||||
237
sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.112.ebuild
Normal file
237
sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.112.ebuild
Normal file
@@ -0,0 +1,237 @@
|
||||
# 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-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.111
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
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://dev.gentoo.org/~mgorny/dist/linux/${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://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${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}"
|
||||
}
|
||||
|
||||
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