diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-13 11:29:43 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-13 16:02:11 +0200 |
commit | 1a07b017ef3ffd1ac8ea62ba2d4b0b1905f873db (patch) | |
tree | 8316e8047d3be3906a7673f97c56bbc05ab3b7c3 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.4.58 (diff) | |
download | gentoo-1a07b017ef3ffd1ac8ea62ba2d4b0b1905f873db.tar.gz gentoo-1a07b017ef3ffd1ac8ea62ba2d4b0b1905f873db.tar.bz2 gentoo-1a07b017ef3ffd1ac8ea62ba2d4b0b1905f873db.zip |
sys-kernel/gentoo-kernel: Bump to 5.4.58
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.58.ebuild | 84 |
2 files changed, 86 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 81793877eb80..29593d2bb4cc 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.4-55.base.tar.xz 2129856 BLAKE2B a9c688be16c22e0e563c0fa3c9439 DIST genpatches-5.4-55.extras.tar.xz 1768 BLAKE2B 195b5747cee6c3302bdcc2cb9b05f0cb87c367bb63e7a0afdc93127cf2844e8babf9bd378370217d57364c9a3bd0eccf01a41b40606ef1feb96ef90e9e67f91a SHA512 32bfd86dad656b6f9878df9c7bf17557cb553e540c34ba8f4fe9bd9b4d42c006a62c29d465d91a67933e27bdbf9a1e35c3b87d95166822b48bdde2584bc8edf1 DIST genpatches-5.4-57.base.tar.xz 2072976 BLAKE2B 6b1c954075b2cb45c90c091514d60a6cf31141cfdae1f6df210cfb5fe9b9218ecd1e8fd5fd83bc90c0ad18ff18db83d34f18a36f3cac31b71c9188026ea44429 SHA512 badd17281ba1906f3a9257590b4ddf21370d7a996e41d8be37e2bb14e25dd9490ffa915c2a4f84e25de9d9727d418bdce10ecf6ae4dc62947fa7078da61b4784 DIST genpatches-5.4-57.extras.tar.xz 1768 BLAKE2B e3850182da8254aa5a13c9ea0208bdadc873ea7014892fd20abeb960e0f1a228d44d1cc8687c4be192c0064136a007507611439b66bdeb142133687da46f8b39 SHA512 87d6b85c69c52426ca93d117b0b68029a5ec11c7ad58f9a352b446c22c75147f33f92dcd0db4ba297053d1e701d62f3730a61f374b60fbfed172e376fec242ef +DIST genpatches-5.4-59.base.tar.xz 2093144 BLAKE2B 7f7404c7c0a468e00633eb64440f094421d36649ee6e99d7d6578464fa14dcd7a574b292d0cd301d5e8779334d125f7be51e73234a53ce0a3c55525766cc1bba SHA512 89303be05d33affee93cd276add1a5604ad72412acdffdeddb66a0a295721313fa28e30120d45b498c54dd9939db7efd7c1ae6576926f49f016ba7f6c7cd8d3b +DIST genpatches-5.4-59.extras.tar.xz 1768 BLAKE2B e72c4e9302649fd7c7d82b51d7f4faec00de404e874be2cd9ca61b830afddd6fa62a0958a16ffa888be9151470755aa3244f00ded83740fe0d5cc7f242849a3c SHA512 086e7cef176dbd4544235a10c4ceda955f6c273ff8a1be0267a8168c770bdbdec06a4a5f6454efad59c01eff068d7f738ed1d984f63eb26ae748ac92d0a550de 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.58.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.58.ebuild new file mode 100644 index 000000000000..16e1bef95452 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.58.ebuild @@ -0,0 +1,84 @@ +# 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} + ) + 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 ~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 + ;; + 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 +} |