diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-11-17 16:33:13 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-11-17 18:03:22 +0100 |
commit | 52856e91eed047cfb5ae19d4b971b3e44bb50d8a (patch) | |
tree | cfd243edf4f78ceec2e623d09ec7e6fee4deea58 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.14.19 (diff) | |
download | gentoo-52856e91eed047cfb5ae19d4b971b3e44bb50d8a.tar.gz gentoo-52856e91eed047cfb5ae19d4b971b3e44bb50d8a.tar.bz2 gentoo-52856e91eed047cfb5ae19d4b971b3e44bb50d8a.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.160
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.4.160.ebuild | 102 |
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 38062fdec4d2..29447041ac10 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -67,3 +67,5 @@ DIST linux-5.4.158.tar.sign 991 BLAKE2B 533dbce299037f4b4fdb79a8562cad9d05ce4027 DIST linux-5.4.158.tar.xz 109178500 BLAKE2B 2f17825064e6dd718b3ed71014c9442fa4970066b496a81b059a8f84d22d1c5522569aa672ce08597a56150eff6315f19e7d0eb56eccdd8d9505f1cd1f6ad901 SHA512 ccbf29c70315055ec7f63eb29262970c68162f2e12046cb45ec17aacf0950e0ed8e60a236744f2fdbd4fe5a0b14e62cdbbb345c32b089e5172feb5e170faa14d DIST linux-5.4.159.tar.sign 991 BLAKE2B 6bfa914dbc39f76b76e743277a7f44e486535e831805f51881cc83715188650a63df934ff22a7ec9dcc33daee7f6eb13c748950ffb4b1516b7b28dddf8e1a59c SHA512 ff0e9c4af7d3f9ddc4d2eebd457856fff6c5fe331618239f8d4bab04a56e50f120cbc4ba57b19d0e6115ebd62628a4b568340b166508bb5631af527877becea5 DIST linux-5.4.159.tar.xz 109178172 BLAKE2B 4b23992b3c90469295440c49657bcac6eb888520ad7e2ec5d1da0eaf0d1105c6ff30ee483dc66c7337750f49969ca1a7dc12349e7641e6363b16291321c4b680 SHA512 52268f2db7dbc141155609fff9ad79d368019e341a67de0cdb993832142231215cf8a827475bdb8cd93aee984d1954feaadaaa9699464d0985d6ad1fc66c421a +DIST linux-5.4.160.tar.sign 991 BLAKE2B fee86930c4de94769f5c0f4baa4e268412873abf5ac80007aee6452e9a7ba340983b96e7ad5ae91298a245c0ba1541a389fe6070299d6183a05009e38c51dfbf SHA512 5c9b13103e2b7115854d32cfc39b508ef9f0c9fb74a8d83af63b3b514ae280ff6c6e8e576e35bb7ded3d848cf19baf33eafcab7c651002bcd235af5d86118586 +DIST linux-5.4.160.tar.xz 109177312 BLAKE2B 0b42b1e70580ce0a49b2710c8eda28ba5ca397e954c8aa58d81c53fcbc081deb2fb96dd412df026729396a1eaae2bc040fc65dc1bc6e7f5ee9fad2f6294f6e91 SHA512 893f369e898ef0667b7a0897e0268ed254116024fd5cfd1887cd1052547c478c9efe0a928c95d3b07250ea4447a06bd1d57028eef9aa0e8b8c1565e44e20ada3 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.160.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.160.ebuild new file mode 100644 index 000000000000..42230c7d1fb5 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.160.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.4.21 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea +GENTOO_CONFIG_VER=5.4.114 + +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.config + -> kernel-x86_64.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config + -> kernel-aarch64.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config + -> kernel-ppc64le.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config + -> kernel-i686.config.${CONFIG_VER} + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="debug" + +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.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686.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 + ) + [[ ${ARCH} == x86 ]] && merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} |