commit: b28779d60880177c0b98ee20c96c5b8771db166c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 19 04:23:16 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jan 19 04:23:16 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b28779d6
sys-kernel/gentoo-kernel-bin: Bump to 6.6.121
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/gentoo-kernel-bin/Manifest | 5 +
.../gentoo-kernel-bin-6.6.121.ebuild | 236 +++++++++++++++++++++
2 files changed, 241 insertions(+)
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest
b/sys-kernel/gentoo-kernel-bin/Manifest
index 401963e34945..7e6af418942e 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -46,6 +46,10 @@ DIST gentoo-kernel-6.6.120-1.amd64.gpkg.tar 277831680
BLAKE2B a756d865a21ea620c2
DIST gentoo-kernel-6.6.120-1.arm64.gpkg.tar 246640640 BLAKE2B
0cb8c831be721af471f275aa06dcc860fdccb802885774401db4f464340db746da440114d2825ed014c56c5fd039655675cbbf7a3f9e7337c7c4029184765467
SHA512
8b78a62ac5babcbb61e0a2f3cc2126d63c5aedcdd7f766bcb05642dd2508cfac9ed4d968f5c51e89dc31442aa8cacf93344df0ec32d256ed2cfa39525dced3e9
DIST gentoo-kernel-6.6.120-1.ppc64le.gpkg.tar 65454080 BLAKE2B
45f4376b54389ab8e4e0d9c95b24c225fcd3633ab3991a8e30d2a5c276d1aa3cc841f30f5876a5a78ba9bacc2371f077882a137ce8d253b973c5309123831965
SHA512
3deead0ed8218dfb7ab4d276c68062e059aab7c9751a7344d4e82b6b235ce30b7f2f7e67324f1664ca6c32a37a00c51d58f9aaa215cb2f2e246cd3566393f26d
DIST gentoo-kernel-6.6.120-1.x86.gpkg.tar 68720640 BLAKE2B
ff6f084aeac2340aa5d7bda1a18e2b8ee3abc349207758fffb3ffb542c3562447207bb1216828e6c93ca26dbbec1e5cbc32c86894ce087b973f17df187e3df44
SHA512
05b1231d3ad2865329b008fbbf8d6963ec5f952fd683712571384eea5adafc53074504a474d343da24d88a8c1b0ee58653715ecbd6ac5b3ed0b4cd26fe10e3a1
+DIST gentoo-kernel-6.6.121-1.amd64.gpkg.tar 277913600 BLAKE2B
c98a92286eacd208364d645661647c4866680ce2ef6d3a7f53b95cb8cce377bfd9cc007648eb237f351dac7cc93a4b4efded5f4213f68a41f75a6c2fbe2b9610
SHA512
24b1307013f5ea98557d2423a3f3836feb391210fb47a3f4025adffc7819e5dd8788ff21001cc0057d21844d342910c8d40ea526d97841cbbdc937e4e5851847
+DIST gentoo-kernel-6.6.121-1.arm64.gpkg.tar 246753280 BLAKE2B
fcfb83ae48cda39e83fee8eb3b0f23be6be7d3c1d9045cc3ddad8dfa3fdc4ede6b32b7d6e3045ac9c428cfae49b1d8246e6df682b450226725fa9d0be2c3a344
SHA512
42185b7359dbe1d88e54161b4683ad349827e4292e8243d9bda72d2c6cf3c37f222bc175e453869640e0ad3cba28e413126f67454ea244188f38169612d9d09b
+DIST gentoo-kernel-6.6.121-1.ppc64le.gpkg.tar 65464320 BLAKE2B
f373cab91a17982bf300f2020033e3b9764675cb1163b21ec5b1808bbb379d8455a0113b4281eb7261eaeb98239bf1220cc09cb0ce40a03d42a4c8bca8515435
SHA512
9f8666853f69a99048dd655801afa693e1e9cbca052fb1476e28723b8ddab78d80678ddda3d67e706d7c4ccd9984c1a094a41acc04c84d66c83db55847f440de
+DIST gentoo-kernel-6.6.121-1.x86.gpkg.tar 68730880 BLAKE2B
17becbbc985b81684a9bc8c63b78373e744f7175e5e494c902012608b2bf9a945d19c46f16f2f2d2c8f2afd43fee0575e1794f9c050d7fef94362d1a7204fcbb
SHA512
9a03ee26ad3d34077273f75ef966b337da25f1729010a71850bd330f83452d506003c23445ee263664546b429e509651b99ad8231040a691819ff3411d60b4d3
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-20251207.asc 371816 BLAKE2B
0ad6d842aa6920fb6ee0c58b20f476fd0841937ad2f680ff99f68e593a46b674ab9a095c620b1016e1de279797af5710acf7b99aad14e3b55a6594109ecbd39d
SHA512
f27882fb53bff63960f0f1bc11b23c4dfea77ee5e06ebb63fa94ff2c5f5e38d12242da5f73c9973ad197ff45b3649b89bb304a409d77e2b39c6defd6bd62fa2c
@@ -76,3 +80,4 @@ DIST patch-6.18.5.xz 414548 BLAKE2B
50fe5af5616fb080d90111c9b10d7f24ffa40ea6bcd7
DIST patch-6.18.6.xz 465484 BLAKE2B
b7df26c8e524eacf89dfd34c92d572a0b36e0f6c6bbe3183d3cb909ef156487557337bd1e3780ce383966d06a9d2f640cf6ee4fc64750ff9c592a46fea010993
SHA512
ffc4711d98b639f1b43fbaeebb8f5c088218b263b178b03494522d3ef21898595fb961bb4202284d40aa42b3a8a38e365e3b610dd9ce86d19e19d9068e54609c
DIST patch-6.6.119.xz 5306132 BLAKE2B
36172254639820d8853be83c2f98cf1e9923087b07bc939d0ff97dd8f3fa1af3ea1719f76aff619f6e7d8e493d7d2f059beac5127a644bc9e533a95b35c14759
SHA512
a4e8267769e719a30ca8d07a5c6f87b4856d55711eebde74170e8e1de4ef74be3ad69cbcb7d26bc7ae2e7a133755b7c2d1faede7e8389c29265358868238a29a
DIST patch-6.6.120.xz 5455104 BLAKE2B
0c6395ff0a859101789bd2d02d9ea5e29611c38bec75f575fc656248980b622f365fe1b48e90b2d3bbea27c584bcfc4dff4eba7a6a65666f600e324511790602
SHA512
ce62624edc873023769d23bf02b015aee84d9eb38830956b3738bbabeff3c741f2d046c2a5254674e57e10614a4209ba4f3586a995180951923798634bacb2b0
+DIST patch-6.6.121.xz 5473968 BLAKE2B
85ff76a7141a541b09b247ab5c2a9fbc6649aec36d32a6bc8895f92485beb776d6067782e02e83cc9184d804c28d1b2bcabda29bba43c88c6e68cd86f09879da
SHA512
d0be05b21ac82d52557cc6925416a33889bf8524f31a713cb48bf1283d2b4fb212cf018dd92238acaf14ace9bcbd1d857efb8798337b659fe140ba37b002be2f
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.121.ebuild
b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.121.ebuild
new file mode 100644
index 000000000000..f00842bfbcf3
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.121.ebuild
@@ -0,0 +1,236 @@
+# 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.6.111
+BINPKG=${P/-bin}-1
+SHA256SUM_DATE=20260118
+
+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
+}