diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-14 20:21:36 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-14 23:58:31 +0200 |
commit | a29ba79a10f24ddc797fbd26941e168987b22c22 (patch) | |
tree | 080a02c7167acddbb31c31de97a74db06c6b8fdd /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 5.4.119 (diff) | |
download | gentoo-a29ba79a10f24ddc797fbd26941e168987b22c22.tar.gz gentoo-a29ba79a10f24ddc797fbd26941e168987b22c22.tar.bz2 gentoo-a29ba79a10f24ddc797fbd26941e168987b22c22.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.37
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.10.37.ebuild | 102 |
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 5a6c5b74e32a..6f46256c1038 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -18,6 +18,8 @@ DIST linux-5.10.35.tar.sign 991 BLAKE2B e4e1400e6f711b2a63c752c9c50f27b3c1a6a206 DIST linux-5.10.35.tar.xz 116318856 BLAKE2B 7fda17a28bfd43b3df4921ce58771cd2c75b9099742f2da33c948cb9d689e06d35d3e90200737a64cce9fbf12dfbb9313d94da6692f28b49b7e3f8bc5bf4ba5c SHA512 62a9ca994af58a56e9b4a0d1a773fb3e9ce885e7559449f94f475773abde41b93ca46d8020abd3691916413f1965eb5c6a3f3e22bfee977829894d6613febefe DIST linux-5.10.36.tar.sign 991 BLAKE2B ebb44fc6c46d2ddb2107a2bfa87ff01f81d13790a863f55d589f4f1d334ee6e4cd679b18815ee1c7f6e7c9e10399a106a70e51ecbbfb7fb46ce4fc4b93d3fa1d SHA512 3c54c4df13070b6cc9fee1af069f089dfed30a8b4f63311821c705d55c73f65cb565710fb0f6be6820820240c7cc2c17a46d7ff32d870edfee98cd7f598bcd45 DIST linux-5.10.36.tar.xz 116328976 BLAKE2B b211e6035c43ececa1a58d9a074b5d765fac5f77c1919abc22d7f33976056a61c08c063c7ade489feb7e38ac919586b5376d1174f9a5296543c5fceea00361f2 SHA512 997df1c9fc077322e69d5c517a793674047dd46fd681b4f617d513ace3b57b87eb2c7fba02a9bc17a39d58f852643e2d19cc23dd000566bafd69182c089f868d +DIST linux-5.10.37.tar.sign 991 BLAKE2B 476f3325a76928889d55f0d5db0bbf62366327572b487bef63f3a6b067862e1e7b506494515f23b9bba0dfc76ebd618c68b65ff491700d1e4d4eb5014af38bc3 SHA512 b1c71558f7da2cc40965281c934d576357be4cbb851f98793b725ee2aecb35691133bc75822428feef099cb18c1ef6c3b95cabaa6c9085a41509f10b20ac71b5 +DIST linux-5.10.37.tar.xz 116321668 BLAKE2B 74ad5bf6102af7ce8ea575200131c1db9e7e0b044496659896205b9da7239f0c8d9e3fb9400a4b001952a5fc34842069ba71aadad30c1a18855b94371c89fe00 SHA512 8df1383c0a2e4f92ca4b2c075df305db955be3c2fae1c3c97744d37bfd62c50313265c8b86c446548b41b116fdc1e6dc007c501b3836bc8e9456137db858f147 DIST linux-5.11.19.tar.sign 991 BLAKE2B dd9660d1124e94f845d6707f8f4a69d716ed29ec64f4979525cc36891d4c8408c51db464a0d6aba67583df9b7f0f50e336b9842e1f13d6bf7882c6349f83fab2 SHA512 d1e8d0a8ff053507e91378888a3f436662884326fadf0ef3a629eccda91f12e82cdd8f932e01850da92e802a494b2aa069c11fb959b97f3f2fcab2e11dc7cd12 DIST linux-5.11.19.tar.xz 117655700 BLAKE2B c5d805c8eb16922e0e7c675406cadfc5414126973599db5c07aae02661eefee237219735eff8b459c0e07fdd5f54962d03a6c80ef9bf730d6a68c8286fd713b0 SHA512 92948ff856b16143cc09f4ef2d62b732bdc0e26aea572999f094309ebc589fc2982ff7f5332a3d98e787127fb2f2e893e68dc0b1339b034cb9f847700611ab8b DIST linux-5.11.20.tar.sign 991 BLAKE2B e6dafa9f4cdd4614314dbc51772fbf203714417e0a5ce4f20677fc4cee2a4bd4a71c9b88d464aebdd795be51ad35e41981561fbbf83e4e367d1c925fa697dda2 SHA512 5dd6d0b7b7f1983a15ede85960ee12c1498afee6dba9121b69bc5a0e358600f29d2bf0558a291d041ecb0226294f1f9c410ab7e870dea4e39e8cefd03accbdf2 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.37.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.37.ebuild new file mode 100644 index 000000000000..2f0d1faa9b9d --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.37.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/dwarves ) + 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[@]}" +} |