diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-06-26 06:00:00 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-06-26 11:08:14 +0200 |
commit | d7fb3b11d7ec773f4f83baece77550b78258eca8 (patch) | |
tree | 9bc6006b489b16db03ec64fdf157019e15a4dbd6 /sys-kernel | |
parent | sci-libs/vtk: Stabilize 9.0.3-r5 amd64, #854369 (diff) | |
download | gentoo-d7fb3b11d7ec773f4f83baece77550b78258eca8.tar.gz gentoo-d7fb3b11d7ec773f4f83baece77550b78258eca8.tar.bz2 gentoo-d7fb3b11d7ec773f4f83baece77550b78258eca8.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.201
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.201.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 5a88a0e59aad..faafa49c996a 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -31,3 +31,5 @@ DIST linux-5.4.199.tar.sign 991 BLAKE2B 546df4e420a5908a653cfb2cbae8d13b67161498 DIST linux-5.4.199.tar.xz 112902300 BLAKE2B c3b509035b3ce660a0bad0d29b7a3c23a2005b990661be9764eece602e2be736a76d8adfc25f13d6ab76e0dca95e8a6ee804952a18763706b425d08e26159a44 SHA512 3aca7d71515011acd36d3dddc8d39fa0f08261dbe3555843955f6381a16a7b6a3b90cc3a01b21621d9e0c787f29ac5157ce28aaa3ec6decee0df4581c483ac51 DIST linux-5.4.200.tar.sign 991 BLAKE2B 0c7468a163433d75e61f3fda16a40206eeb5e99967e3ec8245fc2d66cc4e3471af2198676ca26c306ec228c0bfa5fe731a2f3393bbaa6bb9c38ef875e14c54f3 SHA512 d2a90de3b0c22de615c8f1c5b4676771c5c5fc5dc80a1ebf8a5a40dd1949677d70c37abda33e51f173dacb2fb4652c898a5237f6792f1c9e9af8874e7bec2bac DIST linux-5.4.200.tar.xz 112936284 BLAKE2B f1164a7d99dfb0ce6b7d88c5d40be6a39ccdc98524f2e09524c714dcac0b0a227c30d6eeae161124d1fdfeda63c87032465a810860aa0cabd37ffee5bea0d399 SHA512 5a4b7877b7d13ba45e98a04012a28ff623d1d7655d6522d7e96ac21538908127ef1e12a21260d8ba6b1ae6190b39bd60d37b3b9450d91b40b64a08924737897c +DIST linux-5.4.201.tar.sign 991 BLAKE2B cc796c219d5f267dfdc441e1dfca957a6d8a43400994fee88282dcea383d135e13d8b896825551c4fdaca323fb6bda4fa57628da3b8071f3cdae71944988c23a SHA512 5d994a6845b7d966316a22ec75218e3d6a1c0996268ede9f16c27813e0e219cd20422da3b8a4eb2288749cb997e63d1b72f210e6b49dc4d23d562e932bf7b0a0 +DIST linux-5.4.201.tar.xz 112944200 BLAKE2B b28990b772040c2108aec503d3c7940424def8e4bb2114674bc91b232d6ce771c9fc3add7d2453f5fafd51091bc22d58be8f0d51c2c56da211ea256d3b29d4aa SHA512 2116403f37abeb5438df5eb8ec983373cd6d2da84ac83584155f19826430552a1417276f80929a4019f4e7b945a4265bb09338a82ee1f1876cc9f21d7cc82024 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.201.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.201.ebuild new file mode 100644 index 000000000000..4f5f7870ccb8 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.201.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[@]}" +} |