diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-02-06 18:09:49 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-02-06 21:43:43 +0100 |
commit | cad82b7361c9a97c4ad933731df7d1228db946c4 (patch) | |
tree | 7edb4fd9383187d2cb606bfc0437e8413f98699c /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.4.18 (diff) | |
download | gentoo-cad82b7361c9a97c4ad933731df7d1228db946c4.tar.gz gentoo-cad82b7361c9a97c4ad933731df7d1228db946c4.tar.bz2 gentoo-cad82b7361c9a97c4ad933731df7d1228db946c4.zip |
sys-kernel/gentoo-kernel: Bump to 5.4.18
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.18.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 1343bfa6ff18..a6ba8f690899 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.4-16.base.tar.xz 622844 BLAKE2B c9b71a945733efde4ef1c3f4e59295 DIST genpatches-5.4-16.extras.tar.xz 1740 BLAKE2B acd4fd5705617564442e44326f5d5c6f0bab8ce1950cfda56d9db03ca1b0adfc3f0d8770a659010c8db4f4d6114adf667ffeefe636f353c9acc51c9ba07bdd0c SHA512 b44523a6da21eef1f547c0cfab9e2aaa2bde929dc2727d9ae748a55b6735e78d304dc66ebd1e97b57ed988936e91ad49e205dce10b745a8fded3b08e13dd1ce4 DIST genpatches-5.4-17.base.tar.xz 649680 BLAKE2B 787d9e9285a69a7f8de8c82375c42a8de7bc0cb0299c725fb60d23933079eff9803e43559d1a8467c3c315ad6ddfa64e1ddc47e4e2bcecaef892443f1bad7b7f SHA512 bd3a9b544d542a05da5c606b34998b7aaeab8d0ac85b13c6232d86d2cd0bfd418a67c080e8ad3d4bfd1e43f6e9afac26df368d3b61f66583baf018e109d7ade3 DIST genpatches-5.4-17.extras.tar.xz 1744 BLAKE2B 8a871ac738bba4aec50fd972c9a6f9233ca4a187b6e612dbdb32721fa1e5a7fd0169dd4c31658a124c8933518b05a9f4c2ba417d471e9922809a518cabdcb0f2 SHA512 b76cb8c9f6bc0aa640014c0377bb39cf8686d3733322b8e7ca92791e7dffe3117f32a537682ae1b516ad1c4e1e275b0fc7d7bf280daf2426bea0703e735b920a +DIST genpatches-5.4-18.base.tar.xz 676844 BLAKE2B a4edc187e5ca93823c553f783cede3814ded47c984b417b9654904cc67a4b52818bfedc0997b452ebc00007317fee7d72736dbd555976c37c334b3e1eeb6ea09 SHA512 49d362d9347370e2d4385a7947b502b3786e71dfa30b6edca2967418b940f25f978bc8d7db25a1c87b84d22de4082adc12aca7d0abe5a797e796f6680770ec62 +DIST genpatches-5.4-18.extras.tar.xz 1744 BLAKE2B eb75009e3a3c9fce962971e512a4c142ae5a61b6547e41faea87087ed7826b60087ab3dfceb32d0fc27adefca40b93afcb40a1225ac88ff2bd608ee5cf52e768 SHA512 5a3328b447eb12b077c8db6c3e3518585b963575cf52691691504c28d935a30d12ddbe786e99f0a42ec1625714c1c064ac60b7c8845247cd981f709a65a478bd 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.4.18.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.18.ebuild new file mode 100644 index 000000000000..0041d89b83f0 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.18.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##*.} +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux +AMD64_CONFIG_VER=5.4.13.arch1 +AMD64_CONFIG_HASH=9eed969590614a38d370a9fe04a4f5d38ba5e06e +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.4.13-arch1 +I686_CONFIG_HASH=95f890a9f9131e7a0e01a4f3e9c5ee423756a233 + +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 +} |