commit:     28f108f986fffeb0f007f1b2c7e191216be31890
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 25 12:14:53 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 25 18:34:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28f108f9

sys-kernel/gentoo-kernel: Bump to 6.6.88

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

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

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index 8b89d4c9b3b1..2726b846e9bb 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -60,6 +60,9 @@ DIST genpatches-6.6-95.extras.tar.xz 4056 BLAKE2B 
4f8a565b8f4d422373984736276882
 DIST genpatches-6.6-96.base.tar.xz 4809812 BLAKE2B 
2a803304f79d63a3a960c20633c6adde18e9908b0cce2087986721caca2489c7d9f603aa786dfc428a1720f9f6c3f5bc1fc9c714beb09fe43e5d7eb901e7c2a5
 SHA512 
dcd3ca2cf6cf5f640216c4d6dbb35ee7bc56745b7db0bac05b5c71101a00032a10cb3d94c5ef9c704d7317e373a2da81b86a2a35348c4d60592cb4174c5afeb4
 DIST genpatches-6.6-96.experimental.tar.xz 6052 BLAKE2B 
36ee6cc5fb663c9a40528d7af0f0eb1bd35ba337cf119f579516a08be96f8ddae28cfe3b0ab067630131bf28e17f3db1fbf37189daf86b1375c53cd65c673394
 SHA512 
bb2a071d4e6c1801699b50af132ca61d6527e178706765e611f670338d204423fe7d56acdc8c1b26dc038eeaad1970bef8916c64606595bca848ac3e711b3c25
 DIST genpatches-6.6-96.extras.tar.xz 4056 BLAKE2B 
56475cb62c6b77feff83aa82fbf171e9bf8ba71d0d24675d9fd13b72cbee30432feea30930c7626efa1b5e0874e9467cac872e9f800908a9ac91f4258c312bd7
 SHA512 
6b1cd09bc28a7a0f9a6ccacd4dc27b365c508b0445bd6f21bb15b9a82e981a471e80c046d3b39d85acf49a40feb4d8db0f91d76296719ae1d3e34047d895236a
+DIST genpatches-6.6-97.base.tar.xz 4911476 BLAKE2B 
8bc5c6548182363c183b3fdfbf53467a9e973d7eafe6bf31b62be93a70cfee779b1f6a4e87051a76991633853d3540504e02230bde8f02bdfef32b2254218d7a
 SHA512 
a6c3fe80a1f285297cdd61a254c1a995e714614f2cc5945074e8e65890f4ed614ef58479b10bbf356343dc9445bb88ae596c794ec34e79106a5e21e7097ddaa9
+DIST genpatches-6.6-97.experimental.tar.xz 6048 BLAKE2B 
84484d8d37812c5df2bc2d43c9f9812c3c22ef8206bc400c4151b3c920c49e28bd9ef8310a9a30e40a10e58ae1d665b91371605a0ffe63ecdfdbbc2c5e837801
 SHA512 
a1415f4613d5905d9609a6bc175cce0a0087fe283abb0624e4917a71aeefac96edd347f865316a50d2e64851dd961975bbf6ee789a304941a3d77d19f38dc796
+DIST genpatches-6.6-97.extras.tar.xz 4056 BLAKE2B 
ab29ea3f128eafcd229aa3280ef690e4e5d3f83fd4c85a4118a4c8ba5c1d5f7bd87c30659c972f917d193faa3261f1daa0c5b7144fe4c7be0247e78ab4285d76
 SHA512 
e586afbab5068e21821a0722f903c232dd36d24aad3e72c451870c52fdd37d5a8b43e2ef818340b8e9f9e49fa5e05684cf28465bb3b6e2a21a49d78b37e50f3f
 DIST gentoo-kernel-config-g15.tar.gz 5746 BLAKE2B 
2baef40e18cbf3bb975362d71ad674604ad80338d1e6914ffa2fc03af26f1b9c9cec66d39a56077693a7327060bc29bd5eb5787549857dd3779e841192cb2016
 SHA512 
45d609ee25a529988868b8c99c808f4e6abbde34ae501bf35523431ee85c9f3657663d6f938f2036a5f012a55a68965b32fd41fc44d8f6ca606a6fd38f952445
 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

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.88.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.88.ebuild
new file mode 100644
index 000000000000..03e78108c7b9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.88.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