diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-04-02 08:59:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-04-02 20:22:44 +0200 |
commit | 8bb673274aa414f98677c413dd2efa42ce2166aa (patch) | |
tree | d43b6efd80f8a30e857081557144c0cf78841dbf /sys-kernel/gentoo-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.4.29 (diff) | |
download | gentoo-8bb673274aa414f98677c413dd2efa42ce2166aa.tar.gz gentoo-8bb673274aa414f98677c413dd2efa42ce2166aa.tar.bz2 gentoo-8bb673274aa414f98677c413dd2efa42ce2166aa.zip |
sys-kernel/gentoo-kernel: Bump to 5.4.29
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.4.29.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 2ae5e0b62069..80e96775b270 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-4.19-112.base.tar.xz 3289056 BLAKE2B 7a3f0186898c69118cdbb450bc5 DIST genpatches-4.19-112.extras.tar.xz 17488 BLAKE2B 3be8e01bb3e3fc7cfcab9b5c1c0675c3adff87e3c87defd1e6261a60fe7b0a04c1928f733b0aef0e3316538a9595f97ddea0d87bca5245f812e21d8f8b944ec8 SHA512 94803b2dc4417a17bf648351f9d1c1220db3d16e324019ac67aa06b8e88d38a066fd69fe791057e35b0b08f6603cba5f9f04d5f32bad4d434e84a6f014d33b9c DIST genpatches-5.4-27.base.tar.xz 1094072 BLAKE2B cb2895a3729a0d58f734bcaf34f1ec4c00fb04cda9a77067a44c33e2d17ec3c6779ec7f296fae3bfda6b0fd7affb6126556605163fdd0b56769036434fc153ef SHA512 46a4fd2d8679f10e9a386462db423fbbe4ba3076f5de04c128d514c938a73ca2a3fbe8f1a50c39fd7f5b60a4b3143a33faed66a33c92aa8af85a1d0d121a187a DIST genpatches-5.4-27.extras.tar.xz 1744 BLAKE2B 876ee0915d60032a8a8c33ebdd9a8a938666bf06df1e618b568289d7779870cb1b2e0ae30b9b1ca0fb3bda574751c34732e20d7f032dd64135c6230ea9b9e507 SHA512 1586b9e19fa42418003b41ecc0bf7cdc208bdf8fec7f41c4fba1ca7bca643d03e38c3443f724e99e6e19338216527eb901bd95f0e89acb5ac1f0ee9fd9ac3589 +DIST genpatches-5.4-29.base.tar.xz 1155296 BLAKE2B b4cddc8f4d7ceb0dd29d58f4b2038b27213eeded93addcd97dcdaf70852850d0af386b350359ff72856b32019f648bd3a4c31e88a0f5688df72ccdaa4acedeb8 SHA512 60fdf8d72e9a0e26832c2fc86297ea701c8e42fb3c0cd6ab69791ef03cd46ad5704eea488ba9174021b7d545e9d65ae4340a77be068dc188111f06ef7ee16940 +DIST genpatches-5.4-29.extras.tar.xz 1744 BLAKE2B 624f0f1dc70ec4642864eebcbf7c2c9d05359dd0d801799767943c8758cbe52ab36a3dd42cfdac495b73fd4f732c6f0d3e5d35d7a1b1ea81d99f07945ebe848f SHA512 3991b500d2998c4ce801b29ff2766ed3f86f1f29744598afa131cc1d80fb917076e7e69e6eaca80972117d10eabdfe1bd9ae64ecd8825c1b63b87b360785b695 DIST genpatches-5.5-13.base.tar.xz 558584 BLAKE2B e519cc21b25b2c91766c22e86ecef80a6e3516e8a5f666c2452ad8836fb46540fb44ee38df90ddc94a3c7d23fe544e229c247ae200d691869300d8bd979dc5ad SHA512 917610eca9038eeb22d98ce373705607e16b33c66d5846010345a6258d24c34ab44894b2140d6afa9dde7abd05fe6061c90c396bf0940449d77936b15e552479 DIST genpatches-5.5-13.extras.tar.xz 1744 BLAKE2B ca1c8f785f746c31303f27c4eb013ce7dee2d8dd5fd6ebfde1c71a521b696a56bd3e6d97721e929c8637acb20a3faa7c212aa5cbb9bcff1833f82246f16e64fa SHA512 4bdd6eecd6aab145011deedc989b2c2c451840b631df0bd8bb8191b2dffd2a58436b4b9e1656a9cdca6c024b8cfabe911a1bb95c3b4fcd29f3aede4a317fc923 DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.29.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.29.ebuild new file mode 100644 index 000000000000..26593f121ff0 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.29.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-lts +AMD64_CONFIG_VER=5.4.24.arch1 +AMD64_CONFIG_HASH=c060a2f4e686e06679d9cf9bbab5fdf423e5a402 +# https://git.archlinux32.org/packages/log/core/linux-lts/config +I686_CONFIG_VER=5.4.24.arch1 +I686_CONFIG_HASH=3f4ba0851a9e9a3809fdec4091335182b0f1885a + +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-lts&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux-lts/config?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 +} |