diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-19 17:15:40 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-19 20:21:23 +0200 |
commit | d567fdbce9a8cd47cf9c617fb8658102d51cfb4a (patch) | |
tree | d133a58dc0d0c980b56a6892e45d966226bde878 /sys-kernel | |
parent | x11-libs/libdrm: Version bump to 2.4.106 (diff) | |
download | gentoo-d567fdbce9a8cd47cf9c617fb8658102d51cfb4a.tar.gz gentoo-d567fdbce9a8cd47cf9c617fb8658102d51cfb4a.tar.bz2 gentoo-d567fdbce9a8cd47cf9c617fb8658102d51cfb4a.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.120
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.120.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 4941ed8dca2c..67530cd719e2 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -38,3 +38,5 @@ DIST linux-5.4.118.tar.sign 991 BLAKE2B 3d284bb3578443a8cf5c57061b416d0cfc29aa99 DIST linux-5.4.118.tar.xz 109102936 BLAKE2B 1299add90283d0d982689f135aa053a77a6084e416366b5e408a6afac4e9fa2fb96f479eac0f580323a8ccbc2d5d4f47dd9302db37c9464c22c9d3e9a14bd6a5 SHA512 e2809a00e14c75b64d68d3bb7516f26c032f8f3b3927d2a28c8f1ade84b484d8f73c3b0753de253d8cba8877db9f15f386ff7da86e80e3794bac790d8d8423fa DIST linux-5.4.119.tar.sign 991 BLAKE2B 87cb81f41daca05095bb0d5d66c882028fb695aa7796e2d7c14f4b3ba257bb44bbaad07422a6937d94be314260ac0bc34fa6bca56a06f319bac3138fb3027c6b SHA512 0334f3fb638da34c0c98632c473fb340830623f52353ae3dd0ec084bc42426e0fdcd9d6e976eee51029c295f8b137aa64952dd96e7a387d6768abf97a07f2223 DIST linux-5.4.119.tar.xz 109111856 BLAKE2B 33edeae110d1f4d4ee8c32d3d189df1b165c12a48e1cfae1eb706b5144231a49c342ab4412dfb34bd601a515a109541377349c9009cb981aa636c0aa133d4bd2 SHA512 bc04fea0ecafb2d34808d415d6b33df30097ce019858277a633213becfdfb0a5d908ad677b358d547354b901b616cbaccb34fa1f32bc136f0856aee8d2721119 +DIST linux-5.4.120.tar.sign 991 BLAKE2B 12c786791b72afccc4a3f9c412b900f25355920c3b253160bc9da0193983dfaaf4ed81886e5ffc252b07b34dec6d6daa59625bf46b1ebd6a7aca8522235923f6 SHA512 67b32fb8cfcd125ee66201d76eec364d7d8839a3055d43eac88eb812201969d0ed9d94d8c57e9be8b35f0a8972475381c6d41e480c7c6086cf351d4388f80c04 +DIST linux-5.4.120.tar.xz 109107108 BLAKE2B d3ccfefaadfe4186cce3232dc0b58759914d0f9eb0ac7c82b855d0230a512b92e37801b75e32dde57ef5d6d6ee04c3bbd59f58a20e73304cf235c90c7dd2855b SHA512 b376e262164d8a79a4ffe478e42e38929fcc4b7f08dfaed24a842c238d55162ebcc1f6a5d0926a618e03f98f7f9623997306ffa66c6425f3e77865c2d70e1d54 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.120.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.120.ebuild new file mode 100644 index 000000000000..e11e956ef1fd --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.120.ebuild @@ -0,0 +1,108 @@ +# 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/dwarves ) + 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 + +pkg_pretend() { + ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" + ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." + + kernel-install_pkg_pretend +} + +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[@]}" +} |