commit: 7a6671d4eb29f7c3ee59511197d985f511ec3e2b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 18 11:46:58 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 18 12:49:52 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a6671d4
sys-kernel/gentoo-kernel: Bump to 6.12.15
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/gentoo-kernel/Manifest | 3 +
.../gentoo-kernel/gentoo-kernel-6.12.15.ebuild | 144 +++++++++++++++++++++
2 files changed, 147 insertions(+)
diff --git a/sys-kernel/gentoo-kernel/Manifest
b/sys-kernel/gentoo-kernel/Manifest
index dd2b67e1669e..e50b5418c7d4 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -22,6 +22,9 @@ DIST genpatches-6.12-16.extras.tar.xz 4056 BLAKE2B
268700eac9cc0e309e30140397211
DIST genpatches-6.12-18.base.tar.xz 1138088 BLAKE2B
6490753d4f8036fc29e7040695e0c85f556c2a928b8afe275fe11707a75a3a167a52ca63c6193600332fff2fae4afbeb01e0dbfe5be81466a0883f0301ed025c
SHA512
7151ba70619b2950ed6f2b46ceacedfa884200c8600d97718da0e1a8ba53b428633e6675235e36d1a6508e32287b69b195d1b5cacb1bafb0a08741db58b2b9cb
DIST genpatches-6.12-18.experimental.tar.xz 78492 BLAKE2B
0b4f0bb707e1cd9150ba02bac4f4b94af8946eb1cc4559ccb409373a3759787bb08a8bb06f9a381331568a499cf94bd26ed1956cd07e615da2f8ae9bb11f2c1a
SHA512
939735275a61f3a1077adcf518ac09e6bd5a7c26d9cd2f561bd4011cd9f0a3053f3093e53bfeac8f133a0507d6a6d98a2738a7d7686c1694db83530d33eb26d9
DIST genpatches-6.12-18.extras.tar.xz 4056 BLAKE2B
da0da8cc6a7691e748bc0068e1e65e9becc7357dc2046c520202acdfdf95d7032095fc7b5be642599b6b960026ef747edf96131128af3a21a7a5fcba6f5aaec9
SHA512
3221e842185265a129eb49413661ff74866377292b0a8345bbf55cfe162bf5afc1ee79644a8b81cac1bf370f432e54718bf760a13497d3505472d786bd8d3591
+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.13-2.base.tar.xz 15268 BLAKE2B
cf7b141b036ce1f324e59a2a159cf031e05242dc82f56f65f280e93650c879c35fad3906b680394741a8582310b7924cd09e0b48887130e39ef713fcf4c513f5
SHA512
058545ff09be7f54889b691abbface6579a3f030830115a06c15182d1a92ff5e566b4989de65ec21c57a233f792b973408f8405fb33d020939b06ab31f3b1449
DIST genpatches-6.13-2.experimental.tar.xz 6052 BLAKE2B
f53af366977e853537659e1eb80f40fa2dfcdbb8ffbbf57c1de98466e3c61c0839c529b582587fde2cff0701793d86f35e2d6cf4aa5ccea84818acb0a83f8420
SHA512
8176bd1707abff801885c968cc45515ba14bfe4c1f846ba85a2fe3c0c097eebe753df0c828ed7c003590128b6c2f49950fc24030b2e2802da291a84455e36012
DIST genpatches-6.13-2.extras.tar.xz 4056 BLAKE2B
87dabe3972da098d4491f83189fa2cef15d7212800f4daad3bb248a0895112def3ceebe5c6101eea3832eef329827ca53e2c0fbc82febac0158a461ee59a5b51
SHA512
526d45b794e14a6097e25f1a614680a76db07fd6c423362fd38378986f29fc139557573ad61fcd2a2f865cbe2e575528fbf57a04f2b5804f84fe89f284ca8c07
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.15.ebuild
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.15.ebuild
new file mode 100644
index 000000000000..5b65f76f5b2f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.15.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[@]}"
+}