diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-02-15 05:39:03 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-02-15 17:11:34 +0100 |
commit | 1549d877dbbcd9134578f54c4f219301d21a3f84 (patch) | |
tree | c40235958b8a07059e84d6465a2b1739f49cd969 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.5.4 (diff) | |
download | gentoo-1549d877dbbcd9134578f54c4f219301d21a3f84.tar.gz gentoo-1549d877dbbcd9134578f54c4f219301d21a3f84.tar.bz2 gentoo-1549d877dbbcd9134578f54c4f219301d21a3f84.zip |
sys-kernel/gentoo-kernel: Bump to 5.5.4
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.5.4.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index c3efe70b93ec..e1f9950e3a4e 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.4-20.base.tar.xz 807268 BLAKE2B e5930087b8384c74c699414d139627 DIST genpatches-5.4-20.extras.tar.xz 1744 BLAKE2B ca42cfee9974f2c2ae029d3041fb510d206721e52615c705f0c586aca0e91bb469d24a35d93f156f5b3c6077b9e6cf3dc50e361124310bc4321eeb20cd4e08e2 SHA512 980534074d620aa6e9eb9d8cd9c6ee64d9398dd210c6d3b14359af96da441cfee576212aafe4777b914f9e9ee6e9468f628570d42bfebe7967c8fb72a6568ead DIST genpatches-5.5-5.base.tar.xz 169776 BLAKE2B 781e5e23d69eac115dcf243bcb8a33b6793f1e53f303c634e80b32e6507a4d13f83ddf75b191dda159f4f55e4d00cc8cb1cd131039f6c5411e775c670f0f1ae5 SHA512 f177546e168274c4f814e50839f8f797f45eeed6690868131a0fb2a9b450051cd62ebe32c2118ac6e719be0daca5bafcf44696f69b0c5d5e23490ac5ac1dd362 DIST genpatches-5.5-5.extras.tar.xz 1744 BLAKE2B 0e040d013f97c2406cc5d0905fcdff3fe25f886ccc6d8622d7d76feb9f0fc7bb5fe6729a773a0bd5de3bb6b8654df38134ec8e44b0e72ee7c0230f8503efd802 SHA512 ae5e540a56d31a1e1eb21b69bf3fe229bcd402829e068bb2398e585579652254e84da2ffc11c7cbd146aa619dd047a7b472b05234e008288293bf7bc2b7c1761 +DIST genpatches-5.5-6.base.tar.xz 202848 BLAKE2B ec6c214b74f2090d241aa0ec3ad2fbac6c50361e37a5bcb0175a1b1dc4af1e75f3bbcce05785627d0d49f87f9a8c03be245436eff0fd283a42642a781f5afd88 SHA512 e58e19dc8b4d07370928c58b5b52592c46fd097d052fbb77adf4eb8f8be79771df2b4caa8c390818283a27606eebb98ab506ffe6a23bdc90a243e8a0b0b9dfdf +DIST genpatches-5.5-6.extras.tar.xz 1740 BLAKE2B bf8d44d979668f66fbe88ccae56536227a9ac5a31f7a3bf21ea102634c229230084de08339ba8c75d7b5af66ce020a2a01f195d29cdd9ae4bb1e94de159ca039 SHA512 2c82b37285fc58fff56e3b800092dbc4dc0e2bc384ecb1610cc50b913bd1e091ecb310c4147bc63131366ac959bb947b82f5908d88c8a13eec9ebccc29b4a3e1 DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258 DIST linux-4.19.94.tar.xz 103389152 BLAKE2B 291db6f448606a4ba288295b4b1c0b813e736534e4749a152baa1d07fcf52bba2b59e7b4b261594a2deb9ad961afec50a28b4ec126f97033f1c0a36aba9f2961 SHA512 c6017e854ec06054c658042c2e8227d79284ecdadf0a2e1c5da799ca2ac165a266e7d33aa52361d0036ddb3059e3b24f0a68b45ffd84d87394d3f41492f6f9a4 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.4.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.4.ebuild new file mode 100644 index 000000000000..fc29c283b299 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.4.ebuild @@ -0,0 +1,73 @@ +# 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##*.} + 2 )) +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux +AMD64_CONFIG_VER=5.5.1-arch1 +AMD64_CONFIG_HASH=2e42789fe089b87dfe6763e7d48781b6a0c33b95 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.5.2-arch1 +I686_CONFIG_HASH=06ff2f85b50e8d38c79597e1dae4aee8b501f057 + +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/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH} + -> linux-${I686_CONFIG_VER}.i686.config + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die + ;; + x86) + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .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' + # disable compression to allow stripping + -e '/CONFIG_MODULE_COMPRESS/d' + # disable gcc plugins to unbreak distcc + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' + ) + sed -i "${config_tweaks[@]}" .config || die +} |