diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-12-16 20:09:36 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-12-16 21:52:41 +0100 |
commit | 91c99ac35dacbde7431e58cc48329e42ffe51ff0 (patch) | |
tree | 0d1785c3ea4c378967c7908f6ac4cc5bfb2c03f1 | |
parent | dev-python/hypothesis: Remove old (diff) | |
download | gentoo-91c99ac35dacbde7431e58cc48329e42ffe51ff0.tar.gz gentoo-91c99ac35dacbde7431e58cc48329e42ffe51ff0.tar.bz2 gentoo-91c99ac35dacbde7431e58cc48329e42ffe51ff0.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.166
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.166.ebuild | 102 |
2 files changed, 104 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index a6096008a9e1..4a6f1dac2ccd 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -82,3 +82,5 @@ DIST linux-5.4.163.tar.sign 991 BLAKE2B 1904e491d0f3e10a7e0fc8c327bf82e51b990737 DIST linux-5.4.163.tar.xz 109184420 BLAKE2B f312530d7af4480e30695231660a916f536095ffc00deb22afbe4ff715418bc8cc1a45aebbe0621ca09ddf1fda733f54ceb69bf5bda9937299f8cbfbaeee6adb SHA512 61c03176ddd533cdd7ecb654765524b6a9c634cb48766630420137e1fa3e11d6081b054ffb6a93b01bc4417c3947412353e0ff039e25ff880f27424f7ae738e6 DIST linux-5.4.164.tar.sign 991 BLAKE2B 59483d1ee9790b771e7d1ffb1d1c3286f3db1d78fdec6eeaf0501748f6d35fefbe3572f9f64924f73dfb50db847392a32e6f9c4b71174b04a3def7757a2c9903 SHA512 d77c0210f03f5dc177f7231f7ce98fabe466eab7d93eb682daf63f72744f88c8d69a85934b1cb16e623c565b2893540fc4129273d4063270a4d7580f4d129e37 DIST linux-5.4.164.tar.xz 109190032 BLAKE2B 01a65117c237d551c363149504ba690e9ae801fe587d53c24d2b01e4f7b4b264271077a819c6ad772c2f995bf87a242d271a5446d1378d4ac7d81e13caf9da3e SHA512 4a9cb4063707f7bc1a7390ef74f5c8fe4176ef37d3f27ccd97ab40c4935aa746652e93401bd1b1be5b01283b470597e8979fbbdbf6efb726fe3154d3c8fd9eef +DIST linux-5.4.166.tar.sign 991 BLAKE2B 0051ff905ade9e7c4c5089602f940d643301e6f45ccc460a5c394046280e6dc5e58837d9b30115eb22d5cbcfde89707d1a1d1721f1ca4b7daba5bac465a1b39e SHA512 7469a77ec4006584307a7af780f4737d52b8d8a5f1f039107d2210e8b5aca0fc83b0c9cee9d80dd85db2070fc98837274519bfdcb03d115ad377963184ea83f8 +DIST linux-5.4.166.tar.xz 109194364 BLAKE2B 531351c5ef90466073bdf19ddc4eb7ababb87c8343c10c9c61c236bb96c47524935733d25603781ec4412fedef8fe8ebffcec893b4283fc91181ec3201b29acb SHA512 5550095b77209f33e799ce1fd8d85289ce9b76315e50d3b1216e581457d279c7763df050e8a2e78748de87da4f5aefcdc4e437f3c54ffea86c026a0caa4f08aa diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.166.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.166.ebuild new file mode 100644 index 000000000000..42230c7d1fb5 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.166.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[@]}" +} |