mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sys-kernel/gentoo-kernel-bin: Bump to 6.18.52
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -42,6 +42,10 @@ DIST gentoo-kernel-6.18.51-1.amd64.gpkg.tar 468264960 BLAKE2B d81268f870eb5ea2d3
|
||||
DIST gentoo-kernel-6.18.51-1.arm64.gpkg.tar 453621760 BLAKE2B 797c0b33dca64200d63e5c218710ba8ce1a974b2a8c51664a51ae4bfbf989b435b3feb72d2b9477e42371f02f3e41a17738385e6cb8dffe03c206c500f002297 SHA512 ddf5721c80525a4ec1936f516456f3744c2b887cfd8ff29590677932dcb5a0c9b2fb73c167bd7f09e881760fb4f02e01e19cab570848169b06c61639fe556142
|
||||
DIST gentoo-kernel-6.18.51-1.ppc64le.gpkg.tar 77291520 BLAKE2B 3103d6deabf33c509fd278c0750ec9fb934a69d45ee495277d444e33d34a8ee60af4725bf88da00e4afdecccf4bc69fd0b8348cdd51dc9d1f2ea6a365f944f99 SHA512 b7427d32eeee48f4ec38c54a8a1d4a58ad507c308d8e49b4df4ac593c467561010e039b6e8e7d6cdab36a3ad302b4d571bb7ffe392119a51f9d1984885bf54f8
|
||||
DIST gentoo-kernel-6.18.51-1.x86.gpkg.tar 83681280 BLAKE2B 34765a10847186ba40f1ef87a4f2a50d570c68d1498d7d9560786844d88ae66ec6cf515a0cc7c947a2dcd31e2b80f140df13cf1ca1448a9e91e97bb8c939dbcd SHA512 9cbd38b9252d63d6ef925e9afe68ac02516789d378c592d77a98b0f3f4c43ca2e4dff44134f434c88ba5153788bc62903bfd8207b1646fff2e2302c56f75a0c4
|
||||
DIST gentoo-kernel-6.18.52-1.amd64.gpkg.tar 468602880 BLAKE2B dd7086b8961b9c8cd385b1d734851a3f99e3de0c0dfd2099241deefe9b4b07ecc8b7dc0a42f4058dc923ca228888ba0f88abdda7d8227773acd7d2365f2667a6 SHA512 d013c9b03473be8b50bf8fe862e1c26662c46bf610cf6d57c1c53e13cfa0a28d70b02dec9f32101090c524337d7f0e57a9175825190efb7cec26fc9b657b0f00
|
||||
DIST gentoo-kernel-6.18.52-1.arm64.gpkg.tar 453888000 BLAKE2B 15a8c5a443ce016444789c0573cc853cfadb4ed6dfb9daaf4542a05c8319f68052992bef2102a73650b45e547639b7acd3530da19c5a18aaa7081db435997b3d SHA512 4a6c8714adbf3d8ad6704cc07ae83dbc7053cb89e578513421ca69095679b14124ce58b75a62580c0db25e10daf9b955dd5dba21bce03eb934657cbdee737c80
|
||||
DIST gentoo-kernel-6.18.52-1.ppc64le.gpkg.tar 77322240 BLAKE2B b7b0b6e4886ebc2d775b0bab62ac98aaf362b40fbfa2f38b63f7bf36e903f418cef15f46c21b7ef389cd11b6e335b782791f51127dbd5842b1cfd75332ee306c SHA512 3e4029e50c97645770a3c12dc6e2dc3aecdae77c161aac23909a78bcfc2a110525a7765d79539bb84e75fa1fa36cba1a1a7d75afcfc217ee0409186384eddc6e
|
||||
DIST gentoo-kernel-6.18.52-1.x86.gpkg.tar 83752960 BLAKE2B 55494ad7023f33af4b22c17e576b4ca796bfc93fd9c2c8b9aeb8d6b1c4a03f76062078540a387c54031f6c413df3e61d94df158485fb4246e18f99e3359fe870 SHA512 4fb56bb334e51a8ecc077ef81a4838ad6332e9e2744566825eb4e53a723945499ceaab956a80f8549cbb486488be0509c732ae1cc6b288ce706791c3cdc42adf
|
||||
DIST gentoo-kernel-6.6.155-1.amd64.gpkg.tar 292065280 BLAKE2B 09b58a57e09e41a0ac8be8ff9895c6594d3c5edf5291618b4294b988ddefc77b6ea4d31821df54d12130fb833b743635cf21acdb244c78785358422ae72e9b99 SHA512 edcc9f8b1f1709b38344aa639575fe0e51fd056552fa1e45f246dcc30dd149626b00cd2eb56339a8b8fb40916500d1a4c5c9ee7403a1b8aeecfbf6c72731f59d
|
||||
DIST gentoo-kernel-6.6.155-1.arm64.gpkg.tar 261027840 BLAKE2B 300caea989edf2f85e4b98edc79fb3aec3c935ead4eafabbbef3e20ceafea5adae9a5a8c8b76b732988a4cd91aee348d90a1fd407a8bcab900cdf2e3e36cfce3 SHA512 871f9c8f141aedc54cde08bf42c5a9cc35eb6ef62a7c4b7bb85bfb272e3fd512f75c7dbdbf338b9008ad594eb3e3a28bda3ec42c21938b1fe10f28f7ebf78881
|
||||
DIST gentoo-kernel-6.6.155-1.ppc64le.gpkg.tar 65331200 BLAKE2B c1ebc6c0b945c767f2c2871e484729d1dc94641df89a3d941eb2e4518f5f9bf5edcf4f82dbeb05ef3b4197ec5b85a69dd1f5ea7ae7518ced94f844b6fb0b82ad SHA512 b711f02d2597fd7ea3b7c8216b70d482f6c281f9ab5b1f9f594c686e9605ea0c65bc49a26751f113c0961662c25689829923e33bbd984b1852402363199f9ab1
|
||||
@@ -109,6 +113,7 @@ DIST patch-6.18.48.xz 3258276 BLAKE2B 2065b089db773cd504b7e09e4fb111e68463ad2846
|
||||
DIST patch-6.18.49.xz 3282948 BLAKE2B e1a030bfe327190d14a9d3eefa77c8823a276d7f84c112a01e1f99572f35e283296415fde0a8f3f92564682a7c86b046045bd4d57f66e940bb42bfc65beab4dc SHA512 6cf1fbc3cedb1a2ef11c6ec7d045aa0f8214cb06ecfdc30cca7724207a40fc896deb6dde269d8bd87750ffe07634e7429e076e80167755526d634698bc3980a8
|
||||
DIST patch-6.18.50.xz 3404240 BLAKE2B 3b7794114d37bf1f5f0c95b5b6f44aa33c00096a162dcb6fc48006e22871d2f731626f8759f54bc30cddb8561d75896e0546124e5b11b9e6332ea121d55eb164 SHA512 2ebefa6d5c0102130ecc8445e58e674e581568b728e4b40e1dfdfa3039a10c9d1af533b2b95d3b56ae30a056838af7bfe58f78c1642c56e3db14a3c1228ffe75
|
||||
DIST patch-6.18.51.xz 3545252 BLAKE2B 1636bb5b2dfab15f9bafeb215f925acdb5c7df0fc544d7787ffbe76cd1efcaff7cb99d925e39997e7cff37266192dd07ad3d7de3a8a845a907de9d5cf72b2dcc SHA512 c5022b7b718093b791237599a00565bf37f7e6d256e136c88ddc9508163cea5993bb22cfbbf928c3604e12ecb76d7e2ce814a3634d5a65e7c84825eb4e773f9d
|
||||
DIST patch-6.18.52.xz 3996672 BLAKE2B 97ef23b4b70a2e02c1d6c2fa2b4b1c895743802007f2ac6ceb8df086c9b9fac1cff9b80c210761775de5d17012ea8c9ff9c7c3bc1561f087b92f623ec3302c8a SHA512 f1c32303a8eb7f20c7f5c8d592a23140ff880075d0e4151bf96d5b0365ff64b35324753894d8ba822ad797e673b2a878f18d6a2f557dd6d3aca1fcc8d4e5764d
|
||||
DIST patch-6.6.155.xz 6891280 BLAKE2B 1df8fbf4aab980280a52f6199f44f3030f917872fc5bf719dcd6bfeb236cd340aaea6cfe1da06948bbfbbdf4f89232a577e11dd0e422fb544ed2824b12f1c9cb SHA512 09f9f30b4bb33a324e3237e7eef78fe0dca9dc5d28e4c432a6e6bffc2a02dd4828f19bd1f0572e4f98cba94df55f427e11248689f0ae16437d0ef4cdda1a977a
|
||||
DIST patch-6.6.156.xz 6914532 BLAKE2B 95bda8ed3689d35c3bb5410f3c33b80097f78b038d343c33df3699dfb9d216215560411b939f2c6e8cba8990aa1169e914617d2432e14674484bbcac0b47d175 SHA512 de670a00152147ff05f19a5d519917bf522dfe40b3b88619e76dc768ffbf8d4609ba761c600c9441521de6254f87a6a2cf6162218ae90b1e75d7f5825c5dda10
|
||||
DIST patch-6.6.157.xz 7211724 BLAKE2B 0b1c80d86bc3fac163ef830979d2c3492e6b72ee56f17c18ce561b399a8b36d7292aabd56012bc978a7bd0b319551f7fb86d688a5e974be01a069446058f72b0 SHA512 6aca3405b62daa0e1fac66d5500705d6d780900b2960e2f50449b0db84cb4a1a814e7eadc9d97a3c959262e3cffb8ec63492ee6c3c0af163c1c8f8a10c184e1c
|
||||
|
||||
222
sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.18.52.ebuild
Normal file
222
sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.18.52.ebuild
Normal file
@@ -0,0 +1,222 @@
|
||||
# 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-6.18.42
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260914
|
||||
|
||||
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"
|
||||
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
app-alternatives/yacc
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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