summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-18 15:34:08 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-18 20:09:12 +0200
commit92336b4dfbf8a2a7b29ddd4496f961234a47005e (patch)
treee55b1648e1e4baa0c60480e112c7ff768aea9d77 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.12.12 (diff)
downloadgentoo-92336b4dfbf8a2a7b29ddd4496f961234a47005e.tar.gz
gentoo-92336b4dfbf8a2a7b29ddd4496f961234a47005e.tar.bz2
gentoo-92336b4dfbf8a2a7b29ddd4496f961234a47005e.zip
sys-kernel/vanilla-kernel: Bump to 5.10.45
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-5.10.45.ebuild102
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index a8e6af71b760..263ac6445d5b 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -16,6 +16,8 @@ DIST linux-5.10.43.tar.sign 991 BLAKE2B d114489e69719cf29bdb0d9407b68fb1fcb7a339
DIST linux-5.10.43.tar.xz 116339780 BLAKE2B 5a49e2c876fa175eae6a206353eb4946e44424db75958c0e9470ae6945e5f590483036464819ac8dd94041f6f466da0779ba797b4ef389de8185f9a16878a8a4 SHA512 e55a656f7c4e6a8c738c0d5ab18e84e3b832bad564b0f96b76dc1bcc3e4e7c5f3971d16fd42ad61770a1e6f5e55ed4b505f84890cfb9b9e5be90691eff7ae2cf
DIST linux-5.10.44.tar.sign 991 BLAKE2B 4070d508a3391e98616cc61318b466657aa06d3c8cc6bf1fcca3538460e3b41f634f8378a0cee4a0c95cca5145d17e89057df98fb9f4d8455046833783a74286 SHA512 2d23c8b86b8d9cf1ef787b94f8ac176e0da73dc0e4620ed19908d00f40f2246be1f8a98e79015b075e7b2c886f3ffe5d3699fe4f11f765c5961d6906031a48d7
DIST linux-5.10.44.tar.xz 116348264 BLAKE2B 5555b99c0fa5d0f5fc800156efcbc26adff40c2cef83a2c1d68ad009c767651392e137dd5a47b95e591078c18b8db6a9540829bb4dfaf799fe8915a691ddbf34 SHA512 444f4a57ebf77ad5a856c6fa2563948c594f4b2238ac1b3c78eddb89084fc888f634f9f61af309b6d146216dbdb4c10bbc06dfab4ccde0c1ce69ffa580558fbc
+DIST linux-5.10.45.tar.sign 991 BLAKE2B 8ae31db4144f20edac3c980887aaf0516ac65621b0f36a0a9bfc716f1a3c42f4252c872574f4ddcff4dd9e95827c473d13570c9f5c9cb2ddc4150453d588758a SHA512 6dc26ae65b896e21c48724848e08fd92690d79b4cea6aa81463e0f56c2750f2357ec41c14a38b2e82fb1e87ab7bb781ba8106fba1c5f5887d23a1ec7f2890610
+DIST linux-5.10.45.tar.xz 116351768 BLAKE2B 5b5c04201f8b77a3154b874c0321d6e7c526b2f2d663bdb7878faf8b2d80b2f4a4324f5a2cc0161f42b6e72c8bc546b62162ee6c1bcd33c61d02ccea330a5d37 SHA512 08f4760c72a0971d92990bb8015ef56b7a58390ef88d72d0b38c73e52ea474ca6890140fb2d102e3f8ed0af5903d9ba4f606bc500bb96d53dac311a268e8126e
DIST linux-5.12.10.tar.sign 991 BLAKE2B e13957f787397e09e04c1fcca75af58b80f0340150c9c738628826c17b77efcf14ad65a45363193c2fc2780630b1b8315f427323e2b15f65ca1ee0294300da49 SHA512 0113060125fe4a5015c0bcec82e873db3d5a4a5ea82764f15509f0abfd51af34b25adec164d2e765cbe3c059caf71a5047881cabada9599cfba6c947ae4dd6d6
DIST linux-5.12.10.tar.xz 118148040 BLAKE2B b40ef5a11ca435299899e8131fa72af147455cd8ebee4c0e187572b1f628e66d2b6fbb318308bc911a598d8303d1ab3622d52966deaa5c48d59dcd65f4f58687 SHA512 b7f897582fbce307f8d24c4a1ea490050afd7d1e1af24ffa621e863238cb9ff8f1c1a378392a546a5880c9db50c8420504a052ff67d86c9ae3f82145d9f5f42b
DIST linux-5.12.11.tar.sign 991 BLAKE2B 4b01328a96e7dd0ac1487ed4d8d3f5369af6ec2a886cd0a6acb456271765c1e45aeb620b0bf61867973e3fb03a53eee0b0efcf60755257f696fe2bce8e8d3233 SHA512 67dd3f239f23686a5c9749c3122d549570403d71b95587371b56172077fdfcc9955ec70f64b6c71fc9869d55de5515f903235a21904840915a83e3b41f489b2d
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.45.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.45.ebuild
new file mode 100644
index 000000000000..12c958a4bb2d
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.45.ebuild
@@ -0,0 +1,102 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build verify-sig
+
+MY_P=linux-${PV}
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=5.10.32
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+HOMEPAGE="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/mgorny/gentoo-kernel-config/archive/v${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://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="debug"
+REQUIRED_USE="
+ arm? ( savedconfig )"
+
+RDEPEND="
+ !sys-kernel/vanilla-kernel-bin:${SLOT}"
+BDEPEND="
+ debug? ( dev-util/pahole )
+ verify-sig? ( app-crypt/openpgp-keys-kernel )"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/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 -x))
+ assert "Unpack failed"
+ unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz"
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm)
+ return
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ echo 'CONFIG_LOCALVERSION="-dist"' > "${T}"/version.config || die
+ local merge_configs=(
+ "${T}"/version.config
+ "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config
+ )
+ kernel-build_merge_configs "${merge_configs[@]}"
+}