commit:     b1461cf7ee5f0bd18be74c93227bb830c314f3e4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 19 16:04:13 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun 19 19:46:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1461cf7

sys-kernel/gentoo-kernel: Bump to 6.6.94

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/gentoo-kernel/Manifest                  |   3 +
 .../gentoo-kernel/gentoo-kernel-6.6.94.ebuild      | 144 +++++++++++++++++++++
 2 files changed, 147 insertions(+)

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index c797dbe410ea..5eb197600b47 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -43,6 +43,9 @@ DIST genpatches-6.6-101.extras.tar.xz 4056 BLAKE2B 
d83b765a55f25c4470ab6e5b3e8d2
 DIST genpatches-6.6-102.base.tar.xz 5221156 BLAKE2B 
107b3cc31c8566c3ee223b7ef0a491ba3284423b4f374d3b9b90f4fa331a4ba6a4fd19fc3a400a8ae4c31119472c3a27513e62bbf73030a2485e164d9acacc76
 SHA512 
861d67f58e124dcfc9295bd5119b7d84081351dc1b5a039e568276903914bfdbd5c2cf0bb318042f110221884cd5d635c01415b3f2f0d81313f2221402175fbb
 DIST genpatches-6.6-102.experimental.tar.xz 6052 BLAKE2B 
f0421599af4673b7d1a851fcb0f3bdad7509682382e4c603387d6921217752bd10a952b98e4d40b85b7f04ec694bd21d10d95149cb764cc857e2ba9510c0a236
 SHA512 
627f6f8f4bcd47a4857217ffa2dd2b301e7f68371d242b63c98686261c94bda47718d6ee416afa7ae44179d7d3ffb555a4f492bc24f6344c38570057c69935e8
 DIST genpatches-6.6-102.extras.tar.xz 4060 BLAKE2B 
52c598975958a1ce82ef6b800d7f9bf8dbf87464d589c551ce8538721e0038e889d5b113d0d72c22d6a669ca41f5f90c4a9d37ab6f45f8dc83dac8566bf98e3f
 SHA512 
8bfe934614e65b42d4da36a98927ccdb3fb379e12563063ec86317ba7bbc394350498c1da9f228b757149d8dea9a07a4e92f2463a3cc58cd510eadef853dc3c1
+DIST genpatches-6.6-103.base.tar.xz 5308204 BLAKE2B 
417b3ef7d6ddab17a8ce7b0cd9e5de842b5243bb63e1ea886255a6a582430963ded0fa513c3281d3bebc2362cda7ed6d80f23478ab372341ca8fae8d8147d1c9
 SHA512 
2f0bedf5be24ac00bc26f93e131b7832203eb29116dd86d1ab44e81b3612ce549ce80a1470b9782f86e991a1268af2d687cb3fcb09ddc268cdeea33483cf20b3
+DIST genpatches-6.6-103.experimental.tar.xz 6052 BLAKE2B 
1259c0b4e334e70bc5fe92aa86dfcd08ddd7bbc277458dd14fb4c1f0e600c5e94c56967cbd5c71df69aa402dfa24003797dba85820551aa703dda4b4283b29ae
 SHA512 
d207c0fbdbdc49e3f73352466f707809a11a99b000b11fb99bc9fc6140a3a90b3c0bc6267e1a3889e3033f4de0545e0d3513bde941080c7eba2720721dc589d5
+DIST genpatches-6.6-103.extras.tar.xz 4056 BLAKE2B 
72ff5d4be369c11dea978b634f986e121c8d8eb3901c91df3ee5e79ee99f0bcbecb6325c33ae134626a8bd43567b2034e067076f7729e2c002446f1b55752687
 SHA512 
0df263c431c3f0ef5b0b18a8aa85347182ca0343bb5fc4b0a05adfb642b0368aa5ebb3dc7a1a2572205a89f3573e7a9b6d87980d333694dc3ae45f66cea71ef7
 DIST gentoo-kernel-config-g16.tar.gz 5995 BLAKE2B 
cddb80d45169749c707d87efd186f7a981534aab2479b6c51790008ea61e9f9feac35d0d74b95dc18281e4b81771e09f259a1d9f216f5d7f806fa7cd6aeeb4d1
 SHA512 
f8114e645e1ab99e45703790b7e43c2fa9ee17b41a2265dccdd9187c122bf8b5a09ba918fbcf094aa899bb959f05d105ed474b75cdfa9a19c4d49fd138825647
 DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B 
a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d
 SHA512 
7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52
 DIST kernel-aarch64-fedora.config.6.1.102-gentoo 252811 BLAKE2B 
f6bad0d23132bf0dfbaa25db928a95f39763b6500fd1df9b4aeca4351e3e75f185891c0df96b111ad840e4bac431d74a9b11e7344e766ab49715663c89e4dbfc
 SHA512 
41ebf195d8b656801d49c6bb693ebe1404b6725d70d88d93a75bc4af230030d65ef0701ea931846b022a3c598dcca068fbc38ecf6d064262b3f5b88e57060437

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.94.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.94.ebuild
new file mode 100644
index 000000000000..03e78108c7b9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.94.ebuild
@@ -0,0 +1,144 @@
+# 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-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
+# 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=g16
+
+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/${MY_P}.tar.xz
+       
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+       
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
+       experimental? (
+               
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.experimental.tar.xz
+       )
+       
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+               -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+       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}/${MY_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 )
+"
+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
+"
+
+src_prepare() {
+       local PATCHES=(
+               # meh, genpatches have no directory
+               "${WORKDIR}"/*.patch
+       )
+       default
+
+       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}/${MY_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" )
+
+       kernel-build_merge_configs "${merge_configs[@]}"
+}

Reply via email to