diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-04-18 07:37:30 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-04-18 13:57:48 +0200 |
commit | ef64e05698fbcb6225c2ad38849e0370a576d0c5 (patch) | |
tree | 38145efc6dcc34b8ce00f4faeb7ca2194f6c83ab /sys-kernel/gentoo-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.4.33 (diff) | |
download | gentoo-ef64e05698fbcb6225c2ad38849e0370a576d0c5.tar.gz gentoo-ef64e05698fbcb6225c2ad38849e0370a576d0c5.tar.bz2 gentoo-ef64e05698fbcb6225c2ad38849e0370a576d0c5.zip |
sys-kernel/gentoo-kernel: Bump to 5.4.33
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.33.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 80a81cfee323..bcb38373a332 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.4-31.base.tar.xz 1170496 BLAKE2B 1a85a54d6183ee4c1239c2d96c786 DIST genpatches-5.4-31.extras.tar.xz 1744 BLAKE2B 184c9fce2b55885ee086dbeff4fb55a1d2edfeaa55e30e0e7d672e120569acd85a74bd6f50463305b3dde2154ba68c1fad82b0eb8e66a32a6f2cc87443b397dc SHA512 a45f13e1ac2ed3f6114b94793085b7b80cd40a9be08cf835c574a98e0be7cabb8740b0b22d81a471d9c5b80603f23822513a24620fcc7854dcd9de443355ccb4 DIST genpatches-5.4-32.base.tar.xz 1184244 BLAKE2B 335fa30de35222c3f8bf14d9c2ee6201775671255062929d95c092e2c887c33bf22f1591fa2942db0595b5c02f951d191db51f3a24e192ccd1919c3ba0a5e938 SHA512 9bcd822c03d5733b72c066341c5d730c3ad644a41ebca77b6ae9d8e240f2bb20ec06ef92e317dc74533683bdff85f41d6e8d80d91928faba7d8a5f6a04452f1d DIST genpatches-5.4-32.extras.tar.xz 1744 BLAKE2B bf702c213be8e247b5c2e5e25c1d010584e7f227e7bc94c366e770ad71df46c77948c6b9ef47d10cf3dfdecc6fa31f069b35478b750c341d92784d982c99bf21 SHA512 da797e1d8766f310e40e4def65f9dfc95409f3d776cb45a5f00bfab7eb97357e565da4d95df9b425490d77b6ae21939943d39441ad4b8dc33917bd62a0a7b1ef +DIST genpatches-5.4-33.base.tar.xz 1249764 BLAKE2B bd95b3601e1228447577e8c345728e467975b9e3559ffd7b89ff09911693e5a1e27aa2d3ff1264b8bcdb6f34b4122b40e96b9955a56ef51a066f80b8f853dc60 SHA512 4fd5d8083e1c810e6ab07426975c7b9b84eb2b68ab12a73297e29a300df1e10b5b2ed3b9cafe72c8a2a63e9868a4cdaad38420d5bd9ece48debfb27a3e41cd53 +DIST genpatches-5.4-33.extras.tar.xz 1756 BLAKE2B 09adf1f048f6145e8ca3283491fa6ac76222dc7e8d4473cc3109ec6d8c70945217a6e5fb9a47dd0797e3488d4db2428d92b2e32ff5e4b86baac7a7f5f938558b SHA512 4d631eb175492d2cec311e0cf82b209964c0b24fe322dbae91318b83a6179443a470a15aab99110cae4f9141690e36d5df4054ec6f47c3cbb45a19447fe11a4f DIST genpatches-5.5-18.base.tar.xz 663560 BLAKE2B 3b44112e2788825d1205f89ab2930d543c896661638972a2431cad55dae7fed16aa2f881ee5b640a8876de8c472790a2bce87c20fcfe8679dcdb3cb9cab9adcd SHA512 4ef5a6e7d15e63722f19ee06a6722318a57a293298dc1b5b6faab36130d12ad1612be9060b9a00775f4216c5a822b41222c8e6b3feb26976c38fa613e58fe52f DIST genpatches-5.5-18.extras.tar.xz 1744 BLAKE2B b236b4a9dd3180e1b984febea0f2f16742dad42eeae3c97f927ca946d08013e06b465d71cd0bcfc91b02929d9c2dcfcd2801706b7495dd5acad4178515286ce8 SHA512 507cdbffd6d419b2ca1c6a65683e2e95723fcd2d71066c4579d44877808bd8eb829586229bd31faa27e1a721691e1b30f0c3dc084a5947ef0acdd136bf071a87 DIST genpatches-5.5-19.base.tar.xz 677808 BLAKE2B 4de5b85677fa35c6340610ebd91f659253a297ad7ec065758d6f32d33eda294c8b683a0d2660c2bdc145ff751a48d59e4c36d7df330aedc000f41e57381b479b SHA512 d31f1123b493259f134cea8abdc8c25c2e83a696b0043109910ff296d581e5ff723114f6677a688f50ace99764556b559db5ad7df223ca90bfd693664c575850 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.33.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.33.ebuild new file mode 100644 index 000000000000..1412b2980be3 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.33.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.15-arch1 +AMD64_CONFIG_HASH=dc8d69b59a7a529ec5aaeb6b32b16e59a3cc1569 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.4.15-arch1 +I686_CONFIG_HASH=1ad219bd3f0ab439a81ed01fec7660eeea7daa0e + +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 +} |