diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-10-05 17:37:23 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-10-05 21:23:30 +0200 |
commit | f5434a50d6f7220346df4b081a6e30018077cf74 (patch) | |
tree | 98b12d7d6f41c12171940f64820af2490adae1ff /sys-kernel | |
parent | net-misc/dhcp: add 4.4.3_p1 (diff) | |
download | gentoo-f5434a50d6f7220346df4b081a6e30018077cf74.tar.gz gentoo-f5434a50d6f7220346df4b081a6e30018077cf74.tar.bz2 gentoo-f5434a50d6f7220346df4b081a6e30018077cf74.zip |
sys-kernel/vanilla-kernel: Bump to 5.4.216
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.216.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index bc9003890ae0..2a43377c4118 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -53,3 +53,5 @@ DIST linux-5.4.214.tar.sign 991 BLAKE2B 5720b8540d928022d7899b368b67847568821f73 DIST linux-5.4.214.tar.xz 112943292 BLAKE2B 5f20fa125e84bcfecb5403bb74766f16fed01996e7bdf1ebdd9860a7290984738631b3f986e20190dfe86ea7e484c5ff77d541e76b3b554fcb5a8d33e48e6e7b SHA512 2db274c54c3a66e7ce73d8bb5a5d06e9fe26c19d47d58206f1cf07036a212ddb8e0c0b8cbeb09e393ace0d858572977d2f7c297af0154c9021bcd283694f6a1b DIST linux-5.4.215.tar.sign 991 BLAKE2B eafcd50885b0888c019d57903c51de5af1cb4ef3585b2dd5387b4947fe08dc03ba6ffaab0ba16f2b6176cf22fc608059eec840314f1e52875da0b6d0c8e3b177 SHA512 a51d9a857f52bebbb707e962c7541b5f1f8728fd6c353c8852a2a644910cfe860264b884e28587e3b7d0b848aee5df4c2680a4870f2b27ea2edcd2f9d920a028 DIST linux-5.4.215.tar.xz 112958164 BLAKE2B b5fb506c2982ef5d4f8d48a8a7a9c715ef47a55684222a33b77c5388169e3094cefb1384d0f16967cf45752e0442ef2c6a02b2f690a48654090c6e2840b61f07 SHA512 dc0d751b2b58ca63ad84df52e4a53fafce60c4ffb5ac7380d87eb89606b587de73b651cd246ef2c81b39136195b0022a441fd7984e6a3782b75e6ef6c632962e +DIST linux-5.4.216.tar.sign 991 BLAKE2B d6b6336720522fcb677e4af4586abd072f668bbf2d1c64eb3ef1d5c7749f9bc2bcee65353acfb7ded46d819840b7b1fdd38c728d5dcab064b60e22521237b359 SHA512 d4f7d808ebc705f6f9423ca18cc902fcebd7566526106295f5a9804f647c1000345f222456c49d77e0421f867a8775888748d94929655db38c715f2958fbb48f +DIST linux-5.4.216.tar.xz 112946116 BLAKE2B d1ad81747b1401822c1d4d9fb428134ae6041bfeb9f876f023b59e87aff57527f11eed28caf08348ba4493cd67649cbc239766395e6555362a980ebde197afc2 SHA512 e916237be6a237477e82dfac689614b4e31680412e886ca16a1740141a69daa10e2d9adbefdda34f10f93343828033873b6793debeb317ee5e43417d1cd7eb85 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.216.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.216.ebuild new file mode 100644 index 000000000000..ae90752d5ab5 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.216.ebuild @@ -0,0 +1,108 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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/projg2/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[@]}" +} |