summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-11-08 19:01:48 +0100
committerMichał Górny <mgorny@gentoo.org>2024-11-08 22:45:07 +0100
commitf56bf73ebc60588807b47e1840206851dcd7362d (patch)
tree4659fe174f442759a949ccf7bb3504580b71c9ed
parentvirtual/dist-kernel: Bump to 5.15.171 (diff)
downloadgentoo-f56bf73ebc60588807b47e1840206851dcd7362d.tar.gz
gentoo-f56bf73ebc60588807b47e1840206851dcd7362d.tar.bz2
gentoo-f56bf73ebc60588807b47e1840206851dcd7362d.zip
sys-kernel/vanilla-kernel: Bump to 6.1.116
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-6.1.116.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 3832bc142299..6d860cb1412e 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -34,6 +34,8 @@ DIST linux-6.1.114.tar.sign 991 BLAKE2B 9b4b59689d896ef9a00dd2386a7378d3a96aa55e
DIST linux-6.1.114.tar.xz 135213612 BLAKE2B 879ffaaafb2fafe57d99a614d1f8065f4b8e6fd60c43723d815a66e226caff6bc5d80bca7c9cd1bb7bec1a170cfd3789c4b9dd779eaef1530eb61971c9925e12 SHA512 6aa571b2489b075824698901393fd80b48a5cd44142e28d7fc71c329756adf8ac9a9013b86354a57d82dd155ba401b993837f1cf6d80d367297b741602542061
DIST linux-6.1.115.tar.sign 991 BLAKE2B 9639c64345c544bcb442df436ef400eb87096c6a9be67e5e24271e0f564a35b0603342fcd88220ed92b984899a09a77c7d4c563219e7af719f5d4b803a79a0c1 SHA512 df318b8af07dbad930c9468dd195c26c8e9e76aa61a9e79983e4c14b89df9b3e5bd1ba0f372db0731dfb6d0f52bec2456ab13e5935eb1924ea3e1d0b52d16632
DIST linux-6.1.115.tar.xz 135217180 BLAKE2B 2b5a46ecc12d956dca075d37c7a8798dabbb126fb30209ebc82ee5127616fadbc69bb5b31ddc7e4bc12222e3ce877af9fc104f3097526871d6e49474a54bb519 SHA512 3ea345b87b2b6c876fb8742ff9c8eb523ebb4e2ea18390c6a11009573c246ab326d514dc49a61f992e5df20fbe6f955e6a64ff0ddead4216e7f25bfd8b227f3f
+DIST linux-6.1.116.tar.sign 991 BLAKE2B 57bcc0cef30c1ef19534b640edeb594705ca65eccbf7b3646d36683de11fcc0b6a14d87f9227e75ad5ecc4ef01b28be4dbcd4ac9feb65cf3c969cdb145f89ab0 SHA512 94148d6cfc583417bfc5bec6640be24f951132db1b3d158bfd849f99909b660530d3fa5c8a52ce0f4b42408fd0a42a55c2243df00c0f4656867bf81f4331a747
+DIST linux-6.1.116.tar.xz 135228552 BLAKE2B a4cf12dcfebfecd20eaff305083365fe60ee58f4798cce4648772ab7da11609751f2dcf452bbe18aac7d2d730a4f863c1126578090282389c0672c5aafabedd6 SHA512 c729c6d159cca3cc708b863cc9fa34b5c97be605d997e2ebe5ef93b33d8abecbb474e5c265756ff617dd5d23a2b73e6b36d3c73890a99963b19aa2d335515c93
DIST linux-6.11.5.tar.sign 989 BLAKE2B 03ddeca59bb70744cae46abce20dd2b7f35e299aff419476ac657722092f4e35f98bd5aa95a142928ca642a3fc7859fba5e0f70de1c2cbce8015f0df8a78d1d9 SHA512 07bd2b0ff4b3940eb274d6b9e5ab1fb17ec18a2518a336b265fcb20f36d56121a4b03dea497ea86a9009259f73d912a393c71e2641e75ddf1354c9f6862f50df
DIST linux-6.11.5.tar.xz 146975304 BLAKE2B 8749d9f78cca3d64e97d081b3ededf506c07c7fe894253e7435afb37eb7c86b690a65293fb4b582ecd951229ca61f13679d10197e4629352262db776352b96dc SHA512 532432967a1b343408be7764be67fd47dea28f41385efb6cba93f7039bf19e75027a59c53eb3752b32863d20f334e25d8dfe68237bc5449682d18eb2b7d0ea86
DIST linux-6.11.6.tar.sign 989 BLAKE2B c40f1cce49b802eff77556649774d4c733ff83dcdf9dd871ab32f599cda7fce8f61e813c7a3aedf35b088facdc938095d89e953642241abae7fdbde82c05d430 SHA512 7b277c22583e8664017f2144e664d7db3eb118143626a0d5d540e870cd713cd125cd77ead60234c761084751d6f7fc2fb911374e71c992b6295ff8f5bf83817e
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.116.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.116.ebuild
new file mode 100644
index 000000000000..3e7046d330c0
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.116.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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.1.102-gentoo
+GENTOO_CONFIG_VER=g14
+
+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 ~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
+ einfo "Unpacking linux-${PV}.tar.xz ..."
+ verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \
+ < <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -xf -))
+ assert "Unpack failed"
+ 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)
+ > .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
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}