commit:     ff8f58baae936673a2b6f6f702a9027b88c48b56
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 21 14:29:03 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 21 18:17:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff8f58ba

sys-kernel/gentoo-kernel: Bump to 6.12.16

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

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

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index 647f5579364a..f3603262fda4 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -16,6 +16,9 @@ DIST genpatches-6.12-16.extras.tar.xz 4056 BLAKE2B 
268700eac9cc0e309e30140397211
 DIST genpatches-6.12-19.base.tar.xz 1138892 BLAKE2B 
d2869a9b38ce1ea0dea73a229f929c7e63f2cf1da904d070bf9623eab293e40d4af3d9ebd5c3b2fc5a2cf5f4756dfc889ccb62e49ef84c9fe31c6d2b4b48fc1b
 SHA512 
243d81b3e8ba636ef57229dbbde5d976c1ac44475349cd93f1892e696a6e22eb4e7143c278618c0e5ce865af37a8c21e8a6b8d38f3f6839153645d3f88856ca6
 DIST genpatches-6.12-19.experimental.tar.xz 78480 BLAKE2B 
819fe6aac4dd970e66a104b3f8453e133b447452e788eaedd4bdc79a6c26d6cd7ea7562edb0de5b16996b8881aeba8ea310199253e28fee6105d04b34ffc655c
 SHA512 
29a5c170340a36a9b9b1e252b192623c9341f26e4a179b7c9c4bdfc52644625be4ce6f426abcc1de5ec9f556e9ff0e0b80b56ac94abaa4465badd9732c7b9228
 DIST genpatches-6.12-19.extras.tar.xz 4056 BLAKE2B 
444749865813cd1929f307e8c865dc0a08b47d4a47ab2a326425343ecf3c448ff2732099013c2e80ed7120d1b0ca9542f4924dca38e084b9b2e0e6fb4f5622b9
 SHA512 
4d7e0ce29fa72dcd7f7ecbad844c94e5d711249f4437d3911eaca901d422c129c987166fa4d63cf52787ebba77b777f552bbdca283b8431bf0e692af3448a5bd
+DIST genpatches-6.12-20.base.tar.xz 1202448 BLAKE2B 
29d739ca47c15374e039c5ca76017dca7ff4da352bd161127c0fa1d2d9faae002a99d284b3dcc94cc6357e3df9f43d4637fe172948709a2a6829df836edae0d3
 SHA512 
47e5e47d11ce176d3cb22e51641b2987d8b3aff62fc12546f3336c939108da5fbd66f1d2dee0b0d932b896666e504b8449bc988c34bca8620e3b185322db0106
+DIST genpatches-6.12-20.experimental.tar.xz 78504 BLAKE2B 
25778b844669455b4e86da77ea029ce6ce788b8a26d5a6b4674e9164045eeadba997ded46611457fe14e0d8db56927dffc76fb9ead9ee268bda76ed59d7b7a70
 SHA512 
e0f94b7fbba58372e66114b8c4c0d7ccb37d325dc0657dc808ecc04961d4809eff6a3af149fe5ac27d9979041954aab674bab3312ea5ad6e832df7051606e80a
+DIST genpatches-6.12-20.extras.tar.xz 4056 BLAKE2B 
d4c33c87e387de3b7bda99a9b58c8b8284129e945ceebe7b3972038bfcf9ccd0b67c0136f82ca1178ea60e12861e3bec4b26bf7b3c91c36fe9ecb0520930f1c9
 SHA512 
af5c01cb6e4154c20cc5d3cc84c90aab8e43b616e04da2c08b0e4e86b62c9a840a02dea467bc7eba39f699457c37a8038c5e81991bc3234dbfa5cba37bdab4e2
 DIST genpatches-6.13-5.base.tar.xz 335748 BLAKE2B 
167f3f37113e64882ac841e16344ff25a96e614d3a29ebb96b5a21ddf7496386ea4f2397d5a5df0e6ce1e98348934befad7cecae6e947ba94ce1551ff837043e
 SHA512 
1b6d3777fc25d24d31ccf33edbca65b09a5b0f3f48d8af5058b4c8de7b32830bf6fcff330e64ef2b9220cd4a117cc571bc3f900b52e68d4a9277c2a7d1f1ef32
 DIST genpatches-6.13-5.experimental.tar.xz 6056 BLAKE2B 
b243d376019facce55c1df9826f89449f372f2f952c0aaf7c8fdd806d3b1659b0af338938075653ec809b3d673396f09d968f8c4ea1d9d795c6b2168b835f154
 SHA512 
b481e69eb1a317a2aca633160668aeb147323c4d0befa7d94cd0718f7e426713d2f4e1bf761f2e171b5970121fd0e90da56542b850ad64764571aa22ee6d0988
 DIST genpatches-6.13-5.extras.tar.xz 4056 BLAKE2B 
452b32878514cf29e43de6103b298c41150b888bd78509e26211c7d39e6b8f23acff0f4a5c906e1b0a8cbbb939f0fc6a106085542d4f92bc1e6f2f85580df7f2
 SHA512 
688fbea8a74987de17fa4afa84a6f3904b39518db971d7ccea13d4fb4f6e7df8031c940e31c2297cf7b15c7d3ec49941232b8d9d352c69e8ca6233bf7b846779

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.16.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.16.ebuild
new file mode 100644
index 000000000000..5b65f76f5b2f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.16.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##*.} + 4 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.12.8-gentoo
+GENTOO_CONFIG_VER=g15
+
+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