commit: 460c3d7d8547082fecb77d69e0166b8d0747780f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 11 13:57:40 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb 11 19:05:43 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=460c3d7d
sys-kernel/gentoo-kernel: Bump to 6.6.124
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/gentoo-kernel/Manifest | 2 +
.../gentoo-kernel/gentoo-kernel-6.6.124.ebuild | 177 +++++++++++++++++++++
2 files changed, 179 insertions(+)
diff --git a/sys-kernel/gentoo-kernel/Manifest
b/sys-kernel/gentoo-kernel/Manifest
index 1addd3207209..8cdccd40e740 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -40,6 +40,7 @@ DIST linux-gentoo-patches-6.1.161.tar.xz 31484 BLAKE2B
524362ee01a348eef620b35a0
DIST linux-gentoo-patches-6.12.68.tar.xz 20976 BLAKE2B
62632582b422966692cdd092271315df8ee42254acddcdb6c9b61eb2838dbbb3af03f3415eb12b1ada759859a517d1823ca1bb53ab8f714b9d7d58dd230b4eff
SHA512
cda0a76f37706cac07a3da246f371c7f3b7f6adbf355122b581480e3227ff98ec89c5e3d26620baf01672ec6a50685147a35b95852221b5d4808c62e80889b61
DIST linux-gentoo-patches-6.18.4.tar.xz 11664 BLAKE2B
f939e93580b13301ac66e3e6b924f48256109311f7cc3c5fe83c504bb0469150ea4db4744f39f3233d1c5f5850659c272e4b32cb2252322f404a9ab8a64279cb
SHA512
505f01b59a9d684d99a997c3ed26ec023100d524485724324123b920153ecaf63bcd26040b0ca05886ad3969828a5bf4dff60a0690e9791d6a2ce05ce03fb95a
DIST linux-gentoo-patches-6.6.111.tar.xz 45328 BLAKE2B
d940d418295c07fcf55614fe415b8124bb9e6abdd2cdb992f9b06ceb3f752503bf17df4224f781cef85170928a76013227340235d50b514899d3893d2f94efcf
SHA512
4555fad79908133b0fd0ac0ec03ef4f5b6345974e4243b35255e1ee24182f1091366bb39f8d0cf40f67dde04eb688e95e2902c048b8a3b7aebae64fcc7c2847e
+DIST linux-gentoo-patches-6.6.124.tar.xz 42800 BLAKE2B
89bc7672bd696c19fa8d7485e14130b715a2b03ea9982c3f8aa5a5e734115a21c1c45873c1799217cdd1faf2c10b801cae686a382e93f6d87cfb919068cd4e84
SHA512
c5ee4cd01de2f6d70402e464acc35b7f587b6bf6d0c8d5433d619746fd7c53afa31aaa2492e4e0238ce1ac9c9cfeaae741950024044faf8b8c98e85caec0c5ab
DIST patch-5.10.248.xz 7072740 BLAKE2B
44e3fa53ac8d3c40d015261d5c0eaa2d7c8b9b07cf874190becb97a6182c9a6b719f7e115ffd5ff45be50305b5a00d0a9d5fff94d86af4b4eb4717e971082738
SHA512
375e15fda9468acb191ea1421fca74bc6e1f4b33369e77ecb04267c3575c282a63cafa6bb4c8136ee071f091dd61f94a8e7eeb584ef9eb1daf2cef16eb9def25
DIST patch-5.10.249.xz 7103128 BLAKE2B
7601051f14d8f5e128d92c4b6e15300d3918e8bdff26ce75bbea2540909f4578bececcd9a193add434c19b292c55e7f6c231fad5a70a60a885c34e86f47fbc6f
SHA512
d2e236c9e5a771efad02a799892f31808adaf372a898191ecd42f496e7673e3168dcd46c4d90cce778e505a47679991e2254fa40f2eb17716f91df93cb08e646
DIST patch-5.15.198.xz 7460868 BLAKE2B
82b3476876e7c2126f1a1eef007a4ee6dd07f9fe471769bf0faf7424740615dfc699bc569a479fd7dbb2766c2f352ef25f1d4dd70304a1fa43ee690dd675882f
SHA512
e3bb0bf714ab36369d27af59d87ee0d238ed2b9dfef6ac71e31944d4036571040794c2211746cbdead8619a6fd158f5c6c847b20d9e128cfdb1683cfad8d1662
@@ -54,3 +55,4 @@ DIST patch-6.18.8.xz 571300 BLAKE2B
839d683fe10c1112d0dc6b71128b74e5de24bfc39f06
DIST patch-6.18.9.xz 603380 BLAKE2B
2296caebac3b92c0ed247229b1cd0f9d9d7cad6930b1a84a1cc4ff71567141a0a2e7e65d66c1df670df872961583afe13cfbad368a819d637d67d9e0b64aab65
SHA512
fd3822bec8e654b49d387eb94d9d4ca89c704d3ab52be2025c8c28e7cf648dc94cd9f1231227dd71abbc64ef1ace086aec7339691c4afd5234cba1e448ded9cc
DIST patch-6.6.122.xz 5522356 BLAKE2B
80dc69fa15ee6746a26c864fe4b3d6db3f1c185799eca54ed1e7869b422050cbb500ce457d43711f1e5ea6e7b4de40a3edd9202a69d29337b9a1ff09ac318057
SHA512
2b4bdb199b6986cfb0beb4f53ff923812b7dc549227d7b50e69d811983b4c4e9374741e59f7acc3dc452b17a142392a1ac42c78230f0d22f01f6c8b277b4b32e
DIST patch-6.6.123.xz 5532320 BLAKE2B
83b41dbd943b2f869b7fd920098ff86259d13caa118ed09edd61d32a1bd983a4231e36cebf54e694a81a81aca1e24545cbf0507364bf75455d80afe04d14cb79
SHA512
f1f7ef9dedf4342f3616fa8a8b3bf33db68c112bd0c119892f8042e20e030bd9547c00311f69b9b14f14fadb39f32cb4999f4c42114fb90b4268dfbe5e9c8384
+DIST patch-6.6.124.xz 5545288 BLAKE2B
46002e1333a82285631ebe22c778dce3af0281a27ab460a4ed175c370b5fb558dc1a66401dae6c8348b8059c588780653de8d53e8448d68dabe3b85da246175b
SHA512
d1f6af21cf5d089eb78b2408aa1afa08e0781fe15952709e68e115dafdcecb7ecaf232d624a28f1cda8917138714012a1ca74be5e7c14f4fcfb3723317364559
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.124.ebuild
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.124.ebuild
new file mode 100644
index 000000000000..c7c4b41362fb
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.124.ebuild
@@ -0,0 +1,177 @@
+# 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.6.124
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.6.12-gentoo
+GENTOO_CONFIG_VER=g17
+SHA256SUM_DATE=20260211
+
+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://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
+
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ 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://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )
+"
+S=${WORKDIR}/${BASE_P}
+
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="debug experimental hardened"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ hppa? ( savedconfig )
+ riscv? ( savedconfig )
+ sparc? ( savedconfig )
+"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+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}"
+ for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
+ eapply "${patch}"
+ # non-experimental patches always finish with Gentoo Kconfig
+ # when ! use experimental, stop applying after it
+ if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
&&
+ ! use experimental
+ then
+ break
+ fi
+ done
+
+ 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 | riscv | sparc)
+ > .config || die
+ ;;
+ amd64)
+ cp
"${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm64)
+ cp
"${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ ppc)
+ # assume powermac/powerbook defconfig
+ # we still package.use.force savedconfig
+ cp
"${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+ ;;
+ ppc64)
+ cp
"${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}"
.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-kernel-config-${GENTOO_CONFIG_VER}"
+
+ local merge_configs=(
+ "${T}"/version.config
+ "${dist_conf_path}"/base.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[@]}"
+}