commit:     b32622416523841d4f6a91257309ff3de252744f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  8 05:25:35 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Mar  8 08:57:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3262241

sys-kernel/gentoo-kernel: Bump to 6.12.18

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

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

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index 8f9127ac1ac2..99a0a38b7256 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -10,6 +10,9 @@ DIST genpatches-6.12-20.extras.tar.xz 4056 BLAKE2B 
d4c33c87e387de3b7bda99a9b58c8
 DIST genpatches-6.12-21.base.tar.xz 1264008 BLAKE2B 
afb287c5e9e923f8e9dd87199579d3471a23a8dddbb537936ae652fc6a0023d3472cd964465e0771904a51d79b39b1e5b24c4534d7922279bb6da5b284e16c53
 SHA512 
c7c79180619f5a00d824717b273cddfa15b55adb7a645619f6e61f193f0fe8f8040bec2782c9a05e3d4896451148701108fe1d3a7730edb26d46f7802f5101f8
 DIST genpatches-6.12-21.experimental.tar.xz 78520 BLAKE2B 
d54bff82152abcafee32ef8e2b60a7a5dbd76f3f2abc7fbed3159df84fe17f5cbcbc3c3c7c0084cd542da04ce76e900d2628396552eaa9b385d86024b1dad194
 SHA512 
595033b2ed765cabd1e902fd87799c0dbe3001ee8327ecafadf0d3d1c0078bc122907dcdc9a5c14f0737d8b01f6a5065fafd5bed80ea3e7ef5a3ce985ccbb641
 DIST genpatches-6.12-21.extras.tar.xz 4056 BLAKE2B 
3e9f15c4f81d5435193b58cc9ca334d88aba9e2f53fd4e92a4d03af361efeb0169c7bcbc6e5f63e84f76b7ea7025c6bf21ce265d5e382967191839a0d54f73c3
 SHA512 
aa3ce68cc56dbf92c2e149a9cb3c6e55e8b232d4984eeb30346d31070d3650724e2749d46eadaa103c8f40c9eb1a23c4fd66c641d31eefa84a60b988057d409c
+DIST genpatches-6.12-22.base.tar.xz 1317780 BLAKE2B 
0a9dfe87c950f29ac195f28ad5b62e66087717a00a17cd0d8510e0f50629c863e14f7cb289382cb080aa0baca66e30ceac168e64b203d4e5cd24acf39c6f2c25
 SHA512 
f0e073bd24a3f2f09a2a707e6cec54cee9a6388af62ca6d4f49a2369f300a544c7e91ba1adea432a63dae4312ab430ba299dea930edcff72512652c482fd73c1
+DIST genpatches-6.12-22.experimental.tar.xz 78500 BLAKE2B 
e3904a21fa56ff04dcd9c811561edc4099ad932234fe110f386794d442fe9c1a8b1d8af213e768b47f899588004a053037d853ef0a531f85b02f2444972e0c36
 SHA512 
e35b9b8134af31d7ff095171e1bd11b3f6a7c7a09864d05fa5584f6fb28953d7391d664039ec35cef94eaf8274b25c9898719dbd92c5b598ddcfd57d312d1863
+DIST genpatches-6.12-22.extras.tar.xz 4056 BLAKE2B 
73c796425bda6a7f04e253ae9ae75758c53ba21ec0d90a05f0a615f77122020a87e10292299d0a054ed692dca25f463e7978d2df09edb69447396eb11bf79a8e
 SHA512 
afc390d43a0e5bb099abc7789ad2bc7755e03f387ca8ca38e3ee56c11962d801b71473a39a6083c3376805687382670864352b538de7310b5b963b002ec48480
 DIST genpatches-6.13-6.base.tar.xz 417180 BLAKE2B 
69cafb7cb776dba4705d15c409930e7006775ecf92f7ce2be78fd2d43dcd04ee8b02fbcf4286545963fe24785bbaeada9bf20c47c45777e7cb2ad097170d82bc
 SHA512 
eb3d03ab002ce5079beabd9fd5ad4423406fe00f1f2013989a8686ecdeb30ebcaba3df9878167ac930da85eca801762370b0538f14720d2efb8c65787dac5bbc
 DIST genpatches-6.13-6.experimental.tar.xz 6044 BLAKE2B 
fcd6bfabc02309406b8c5652812476511afe9fe9f254593bbfb4eeccfe13becee8d0e607baa94a5ca02a74d25337287ec249bc8e70aed3f7a924224f070b6eda
 SHA512 
38be5a9478b708debe1da05582f6c9a90f02b038cffcdf51c4c64d84071545ced4ed6b55387a6e34de81894e56d2defac294aefd5d726faedb8abfc8c546ab57
 DIST genpatches-6.13-6.extras.tar.xz 4056 BLAKE2B 
c87a50404218d0c961f2aa31f39dc5b98a3f6d3488e05e2f43e687dc01deb20395d4a5e9e98eecf8a7f29ecf0b654fe1166b6076d6b685f07c2bdfb33a9f192a
 SHA512 
f11b487705feea7c9113ef6b624bafb3341ceafc9d825726a692b929b068dc1587d23b14e024c36ba04cbfd1e5bb4fdb2e1234611d3469759f018f009cd6f02b

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