commit:     95b86af5db51f9f15e149a0c03ef7028bbf55f40
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 27 12:40:25 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 27 17:39:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95b86af5

sys-kernel/gentoo-kernel: Bump to 6.6.95

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

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

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index 0ff35a8a3438..60ad9e7b9a2e 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -54,6 +54,9 @@ DIST genpatches-6.6-102.extras.tar.xz 4060 BLAKE2B 
52c598975958a1ce82ef6b800d7f9
 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 genpatches-6.6-104.base.tar.xz 5375020 BLAKE2B 
f133a37b1c26b128143a20624ee225f5a1ec4d6184f6c1100d3c3ab4fa9e361a632e08b814baf8361b3ff51f5197de6d335f98417d07d17b1f64bfc285e90ed5
 SHA512 
a405172609bd2811001778e3f95393d60cbf0cff5f78763801745e99d118be7a34623a9cc487253f474e3ff3a50ffa22f3d905d05e0dddc82bf6ddf3234f3fc9
+DIST genpatches-6.6-104.experimental.tar.xz 6056 BLAKE2B 
4270f00f11fa0712be18e862b1a5b156b5333d67f467be777cbe0a668877bb5ca3c8d83f5e1c468accc2887fd28203dfca28e6b5c2ef7906afae5683bce8b7d5
 SHA512 
d7b49d0d8844f3b2feeb6f39ab883fd8dc211a418f0b152458f06b9a73faf34e428a379f64b35b10b06519c951cf128dd09925f688998ffc8bf03cc2a70e38ad
+DIST genpatches-6.6-104.extras.tar.xz 4060 BLAKE2B 
ddcbea0681fb032c8abbd5e85cd62cdff96fa5f3373a63a0d8b04dd4dc51c3422b15302a84c4f433f1721c8a02d52be977bd8ebe6188df283f70895099cda38d
 SHA512 
92c637f81a36cfdc1593d0f708ac6422fd7f2bfa4cccbbb5fb0f90e741d87a4f82e36230825f19b5166a0b32c28183e27a9a6c5c8f93ee40621021e777207ffb
 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.95.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.95.ebuild
new file mode 100644
index 000000000000..03e78108c7b9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.95.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