diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-21 18:47:00 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-22 14:16:54 +0200 |
commit | cef9d100436a8c747abc195c977f644253723cbe (patch) | |
tree | c59b0b44fc557a0c0c6d7b79607bf8f5e05fac0b /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.4.60 (diff) | |
download | gentoo-cef9d100436a8c747abc195c977f644253723cbe.tar.gz gentoo-cef9d100436a8c747abc195c977f644253723cbe.tar.bz2 gentoo-cef9d100436a8c747abc195c977f644253723cbe.zip |
sys-kernel/gentoo-kernel: Bump to 5.4.60
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.4.60.ebuild | 91 |
2 files changed, 93 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 75f9fc550a66..e1014fef51fc 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -12,6 +12,8 @@ DIST genpatches-5.4-59.base.tar.xz 2093144 BLAKE2B 7f7404c7c0a468e00633eb64440f0 DIST genpatches-5.4-59.extras.tar.xz 1768 BLAKE2B e72c4e9302649fd7c7d82b51d7f4faec00de404e874be2cd9ca61b830afddd6fa62a0958a16ffa888be9151470755aa3244f00ded83740fe0d5cc7f242849a3c SHA512 086e7cef176dbd4544235a10c4ceda955f6c273ff8a1be0267a8168c770bdbdec06a4a5f6454efad59c01eff068d7f738ed1d984f63eb26ae748ac92d0a550de DIST genpatches-5.4-60.base.tar.xz 2150948 BLAKE2B e6aa62049f3e73241c82e3a8794adb03c49dc3ad74368f849191cb8b7b640962ff9bc0e921262374a2db959eaab469d379abab860af093c3d484e5349ad3502b SHA512 f014d9dc8b1adc45137afed6b3e0d099f5cc08c0a71d2ac87ef9a5397a7e2ee6750254d4573336a4ac868c4cb207ce2e96437a876aabc45434758cfba2c70167 DIST genpatches-5.4-60.extras.tar.xz 1764 BLAKE2B 30ec9ee0ded28c8517649a3ea2346128e173fd8287632eb5e2ba1fc5d212eb39cd5c36f82a02b2933ee64d85a52ae95936b276f10e2a50cb72e18b6b0af8089c SHA512 f8b47d63f46ce68775897690d072f92410ac2b5477e8885ec2b03ed6fe563c4b4930ca21ae84f157391d07b1a6a0e222affdd8b4493a116094158b351c6b1ec7 +DIST genpatches-5.4-61.base.tar.xz 2186332 BLAKE2B f0063cb381a98330178dcf4ffa017ae9262f0406a1d4801b8e60a0300c51238a57b502ec8f72ac30e7b8618e8d54e6a56afdc9513fd8f896fc3129cbe3532446 SHA512 0733161227e3d1f3bb179a4ae8132183ef858166a0521e28669b5e01bf660a924b0b4758268ea4271abaf4bd51b8a49d0ac300173873087820697de5e53452b2 +DIST genpatches-5.4-61.extras.tar.xz 1764 BLAKE2B eeb60ddb3ac1b28aaccca2820d107dc65629b61460073b1e281903b04759f3c1a66ee8dca35459d1ea81fc75410709c8010c3c16aedf802fcc626cf47534ead0 SHA512 35a93c028932e1e6313ccce7fe0aa5277e57cad6c61418a436432aea5a3937e4621d72ae4d2e9b28c7b26342eaf0e63bdd9e55362d9f7b0aa4bb6a64b0c59c37 DIST genpatches-5.7-11.base.tar.xz 532736 BLAKE2B 9f5b5d8304c22cac1e081be759a6731c5902e2afc241c79dad2518083b9d56edb34f5ca2d9b39fea84cbe0e6569314e0db84eb69027830b997a6e318b6e27c13 SHA512 43bd55fef87afc5e97fc9d4d13705f6790eca5c1874fd266da2109ea0ac913e812e156cd231d67d3494f743f2263d33292770c4be9a8009e0c6f85704d77b21e DIST genpatches-5.7-11.extras.tar.xz 1764 BLAKE2B 655bba046d32ee61d8b026f462e35c4e58536afbfdb37de32380a253fedceeac2da42a1366ecbe0b7e156f25319f67ad61a5eb51ba762fd8958068f1f1c0d0bf SHA512 b26c720473ffdef3ac40955692660ee4645a93e2cb86a76d1583d878c3832f3c8bdcbdc23bc6838c1d0255ec86a5671d4e205cb6e99dd5a1d64405fe0081a355 DIST genpatches-5.7-13.base.tar.xz 581360 BLAKE2B 16841cdedf5ac9fd897e6c3ea6f428a4bbde48dca1c5f6d432d1c63248d6cec9157d4f0680cf340cc08703715afb32db342aa837a978c29b1874917d13454dd6 SHA512 aa15be557a74258476d777575cbe98148bb99104f221206e5d1589dfee89ab7ed2637a4e6dd044f477e3c5b0388faf399dc7241951c37a1df405981927f9973c diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.60.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.60.ebuild new file mode 100644 index 000000000000..5c7d8392a2d9 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.60.ebuild @@ -0,0 +1,91 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.4.21 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + 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} + ) + 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:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" +BDEPEND=" + debug? ( dev-util/dwarves )" + +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_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + 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 + ;; + x86) + cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local config_tweaks=( + # shove arch under the carpet! + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' + # we do support x32 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' + # disable signatures + -e '/CONFIG_MODULE_SIG/d' + -e '/CONFIG_SECURITY_LOCKDOWN/d' + ) + use debug || config_tweaks+=( + -e '/CONFIG_DEBUG_INFO/d' + ) + [[ ${ARCH} == x86 ]] && config_tweaks+=( + # fix autoenabling 64bit + -e '2i\ +# CONFIG_64BIT is not set' + ) + sed -i "${config_tweaks[@]}" .config || die +} |