diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-03-12 06:59:07 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-03-12 22:41:10 +0100 |
commit | 676427544ae95e2d4e60d55205155f9d2b55859a (patch) | |
tree | d6b8beb44b029a189d5c4cb76969e17f20a701f5 /sys-kernel/gentoo-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 4.19.109 (diff) | |
download | gentoo-676427544ae95e2d4e60d55205155f9d2b55859a.tar.gz gentoo-676427544ae95e2d4e60d55205155f9d2b55859a.tar.bz2 gentoo-676427544ae95e2d4e60d55205155f9d2b55859a.zip |
sys-kernel/gentoo-kernel: Bump to 4.19.109
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-4.19.109.ebuild | 76 |
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 5aa855685725..87b55edb4cf1 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -2,6 +2,8 @@ DIST genpatches-4.19-106.base.tar.xz 3207860 BLAKE2B 4a5c29c2e1e825630b4bccba0dc 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-4.19-108.base.tar.xz 3245572 BLAKE2B ac917443056a08dc9cbd47fe57d4b15a9b8916bbab59462ba0c96be4f9240f2d2beb0496bec6deeecc924862f49e65d77369bc3b1d59c51d0d70e7d5067e1cb9 SHA512 cbba52bbf0649f346dfee4601ffbc9305d5d34a7cb4cd50df9fee221d4afe970fe3ae9f9dd461b7da3fb2aff5e3efe2f69f4117d2adb55ebdd570f00e1824c61 +DIST genpatches-4.19-108.extras.tar.xz 17488 BLAKE2B 4a5d2cf9c20a3c8ee9178713ad18e68a5c33022e36a299a97b926f0311cca5366dae98831c6a9861ef644a2707953c0b6be7e939bef263ac27e9facfe9896347 SHA512 c6c04bc19debe86fdb8d504b5f06b4f30914d63d54e025ec885fc88bba94de070c51efe6d84004c78f2baf126d696d574fd9a1ebee017fbc2e98f97580dc4e87 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.4-24.base.tar.xz 1012048 BLAKE2B 88f206f9824bdbe818a159832be638bd37ba274cc06fa245c7e48fe67112383ba3254e6e6433a5ebef792b4b61798aba9d748f8bffac0f62aa9c5536cc934b8d SHA512 bfa30fab2737af4d7e8874831cadec224a634832502f7472c4a018ee98ff698e5134101b06f09ab779e03d62920a29691a12a189ff19e055cfb1effce584b8d9 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.109.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.109.ebuild new file mode 100644 index 000000000000..3b0d137453f9 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.109.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 +} |