diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-05-09 13:52:37 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-09 17:01:01 +0200 |
commit | 4620c51d61dff716605a3b6aa64434b8d1c6872e (patch) | |
tree | 0b554b78fd9caa72fbcdc3d54fb11e5a8cefa74c | |
parent | app-crypt/libsecret: Move virtual/secret-service to PDEPEND (diff) | |
download | gentoo-4620c51d61dff716605a3b6aa64434b8d1c6872e.tar.gz gentoo-4620c51d61dff716605a3b6aa64434b8d1c6872e.tar.bz2 gentoo-4620c51d61dff716605a3b6aa64434b8d1c6872e.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.192
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.4.192.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 5602a84a9561..41539f5765a8 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -37,3 +37,5 @@ DIST linux-5.4.190.tar.sign 991 BLAKE2B b53c0a463190550b0483ae118562df54524e50c9 DIST linux-5.4.190.tar.xz 112903892 BLAKE2B 4762432dba452b7330f9e8c0c969fef64f6f86fb0faf918f28c96be251867b23bc584c79fdb4347938527568db4b32c804f7bf90e962748dc4020ee11625e2a5 SHA512 d2e74174d71aefbdd297535b7657aaec23a3a60376f6d5236e38b210306f7092b3be13a834d12f140ac356ecb3fb7df8a9809393d21d96d17e46e9088cc4b91a DIST linux-5.4.191.tar.sign 991 BLAKE2B 0897c615b6b49b0d18c2c3f3bd6767b706c5fde582c6cf2954f4ef91756b11d8d10fbe5c83ad616208ab5fbd2bceb64b358b3aaf87f4678538e85096dc9b22cc SHA512 f18cf2d5bdc7d2c60bf5d2057073e4a0afffbb0673b809b98ab80ed203a4ff292fab45ac8a6faf1853715f5e3155afefbc663aff28f31166ad17a629157c6a31 DIST linux-5.4.191.tar.xz 112925776 BLAKE2B c4ac730ee2d6686b844009d9ea5bc461a5eca9fe0600a3d66a819ae32e0d3a92aaceeab9785a325a5c03fc50120e650c16b349d5dc6ef7e571980859c16446a0 SHA512 c94b274c3d49cbf3de085fabe99a0e63ff8fd6a6628eb0f2182db06b0480bc0c67991de9c5786c1d252e020b3cda4ccb29ce93ab599065149b3211786842baa0 +DIST linux-5.4.192.tar.sign 991 BLAKE2B dfb316a84b75be87befb8209b9fed6bb1c3837f515d5d70cc26ffc7e41458179d41766eef9271f4132ea2e71903b30c30c7b6dc95e59385802ea322f12f63172 SHA512 f789f69c5e0eca88f1ebb47a1eade7cf8b1627a87295454309966be0589d9ddad012683dde5d8b00a09e93e6203f453e6babc55dde662803e056bdea22a76684 +DIST linux-5.4.192.tar.xz 112917480 BLAKE2B 04e4431d74af36ad8f6b286b0cf6fc007a68601bebf419c2c3aea1b53c03c33724e41407e373e4418f25e0e6a31e85bbc121b0671fb45fa4a4800d64c9e9a5fa SHA512 29491e2ad08f082301ccb298776943c1810f9f0b9ba85c8812033b5392f6d78dd7c09835f12215e1b9f0d15802ac8719e60a09ace9fab17267318325dded3fbe diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.192.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.192.ebuild new file mode 100644 index 000000000000..4f5f7870ccb8 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.192.ebuild @@ -0,0 +1,108 @@ +# Copyright 2020-2022 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=g1 + +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/${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 ~ppc ~x86" +IUSE="debug" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( sec-keys/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 + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .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[@]}" +} |