commit: 030fd423a6966243353729f32d97d23623bbf073
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 8 13:39:25 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 8 18:34:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=030fd423
sys-kernel/vanilla-kernel: Bump to 6.13.2
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/vanilla-kernel/Manifest | 2 +
.../vanilla-kernel/vanilla-kernel-6.13.2.ebuild | 135 +++++++++++++++++++++
2 files changed, 137 insertions(+)
diff --git a/sys-kernel/vanilla-kernel/Manifest
b/sys-kernel/vanilla-kernel/Manifest
index 4f9dfbc06819..3d18991e49ca 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -37,6 +37,8 @@ DIST linux-6.12.12.tar.sign 991 BLAKE2B
0ff54fbb0af0a9a53d013df0623b5b0ed77871bd
DIST linux-6.12.12.tar.xz 148009132 BLAKE2B
e32d607f2732c5ad719aa2f31c7f42f6243d7e9d52447dc923563d2982a68a3bed836acac116e1e30f15e4eceb87671a96db507a7019d00eaf52f36c9340b07f
SHA512
4b68d2c90ba639a84b6deba4a362777892e32dd1d6d7e82b75ea6d4567f00afb400478de60062bbef5b63ce9a04fc55486121a4555d4721b4ff46ead30fe924a
DIST linux-6.13.1.tar.sign 989 BLAKE2B
5ef1f311a102899efc49413dc8886d2b19b47c1ca9e0235f8f55915682110ee06cab31103b97215bf72468a79f063d01e26f33d1f9b48c283b809d77ab0aae08
SHA512
6b974be598768e8233ccf80694c4438af25c2224240d819c4f67112e5521559d9b187092d34f2d1770d809a28fdd10e78966c9ce82da96b4e0e1f396b5b8e460
DIST linux-6.13.1.tar.xz 148511044 BLAKE2B
995981373f283f606a35ce4f5add4a44c9baa4dbf4caefbedc9037d1c736efbb9af43a48787d8a8515aaef59926962a076a87f0504d8733956f321c8bb241cfc
SHA512
ca86e4767db6951bc736081ed62a3f2a7fb1e057f1534ddc698c4e087c6dc093a36b3f815fd6a27499b4ca2270f865dea3515b31c5016563770b71c157ca6ad0
+DIST linux-6.13.2.tar.sign 989 BLAKE2B
43a892dee8c47c79fdbcf195727e4de4e4ce9ad6b21dfd2ae845c7c2befe78e98c3ee2675706aac3a0d598411667f98b6411c0241a954048292c34ad8dc4332a
SHA512
1ae6dcf56e943a09c7e3c1a0110d0ed42ef59867a5a73c87c12710d7cdcb4c94c8012ac9dd88847cb7ec704e545ff16f192b4e7826c89f9cfeaf6979e4c1b316
+DIST linux-6.13.2.tar.xz 148491820 BLAKE2B
9434dbcb828d49d0b7b68c3ff6651ed227327e8e9a760200fbea91aa37e7949438d253f1a4586da4f72ac1069484e9720b8c8ac3f995d597b33f272065763336
SHA512
c21b5d41c8983cb404a5b1747e17e900a10e09fb1a2b56f73d3c4d8ceed6af376e5149fc5484f97aacb771ca2e7def66789c6ae06eb696875f3ef89c67db302f
DIST linux-6.6.74.tar.sign 989 BLAKE2B
baccbb35f890347a794cf6873e29116dede6148cba0f7706c7048af218aaa30c57311705b18100b054536945b4267b9994ff92d30575ee8bc3e88e442edf0266
SHA512
3459c186e9d9bc79d55240d0cf5f18bbfc06fb80153aea7f260d7c901d3d3067a958f06fd8856eba469b3bfd3a9b795bcb94e4a75d744473a81b1ef00c666925
DIST linux-6.6.74.tar.xz 140477900 BLAKE2B
5c050a93c4b2e4333c302fb5d2e706da6dbab7b6537ef3791c784d29894ad515951e39ebb2cce0e977b0af671259f64007e84947d52abab2091c4a501f986f6a
SHA512
2a278f4b3d04ec922c4647e3e772dba98d5d615c74f93fea5414784db638212767861c0b8094d2efef79a2da208e2a54d5686b0252f82771e0b6e130a94e167a
DIST linux-6.6.75.tar.sign 989 BLAKE2B
ce84f31ef19ce7993b30d119ba7fa1fa702692b9a60fc254d75fe9dffe90279467ebae05b6468f0f8b3bb1a9118a37d211462ff016a9a9f259bc93eaad25bcff
SHA512
70abf1cce618b42fc5b28dffd26db0e6e1ab12f7c9214977c480754eb2ee1ce8cd2d4b63a2202531fddcc4c3348e0c795070cbd8d374e7b662919cbec22cf179
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.13.2.ebuild
b/sys-kernel/vanilla-kernel/vanilla-kernel-6.13.2.ebuild
new file mode 100644
index 000000000000..3f8f9d116810
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.13.2.ebuild
@@ -0,0 +1,135 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KERNEL_IUSE_MODULES_SIGN=1
+inherit kernel-build toolchain-funcs verify-sig
+
+MY_P=linux-${PV}
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.13.1-gentoo
+GENTOO_CONFIG_VER=g15
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+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://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/${MY_P}.tar.sign
+ )
+ 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}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( savedconfig )"
+
+BDEPEND="
+ debug? ( dev-util/pahole )
+ verify-sig? ( sec-keys/openpgp-keys-kernel )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
+
+src_unpack() {
+ if use verify-sig; then
+ verify-sig_uncompress_verify_unpack \
+ "${DISTDIR}"/linux-${PV}.tar.{xz,sign}
+ unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz"
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+
+ local biendian=false
+
+ # prepare the default config
+ case ${ARCH} in
+ arm | hppa | loong)
+ > .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="-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[@]}"
+}