commit: 887972f021814f0c6b1acac933c0ae0b72b69e71
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 11 13:54:31 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb 11 19:05:42 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=887972f0
sys-kernel/gentoo-kernel: Bump to 6.12.70
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/gentoo-kernel/Manifest | 1 +
.../gentoo-kernel/gentoo-kernel-6.12.70.ebuild | 184 +++++++++++++++++++++
2 files changed, 185 insertions(+)
diff --git a/sys-kernel/gentoo-kernel/Manifest
b/sys-kernel/gentoo-kernel/Manifest
index 39307f02d0b2..1addd3207209 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -48,6 +48,7 @@ DIST patch-6.1.161.xz 7001008 BLAKE2B
0834839f836fe47295f7a81aef9d05d77a8b1ef6df
DIST patch-6.1.162.xz 7050196 BLAKE2B
f27f1c103427be49c17bc308eb09b99bbb22e469f1be371ba2ef5ce4f1155a76602822dac6fc6bad231894360fc944e4eaf8bd6dca7ab43222f06bcc41957d35
SHA512
5dfcb8d60784966e1cb0ff8c2cdaec30c6c7bf568f0936cb2e7293a737a9d3c93281fc49efdce836997a8d8165a3cfa16762a9352f649edbef1fe39665820868
DIST patch-6.12.68.xz 3814500 BLAKE2B
cc4f7cfac038b6d1015f929c8ffe1949bdf21da073adb40d65f39f6a3501c3f295ebb3d5727cb24a847dae6741531d7eafcdf8b478b5f4cfc9bebcd7e6e5875e
SHA512
3963254af3e07d3bca03999ab39d8e18732b76b5972a125f024b82c44f6df63af5474e7b4507553fca5652cf865b9c7ac8d44224f91b704105bc67b65fdafa3f
DIST patch-6.12.69.xz 3832080 BLAKE2B
f70cbf90f1a96e1b0384990bb238f6d433a6fe4e72f5520703adfcd83900b558bf214301cdf8c4332bb5398136606dc3ce5cb7861f3b9d0ed89f40edfcf5e4f3
SHA512
9c59a3223256782acfc0a1772f33451572e77ecc769e9b785ff777a6748ee9f649361502ade3a9d86a9fa9ab48a62df8622415096d5f1c9b03cc5dc9db64057b
+DIST patch-6.12.70.xz 3851836 BLAKE2B
e271ff2ca48b4d7b339a66c3aaa0a47bb5311af45aa4a69adeabeec45377382290e9c9693444a36ae05bd63ebc5fedfe6e05130ad6aac1be972e1122b0e40d59
SHA512
66c8713ec2f637e0de4b357626d976dc6a1a55471d5c58818377a8913376ebb13ec6331a9fb5fb0c6905fd22a26ad972a4a6c824ef5dec2947eb5ab5dbd7d17b
DIST patch-6.18.10.xz 658132 BLAKE2B
1ae06ff14a3f6e8fddc13044607db2aca2349cde4a2a6ed0dee08805d00344fce0653d292c5df5f063532fe4c3459d14ea2f3595bd173446e037cfba8c735855
SHA512
47441292df0bcfd1d673c98232ee82547d88e0c83b571d50d1ee4d5eadd46f2664dde74203c6df0183b33c4201b35e4d52543e47001efa23d37f1a664d022985
DIST patch-6.18.8.xz 571300 BLAKE2B
839d683fe10c1112d0dc6b71128b74e5de24bfc39f06b269845c7e2e74b4a5b05eb5bcb43104980354828af65c7b4af3c4b10c0ccbe2e6c6e398bf82b9462e0d
SHA512
7c75c98dcae76acfae4d5b566509392ff91906ca813260f55b0b6425ff2267080289d2d1d19be656db161e0718a3073d9dc53288b779158c006ac84cac8f9b57
DIST patch-6.18.9.xz 603380 BLAKE2B
2296caebac3b92c0ed247229b1cd0f9d9d7cad6930b1a84a1cc4ff71567141a0a2e7e65d66c1df670df872961583afe13cfbad368a819d637d67d9e0b64aab65
SHA512
fd3822bec8e654b49d387eb94d9d4ca89c704d3ab52be2025c8c28e7cf648dc94cd9f1231227dd71abbc64ef1ace086aec7339691c4afd5234cba1e448ded9cc
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.70.ebuild
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.70.ebuild
new file mode 100644
index 000000000000..cb2a22ae6a2a
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.70.ebuild
@@ -0,0 +1,184 @@
+# Copyright 2020-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KERNEL_IUSE_GENERIC_UKI=1
+
+inherit kernel-build toolchain-funcs verify-sig
+
+BASE_P=linux-${PV%.*}
+PATCH_PV=${PV%_p*}
+PATCHSET=linux-gentoo-patches-6.12.68
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.12.41-gentoo
+GENTOO_CONFIG_VER=g18
+SHA256SUM_DATE=20260211
+
+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/${BASE_P}.tar.xz
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut
1).x/patch-${PATCH_PV}.xz
+ https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
+
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ verify-sig? (
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut
1).x/sha256sums.asc
+ -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
+ )
+ 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}
+ )
+ riscv? (
+
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
+ -> kernel-riscv64-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}/${BASE_P}
+
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="debug experimental hardened"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ hppa? ( savedconfig )
+ sparc? ( savedconfig )
+"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+BDEPEND="
+ debug? ( dev-util/pahole )
+ verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
+"
+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
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
+
+src_unpack() {
+ if use verify-sig; then
+ cd "${DISTDIR}" || die
+ verify-sig_verify_signed_checksums \
+ "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc"
\
+ sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
+ cd "${WORKDIR}" || die
+ fi
+
+ default
+}
+
+src_prepare() {
+ local patch
+ eapply "${WORKDIR}/patch-${PATCH_PV}"
+ for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
+ eapply "${patch}"
+ # non-experimental patches always finish with Gentoo Kconfig
+ # when ! use experimental, stop applying after it
+ if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
&&
+ ! use experimental
+ then
+ break
+ fi
+ done
+
+ default
+
+ # add Gentoo patchset version
+ local extraversion=${PV#${PATCH_PV}}
+ sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile ||
die
+
+ local biendian=false
+
+ # prepare the default config
+ case ${ARCH} in
+ arm | hppa | loong | 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}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+ ;;
+ ppc64)
+ cp
"${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ riscv)
+ cp
"${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ 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
+ "${dist_conf_path}"/6.12+.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"
+ "${dist_conf_path}/zboot.config"
+ )
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}