diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-03-06 13:24:05 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-03-06 20:55:35 +0100 |
commit | 762425c25c03a015e53c2954f77aa74121b16e5e (patch) | |
tree | 629ebd3473192c574b1c65292d16c450c5837cd7 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 4.19.108 (diff) | |
download | gentoo-762425c25c03a015e53c2954f77aa74121b16e5e.tar.gz gentoo-762425c25c03a015e53c2954f77aa74121b16e5e.tar.bz2 gentoo-762425c25c03a015e53c2954f77aa74121b16e5e.zip |
sys-kernel/gentoo-kernel: Bump to 4.19.108
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-4.19.108.ebuild | 76 |
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index eb22225949da..f37631bed9a3 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -1,5 +1,7 @@ DIST genpatches-4.19-106.base.tar.xz 3207860 BLAKE2B 4a5c29c2e1e825630b4bccba0dcd2aaab4fe9755fc135eb5990641705743384c0b3da75a89c86f450af9686ab6c036fcf18abed18f7e55f71a8ecdf582a7ab0e SHA512 7660e2f81b5cbd2705998ecc04bd611d39eb5cc30978737aba6741709f16fa6336fdf3bdeaaca2d2cd70ee7d55c205484ca4295774c02d5ff22722a14315e647 DIST genpatches-4.19-106.extras.tar.xz 17492 BLAKE2B d84b9ed61c0d3e3fd032ac5bda3e2898e09c652166305a4a2a949938713d2b7e04405d16ed22d9fc7171d8850dc27a886956b2f3f99b6c7519c0b74e3089f032 SHA512 422d7cf4a79ecc5bdb48e01a77207cf77162a1cda33dd629cf806d149193ddfa0254e93f7dacebb39cf0f42a3fd17a131cc3e14b6340b5a90f20b449c99ece54 +DIST genpatches-4.19-107.base.tar.xz 3227648 BLAKE2B 0a40b4a65cef13ba6840a3ff5380bc286cbb4fad8bdd1d714385435e0403afd8b128be2253cb9e08756b01bebd319782b5821cb879310fe45d5f034a6234b7da SHA512 d2dd2859104c38014357ebc4fd94b81cee27fb13ce6ece76e8ba82d4726d0ce35cac96c8af7eb7a55f559fc4ac305779ebfdca30b194d4e791a5120fb9a78456 +DIST genpatches-4.19-107.extras.tar.xz 17488 BLAKE2B 55a484a8927241b721ebcdc0d48f92895982f27e7e05c68f9e04638019355fd296ad514fa767c72b27aaa3fcae0339f436080776fa53081d489e51e889a2e1ff SHA512 42126be688244fda9fb87e1d83785933fb6a96d92e02460f3fd34704e45b5f73ba2921e599f5a51729939f3cacc0d29ca5a9dbedb5d929551169b02ab765617e DIST genpatches-5.4-23.base.tar.xz 956024 BLAKE2B 5270c606d07a9c593e8428ebf4636ccec4e6fe07fdda05617451cb1d6523c39fa5c483f9e2006e7944c0f7f835c40d8bffe50606b3266d4a8134779a5d651c3f SHA512 038aeb54cf8854461d61b38598e0191f46fe8b327ec7287c721238f8a41fc8a69a80c4c914ad04569aed6d994321979dcf469c376297ad555ac9095dddae4567 DIST genpatches-5.4-23.extras.tar.xz 1744 BLAKE2B a744740c74b52b66f8db5f0a71174b15284bd83c0ca9318c2bc3809586aa914f20239a9a122930df587cf861412d7ce33a7efb74128bfd2dd52516abbe0cf20a SHA512 74f429626747883c5b4c6e8cb6bced6a5dc377a758637b7eded70dc9471121aa8496030f4b00ac0cd9bacb693d89366d10fc34d0827286ade8160038bf9aa1f7 DIST genpatches-5.5-9.base.tar.xz 399476 BLAKE2B a4582c276854d99a15766b0f9ae28326c3ba89d46e513e7265b839788966057fdfc46912695d74dc560cf22db087d20869dbfd69c59250d0b2e59cf56a506d81 SHA512 cb566c2394bf1c98a32343b5be1bc9ecc1a48587443cac39a2e999b09adedb3319726b1321a6d38ae6e6eb39e106dd1e251ed15f127ffb730f6597949df512de diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.108.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.108.ebuild new file mode 100644 index 000000000000..3b0d137453f9 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.108.ebuild @@ -0,0 +1,76 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-4.19.94 +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1)) +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts +AMD64_CONFIG_VER=4.19.92-arch1 +AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9 +# https://git.archlinux32.org/packages/log/core/linux-lts/config +I686_CONFIG_VER=4.19.85-arch1 +I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c + +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 + # (skip most patch release patches, we just fetch newer sources) + "${WORKDIR}"/109[4-9]*.patch + "${WORKDIR}"/11*.patch + "${WORKDIR}"/[2-9]*.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 +} |