commit: 0dd4bc3263185c7908f74d4e656fdd53375337b3
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 6 16:25:01 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 6 21:23:28 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dd4bc32
sys-kernel/gentoo-kernel: Bump to 6.1.162
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/gentoo-kernel/Manifest | 1 +
.../gentoo-kernel/gentoo-kernel-6.1.162.ebuild | 172 +++++++++++++++++++++
2 files changed, 173 insertions(+)
diff --git a/sys-kernel/gentoo-kernel/Manifest
b/sys-kernel/gentoo-kernel/Manifest
index 2ea521d30675..a6bb06dfb15e 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -55,6 +55,7 @@ DIST patch-5.15.197.xz 7360888 BLAKE2B
9c894232147fa560779a3d018396de0f90980b595
DIST patch-5.15.198.xz 7460868 BLAKE2B
82b3476876e7c2126f1a1eef007a4ee6dd07f9fe471769bf0faf7424740615dfc699bc569a479fd7dbb2766c2f352ef25f1d4dd70304a1fa43ee690dd675882f
SHA512
e3bb0bf714ab36369d27af59d87ee0d238ed2b9dfef6ac71e31944d4036571040794c2211746cbdead8619a6fd158f5c6c847b20d9e128cfdb1683cfad8d1662
DIST patch-6.1.159.xz 6840392 BLAKE2B
d5f15dc1fe5239b2d047ded7dc179ead7f1914900cf3fddfba28fd257edfe8671769c2a93140d0d5e064f2da80029701e2a9d70240f6665e81d594241b813d66
SHA512
feb24d4b49cfccc9f33180d19482a9cd7794f63c53f2bff249ab775bf366c9f2b698ecc1cc9a76a46a9b85c4b2105b96e44a2f847f2b15e146f5124ecf655c9a
DIST patch-6.1.161.xz 7001008 BLAKE2B
0834839f836fe47295f7a81aef9d05d77a8b1ef6dfb0a0c25ba94e32ded0cda8796a1c8594e7e91ea26d92e93f5f5d6cb5bf73b625bcca70bd1192526012f0d8
SHA512
ae33b1b18dfbe9c32cce7315cc649f436c2df8118c0cdc401a31dbc870de7547cf733d4adf698e5a597522fb28a891ab624d995286a296aebe417d3e06a79ff3
+DIST patch-6.1.162.xz 7050196 BLAKE2B
f27f1c103427be49c17bc308eb09b99bbb22e469f1be371ba2ef5ce4f1155a76602822dac6fc6bad231894360fc944e4eaf8bd6dca7ab43222f06bcc41957d35
SHA512
5dfcb8d60784966e1cb0ff8c2cdaec30c6c7bf568f0936cb2e7293a737a9d3c93281fc49efdce836997a8d8165a3cfa16762a9352f649edbef1fe39665820868
DIST patch-6.12.63.xz 3592380 BLAKE2B
fa3c4052b06ad8b2793401040cd93bed542f46e22534597c5371add84173fe11beda6a789a8523a800d9d8813a38ebf6eb2066968b4dc08a29b9741d3a6086d8
SHA512
cf7a06f423cdde52a1a81defccf3c8533c91126be1965a279949a5ff4b91c39aad0863bd2a1582c9ef7ffdf80ee1534838d4f554e6b58a9833780e79747a04f8
DIST patch-6.12.64.xz 3723996 BLAKE2B
79527e9990c84105254f3f515906809a3d2fb0094488cb4e1d734c5ca0541553d0d557dc68fda0399ee6dd20a7f515e90b8a1fbaaa5fbeadd82afaf5d6e3a4c7
SHA512
428b10d6c34d696ba9bdd2c4e359ffa5a5c56cee3b0d9790e231a0eb0a365272b54c0cdeec6ff31af6f3190adcd5cf69fbe2cbdb47de3b22e449e1fcd0cb480b
DIST patch-6.12.65.xz 3728296 BLAKE2B
eddc8ef3db5f267d11222eb19b95c6ee46bebd63abc7e107b10894c426ed3303537522738e1cdb14f6feeaa1c513fc415e57e35b247a7e361f6cba42242855fd
SHA512
668f8af255a429048875d23c0c859d763ee6998d5205bd4e1614dfa46dfb389c8fe14cb29a22fdb6989f289c477bd1d1afb28be77d4c7ba933f10a6b4332e609
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.162.ebuild
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.162.ebuild
new file mode 100644
index 000000000000..463ef1305eae
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.162.ebuild
@@ -0,0 +1,172 @@
+# Copyright 2020-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs verify-sig
+
+BASE_P=linux-${PV%.*}
+PATCH_PV=${PV%_p*}
+PATCHSET=linux-gentoo-patches-6.1.161
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.1.102-gentoo
+GENTOO_CONFIG_VER=g17
+SHA256SUM_DATE=20260206
+
+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}
+ )
+ 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 )
+ riscv? ( 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 | 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}/${BASE_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[@]}"
+}