summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-09-16 14:29:44 +0200
committerMichał Górny <mgorny@gentoo.org>2021-09-16 18:01:26 +0200
commite2e7ad618d5b7eff5be01fe78c58c718ff5094bc (patch)
tree433408a690f68af083742847756d56735a903cd6 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.13.18 (diff)
downloadgentoo-e2e7ad618d5b7eff5be01fe78c58c718ff5094bc.tar.gz
gentoo-e2e7ad618d5b7eff5be01fe78c58c718ff5094bc.tar.bz2
gentoo-e2e7ad618d5b7eff5be01fe78c58c718ff5094bc.zip
sys-kernel/vanilla-kernel: Bump to 5.10.66
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.66.ebuild102
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index da4862c74ddc..fbc306046478 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -29,6 +29,8 @@ DIST linux-5.10.64.tar.sign 991 BLAKE2B e56cd4cdb61f6191699e8f35f0bdbbc6dfbc613c
DIST linux-5.10.64.tar.xz 116420640 BLAKE2B edb0ae09f2564fec4ab4d6ad49a8f37230cad2f0f927f816d9738f89d6cbc7938e39511443c1e1404f8cab37600da1e36b81d05247aee284e7fa86dbe3eceff7 SHA512 f89c2c1cef309fe6781b2b053ad8911a10e66620946855ac9405f80f7844823b1886375e3f1927a0be06c076fabceba1620edf6551f72a2f000a7fb7287b92a3
DIST linux-5.10.65.tar.sign 991 BLAKE2B ccee6c333064017c41f774b14fd8191d059d5fc8dae6acb3a5ed086422a6352937299cafc675505b9b9e1fc4abaa98c6c8927d8ab23f343a6eb06c0673525c87 SHA512 d357fe0bdd2e651e5c24bd94f7891b7c2da0246aecb5a80aafa75f7b564938ece9b8ededc211b3944e4fa8f88b9ecce058f39f5ab351115e785f5760a34a1187
DIST linux-5.10.65.tar.xz 116411536 BLAKE2B 7af6f50aae8c861d427b3eca813343f29a5ef1eb822fcd3bb82f4b1001934e42d54f2b336996e453788768225f0ce4e9e79c2dad662ff1137be30250751db9cf SHA512 c135cb84333dd3282620a99d933539bfe22952521b162c09fd58856ec3332521d20aebd0069b82530907708e44d5d9f1a156b00f2898ef87f9aeac650d93dacc
+DIST linux-5.10.66.tar.sign 991 BLAKE2B fd6a57ca595bd5537c130de5daff9e237c7bc30a4c8e53e7ae361ae6f2d49fb06ff106ebf9663d3c53aaad6a175a189551be93583348a47007bd8b116d35edf0 SHA512 aa10dee3e5cf8a21fb855f15c78868716e445742914ed071abdd16c3ab8cd8b3ac29a007a082c8245b73cbdc573af3519e908ccf20d60ca0a83fba02e6cb0526
+DIST linux-5.10.66.tar.xz 116410256 BLAKE2B af28d1eed527ae8c22d44598c7559fc15eff39aba1b837fb81fcd957fa17d2de562cf7f4f021279ce90381898025d9fb4f28053c2833ab3e49901c7e9e378393 SHA512 ac6e0eaf11cd04c3bbc325c8631dd93a34ee77784f66af8c6d2f1f13fe576a16a01c677d2da3d87a60dbd583a20e22a79cb26466275e7f3482234f439d0e524e
DIST linux-5.12.19.tar.sign 991 BLAKE2B 881e8f5df1f9503e7ba58b84351b2e4f0e90b63df2b14577bc65cca76f72c6a97f8ba2bef87c46a9d88a714bcf010f7b706c1bf57a68896390126c5902710a1f SHA512 fafe83c82fb1c7f67bcf8402fe4eb3363087324c7ab11ff15892021737685d945fc2ccefa78088f2645570bd763a6d7d846d7c1ff4f998d9af92f5f3e35cba48
DIST linux-5.12.19.tar.xz 118204168 BLAKE2B 88e4c32cf196662a6a24e72b978019d6f8881a8523918029f4229a995c5fd957a5e01f42de9f53c7980df7e3de5ea6b069cc2c5f93852e615fe8fe78a1b131c6 SHA512 2d010d6d75052083300b1a629dbec25a39f6314a1871ed355133bb59946453915a2265f4ba26e60119ee0d05abb9859c5ee7d8fb8dd816c476ebfdb76d3399ef
DIST linux-5.13.13.tar.sign 991 BLAKE2B a5f1e6ccba62297a46d60f8c33539aa04737c131dc98b72d7594597464ef6ae85adbe9a408febb9513413b293bb9601ddf864e8aa8eab34b2183f53216deb6b3 SHA512 c6d7d3e2a35f4d753f9898300cbfe5e250790dc7a12cbcf6968be15d372565a0c2952ebda82ff2870520d6e682a3e7354d726f2ade59549d3b2129857629a67d
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.66.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.66.ebuild
new file mode 100644
index 000000000000..12c958a4bb2d
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.66.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[@]}"
+}