diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-23 14:47:20 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-23 18:03:53 +0100 |
commit | ba588b41eed5bc400d60fd4698ccd918799e3eef (patch) | |
tree | 17010b008d464ae1de18dc822793676699b5b17e /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.10.102 (diff) | |
download | gentoo-ba588b41eed5bc400d60fd4698ccd918799e3eef.tar.gz gentoo-ba588b41eed5bc400d60fd4698ccd918799e3eef.tar.bz2 gentoo-ba588b41eed5bc400d60fd4698ccd918799e3eef.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.181
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.181.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 2b008a45412e..588ff5363e76 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -38,3 +38,5 @@ DIST linux-5.4.179.tar.sign 991 BLAKE2B 3774c967791c06ba872128010ec391480011941f DIST linux-5.4.179.tar.xz 112895912 BLAKE2B a37ed171cf26d191dfecd8c891efc9f23092ff7b22791756e506b7f201781a1d02394f5f6f607595250da7b846d50f4b9251f088cc83f9acdbf77c434d6729c2 SHA512 36f72c4e9eddaf73be4f32858ed30831da6b79f0b991b97af8ed49d8517afae52e2095f0efed019da78dc2a397dd4aec8bea9d16b866dbdac5c1379f3cf491a8 DIST linux-5.4.180.tar.sign 991 BLAKE2B 43cc3e91dc3b8d9bc6440059ae0ad521b864dafcc60146d12a7faf811032f08a8647f188ae3c518bfc88947fe43a41f3cc1f016d82787d09e19207c6f21a60cf SHA512 326ced59d325f139c2f42b404bf74b2046b41256bf2eee8713fef235f378d15d38854750b5566316a11943173d8010be3c641ecb497833205446775ee863b7bb DIST linux-5.4.180.tar.xz 112877376 BLAKE2B ba7eb71fa677daa4e1b605faf8558dfbaa0e9871ab7e341c73b9fef9caedda1b0bba06f84cb2f52cbbd9fca6b781fa48692d31ce22d453957f0d2af4c648e984 SHA512 6725ac1017cd4c5e6d91094593e2f1111c610b8444a9166b6eaa6dfa7537f4da548341443629d59c80a818fdd045294e16143b6d5919be9dbbcf55f4518b79f7 +DIST linux-5.4.181.tar.sign 991 BLAKE2B 4ec0715478495d20c64caa05552dab3b7625147f31b0c5457c9e30d97efa309b541adf4b638bdb65b98f5324eb0486607a995b8ecd4f6fb68ac2cb433c62a685 SHA512 7a79fc9e600a5bafa7212087e81e902c3be8cd9926082224fe770ffb7f861663120c5099201e512db8d485523a79d8273e3f52f31302820247d47141cec255da +DIST linux-5.4.181.tar.xz 112896524 BLAKE2B b450b38597c4a94c18ce5a347cc184bac0e5846f30b797c5cf06bb5186411a870ff573f7aec97c5612de10d695d5bf5fb63953e091905cab9fcc3c162b5154e3 SHA512 10fba413fe8da1b569d1366bf99d18ad3b5765abedb81931f4d00b40daacb8797e122bb2fbc1a739f1d9999e01e0b920faa58be41e2010a625c1d58f1b54e288 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.181.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.181.ebuild new file mode 100644 index 000000000000..bcffa2897768 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.181.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=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 ~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[@]}" +} |