diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-09-20 15:07:45 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-09-20 18:55:15 +0200 |
commit | 3e8419135b155b12ef9543752c83182ee08b9cfb (patch) | |
tree | d81102e5b55141ca17708ff87384aa49dc5d0faf /sys-kernel/vanilla-kernel | |
parent | dev-java/jakartaee-migration: bump to 1.0.4 (diff) | |
download | gentoo-3e8419135b155b12ef9543752c83182ee08b9cfb.tar.gz gentoo-3e8419135b155b12ef9543752c83182ee08b9cfb.tar.bz2 gentoo-3e8419135b155b12ef9543752c83182ee08b9cfb.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.214
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.4.214.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index d1584449b99c..d36ab28f8730 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -24,3 +24,5 @@ DIST linux-5.19.9.tar.sign 989 BLAKE2B 7a91005e18985c3cd7fc9b2c5ba6e25f756b47147 DIST linux-5.19.9.tar.xz 131654068 BLAKE2B 2f42b30510e8b778e78d5945b8cf0d5f67e95470414043128470108251a10a5a67841f5f508253a3bd93ebc4203a93e9947dcf7f4aabbe37e09390e7b25b52b0 SHA512 6607af5e83e57182426e22e00db1fcb7ed5fc197457168f2befe283a6710d6a83fd423b914f0ba9e609d9502f67b8690354ec74fd2c7eb855538641a11d73607 DIST linux-5.4.213.tar.sign 991 BLAKE2B 5266f3850825ba2eb12b2dfd2d61c22550e55da2bd2e1e970fe462bf3ddfb4aa1c156e414efa22d8ef3cf73d625532aef1ea8480f9f8d87d09ead700f616e268 SHA512 4a469aee797ee108c4bbe140010bf976aa8daac98e7b09071d68667f875f8a12c9a1b1bf3350ba9415aac55d9d84e95102b123a4240fa3d61f3f9a83f7c89fd6 DIST linux-5.4.213.tar.xz 112947888 BLAKE2B 5419828bedfa781b7bbf30a9e8af6f87fae7d910beb30ee6c4b388544d7e82a50816de9b6a3ee0e5c33474f88885f5f1a4d7aa23c17c29558ed4e731be803dd5 SHA512 2e177440179e889776b8d8166ae6ef3173755ac64f127a370ace5f376ac1a1804c4683058272bf8fae5a02efc36d0e59cbbb2bd12cbccad2348b5ddec6a8798a +DIST linux-5.4.214.tar.sign 991 BLAKE2B 5720b8540d928022d7899b368b67847568821f73ebc8c25f6b4ae4e800eccf0691751def073b3c61e57859fa43c9bb9729b7be7e859af768816a5baa87e147e1 SHA512 9ed8ac3be08941f2bdee3b8bab0b00f4f147fae1ec38c46d67fe3a034127d906ed642289d609646b19f0cbd91e159441f74638f5f8a33d1badcd027050cb4013 +DIST linux-5.4.214.tar.xz 112943292 BLAKE2B 5f20fa125e84bcfecb5403bb74766f16fed01996e7bdf1ebdd9860a7290984738631b3f986e20190dfe86ea7e484c5ff77d541e76b3b554fcb5a8d33e48e6e7b SHA512 2db274c54c3a66e7ce73d8bb5a5d06e9fe26c19d47d58206f1cf07036a212ddb8e0c0b8cbeb09e393ace0d858572977d2f7c297af0154c9021bcd283694f6a1b diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.214.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.214.ebuild new file mode 100644 index 000000000000..ae90752d5ab5 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.214.ebuild @@ -0,0 +1,108 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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/projg2/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[@]}" +} |