diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-26 15:34:37 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-26 22:00:06 +0200 |
commit | 859ef402d91ed36ce468cd737dcafa1d4abfc4e7 (patch) | |
tree | e831b06b6d95e267cb9f15da0a0ffac6e0343dbd /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.4.122 (diff) | |
download | gentoo-859ef402d91ed36ce468cd737dcafa1d4abfc4e7.tar.gz gentoo-859ef402d91ed36ce468cd737dcafa1d4abfc4e7.tar.bz2 gentoo-859ef402d91ed36ce468cd737dcafa1d4abfc4e7.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.40
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.10.40.ebuild | 102 |
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index eb4ebc8b9975..07e440c5b44d 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -22,6 +22,8 @@ DIST linux-5.10.38.tar.sign 991 BLAKE2B 965f46f557d7a5fd9e95b1a0c2ae8d6174fc78f8 DIST linux-5.10.38.tar.xz 116339396 BLAKE2B e69766ef86ff208a1095ef8bf5a2fb1205bdb457979c03c742a7d8940a784df9a0376554f4d81d5fcb6d2783e7ffe97902473e9cc0a509a3b36b312597b0b594 SHA512 3c4d4d46e13708cc88e634d44826a1c5e67edb57fc93c7690e237113e0293906d2171be9db5b7172c44ce318dd2f408eba5a80d3b4bb301e3bee88fff0cf9954 DIST linux-5.10.39.tar.sign 991 BLAKE2B 9f88678c79d1f9f62f97d2192954006e90b46dbd28b4999080389fb6ed735cd5eb6935c0ae76693e4203d22b01d6d152d4241d62aa9e24e70c7e7d0c4d40b7eb SHA512 d73bec3e34342ce32ae08e2bab0fb6c2157a55226946e31f319136fc4f232e6f3a4455dbade834f0572b82120ca37d076296eab4310c9bc38540fcc86a5ad93b DIST linux-5.10.39.tar.xz 116345836 BLAKE2B 4398bc40f44eb4ebf76104ec9a6905bba20dbf5e8b324081a1d74d376ecb1b933da956eca0d17a53f42da9255d0b466cbddaa0f0e64964dab75bc795a16ceaca SHA512 8c4ab1bf81d85c8b53269c9d6a6031b3761d02b560c31e41feacab5d24c4ac83047e7284e3249f0770c10a456477afd5a8af8adce7b1d39cdbaf2a484287c79f +DIST linux-5.10.40.tar.sign 991 BLAKE2B 014af0182f92fd1e273d5d3ca0a8f98fe95cf9260b7e0b38c2f43058b96328de1c241dead3e6cffcfb94c524dc3159bf47423218f0db5f1f42986794662af957 SHA512 738b260b3651fdfc5c9df89284d87077ba71b4d862c79246c1f0fda00ffa8a48fd947a69153f623dcc5408201cc3b692454cbaa1b6c11bf8c1a1aafc69c61359 +DIST linux-5.10.40.tar.xz 116350428 BLAKE2B f1df7204db26d588a93d09e1322e20f57b426a0e33a11bbb111e88805b43ebb865ebcf1c7a75362650bed372102706a48171521c62a07d1261e604c03b553d24 SHA512 1b55504b5ccef17c4392a6e78a6fa481a10c5778147450dd492aceac5ed8089ee76f7f650f4cacd9ceb03a5173f33dbfa0a0c975fc29ce7fff7a31a9f59e941f DIST linux-5.11.22.tar.sign 991 BLAKE2B fe9fc24695c42e7784b98da7555f3b70352763a2bffac2ad1488a371960d12e15ae2a559ecf11227dfc96c06c0b45dc46200b7f4be87717c3d55e7b2ad484a75 SHA512 6a18971c881fd314f04eaa32865f57e4b43513a5bb114e047e59eb5a19ae8e02acc13a306f701a29ab73c7e9a5b9e8af67626686f340179270732bb76f77e3a7 DIST linux-5.11.22.tar.xz 117681288 BLAKE2B 21e1a7c6400c6997ec0a66a4ccd7c3789ad99e9319e8f412a5e26f44b309ca6581077f84fd17ebf265089956ed2625acce12d6d6d9f246690c6acd6b21279840 SHA512 1f61c1d9e2ed3095110105b6f33565343e762c7e5e5f9406a3a5884b78ca8ff8e31bb5da2880b45b92ca3adb0539dd69597791de87a41369cf77e325abfae35c DIST linux-5.12.6.tar.sign 989 BLAKE2B b56b774cf47797224f97a93e4ae6708cc14773a42f4d5768f694fa102071118f6a66ffc5532c01906db1291cd67b0d316d1716eca727a3b7d2a3ca55fc637d00 SHA512 8e46afe9027d8c12b280afb061b26dcb95a297f57b5ab63cf752ab63a3d19452478192596b7687f40f2fcb7382de041cd7cf678810eeb0ce69ed6b338ed8cf8d diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.40.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.40.ebuild new file mode 100644 index 000000000000..2f0d1faa9b9d --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.40.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[@]}" +} |