diff options
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.102.ebuild | 76 |
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index dfe76211dcbb..1343bfa6ff18 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -1,5 +1,7 @@ DIST genpatches-4.19-100.base.tar.xz 2992824 BLAKE2B 02722c5568726284afa812be3d9cb4555bad11133dd5876d8ee09771e584e73dfb6e7bd8a2829126ff2dada931856a07429715a918a0fe88786fa98fb6ad6edb SHA512 621a9294c3377720723e89b175bb4f0f2812e566b73952a81112bc1ef675862842e00f642ba37f728ae8aa0e5e5cc17b347cea564821c02c88c532668007b5cc DIST genpatches-4.19-100.extras.tar.xz 17492 BLAKE2B c896c916f2dfad38b35f1ebd080cb5b66f6bd51b28a77535fc2ae44b11a1a5bee1be52a7d6d5e30b80c635b59e43f40d99c2cea98cf0744374412626a939cc00 SHA512 169dea4d9c41057807c63a8d66aa7fb94d783e841a94a700bc0eb1995e620e6b529658d3899ffc54e5cfde4e9267e385dc2e36786ff0c31acecc0593456f8909 +DIST genpatches-4.19-101.base.tar.xz 3008416 BLAKE2B 920228c1a69dea64f1e9c5f1dded4b01f2de69c92420daf45ede91bfe1db4004989015ae52cfe9013e300779a68bcbabb1af4e17f90db631a43e1ee38885ad32 SHA512 4b1062307426582521d4366bd3802b3adf9bc53c597f9b7dcca335241e797b1c5bd34e637added9633b73d4171bb08f34410350c21f670c07feb6c800a94c5b2 +DIST genpatches-4.19-101.extras.tar.xz 17496 BLAKE2B 824a49411f6ab8f4691fe994ee2da8736a74759dcc7cbae69d807cb9fac3d0890a660e5ee24a8f1fe10e0bf449855c5a9c6e7e523fec057b5ad3af5dd13d1a3e SHA512 1fe7326b95bc4eecbe4e3aada018bd6cd5897810a44ac8c0e031c2052964c917050c775e0a32304c1838c8c00ad9091adda1901818346cbbe3e2a12cd941bf72 DIST genpatches-4.19-99.base.tar.xz 2980172 BLAKE2B 2da82ccc1a3a9f874f30046c4d7ea01730398d27c34be741b3fa64ca7e05972a4ef33f76e28383c488d71489c1eabd33e462c2fbbc8248e6d53486eabb1956e6 SHA512 481042c47ca0f56a3262e9920a1e245197672c51ac32624668974a8af5273d3ff593047bbbb6476b741de611c83c19ad6e4a09e1c1331baaf67c1998ef64bade DIST genpatches-4.19-99.extras.tar.xz 17488 BLAKE2B d57f278109d3ea0cbe324e15666f119e2a9ef4ebfe6f9581dffdd6e9f4c11fca47dc08f2375da62928076647352772cedad41a8ab97b312b59a03956dd4a3954 SHA512 ae1f8f8fd8f9da3860e82d8838714248983014257386bab802ec3adf86d694db50db8d6cc9a9d01a2a6936e2ceb740a4f4732e48b1c40eebc8ffd523745d5dca DIST genpatches-5.4-16.base.tar.xz 622844 BLAKE2B c9b71a945733efde4ef1c3f4e5929573c4b338d7dfa2cd589ad64c567865eb7d1448f2e32a59548ba2d738aee5219467727fa68a3572a50ffade1cd574ddfd87 SHA512 3a1ad8e9f44076fe00f5fee586d53f3b028e7c2086dfc2a30659415ae6a5f8463623890d0a26965eb9fe33da31b1b03652097a0814602862145d047dc9977b33 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.102.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.102.ebuild new file mode 100644 index 000000000000..3b0d137453f9 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.102.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 +} |