diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-08-16 07:46:38 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-08-16 12:39:23 +0200 |
commit | 0feae8d92160ff52948cd9c630d3b20839170a3c (patch) | |
tree | 208c7f3fc6c25973474cea7bfd98d3c82f47be3a /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.10.59 (diff) | |
download | gentoo-0feae8d92160ff52948cd9c630d3b20839170a3c.tar.gz gentoo-0feae8d92160ff52948cd9c630d3b20839170a3c.tar.bz2 gentoo-0feae8d92160ff52948cd9c630d3b20839170a3c.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.141
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.141.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 5180eba4f2e2..8c50862b1ba2 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -69,3 +69,5 @@ DIST linux-5.4.139.tar.sign 991 BLAKE2B 9ecb1c5f49b22496e29bf68edd761079cc0bbbff DIST linux-5.4.139.tar.xz 109142932 BLAKE2B b8b1102d29caf312431dcc52c45aa70205fbe708af722eaec7b37331401d62e4906478f33e2fcc4b0ec88369dabb123f4267d114083739d6a8b7e509455b2e1e SHA512 d68cf5e60f309f1eadce232d71954e6271b9152fb42f2e6e7c01b47896cb2d1aaaa5078604da4d7c0775a9fe0d7ec366dfa9b6cace1b0d657bac14ed95c77208 DIST linux-5.4.140.tar.sign 991 BLAKE2B b47a512a34f37b79344cf35e1f7fe83d075877e96697c7927f0c3e9bcca4a718825a3de5029122f183ca8b6aaa948aa18165e7fe116df3c6d096011b9011dc8b SHA512 575dcb2734bcbf690a5f557c8a87fd404e897379bd06e098bebec4daa07189946fe49fe0c51413b93a4da661596bfd38fffc43b6512fc27c75123cdb34437ff2 DIST linux-5.4.140.tar.xz 109150880 BLAKE2B 6bfcae668b3fdbef446c3154bc06422de01c7a6abba7da2c2baa32cd10dfa155cffd73d45234daf454e720e2e29fc0f75cf590d8e7cbdaa4fce6aa7ce021b135 SHA512 da96ab701bed678009e437fe8533ec3196b049c9998c2b07538610fb5e7e4ece5d907f8769d5677c3df772c9015710d113af3efbf661eafb5d3559b8252a06a6 +DIST linux-5.4.141.tar.sign 991 BLAKE2B 0abf2870a1a4103753e20062371305d691057b63a03dc4bce5cad6a1afa20bfdebe43317a166597afb66d5ef234dfbe8b5e63584152b5af8076ac4401188fbb7 SHA512 2208f80cb39819dea5151144fc44a2d87b2f143479865ac0acf341fabeaa569258d982ba71c1753703865383db085ad437d22bcafa179a8dd1e43ddb5ce285d1 +DIST linux-5.4.141.tar.xz 109156968 BLAKE2B e4f99e256b9fde7b65146d95a3a7a027cd1954ff07a9b5828fe1cdf916a40f775bc5c90d24081d34b3d39c04fe50481ee4cf909178dd2026873b72734bd15a43 SHA512 267011d5c4dcaa8118dae0894d14725cbefd936f7e66f2fedeefcb33a9baf4033d964536f3733ada35227995e5f7cdfbc6375a7bcb32fe75bf54c6576ae178f6 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.141.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.141.ebuild new file mode 100644 index 000000000000..dc33930084ad --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.141.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/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 + +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[@]}" +} |