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-5.5.9.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 73bb6a683341..52ae1834c01f 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -12,6 +12,8 @@ DIST genpatches-5.4-25.base.tar.xz 1052564 BLAKE2B b41dcbbeefe779bf86209d676bc51 DIST genpatches-5.4-25.extras.tar.xz 1744 BLAKE2B 7ca0570133350ec60e8872f9035dfd2d46355a16642755d8f4bdbed7a9622a1a18f0529fb55eff00dd15520396c269c7849210b461f0c8f5ed8c6512071eaeb5 SHA512 1894e699b09a9cf5732b9b9c8aad91c0ab85ef08fbc03afd4d0feb3cabf8dd04b2f6cd47ee8f1d09a07490617d5f16997cfcf037449f1d4f3af84c4f8541de43 DIST genpatches-5.5-10.base.tar.xz 456696 BLAKE2B d26c970cad7ffc6950f92fdd906a85f4e0e6242c6450b7ac0211a2cab8ade3c03112f3220943babbf26f115d35d3ba3dec18ff00c7a5608efadcaf7d417431e3 SHA512 bbd56eac912dac056d8273a9f3c21710fc614619b1bb6b52c48bf5972518a17ae20ad8601fb294a446415d0ecda57501681a4bbf13fe4a493a48a0d2d324e396 DIST genpatches-5.5-10.extras.tar.xz 1740 BLAKE2B 43ef46fdd52322a5b1f370690e7e39d8a6b835726b4166b5f35f079446042b60c9f59e159a88ac82ffa384ff7dce619140783a7e202d3374e272e140744a6459 SHA512 57affa6ae287b621407d8c8b8d12dcc7a45bb3d68bbd0418737c95df6ef7bdd76ea8a90caec3322b2e3a75ccb159c42fb132e38cf8c62e21d7abd22e98d309c9 +DIST genpatches-5.5-11.base.tar.xz 504352 BLAKE2B e7e24b605897a5c9aa454c9b8591458b9ff6276574513c58e2c16b99f8f045081ff57a419f5f31c78625d3c807abf1483ec718d3e4d80f8cbc45455d1d5e2d95 SHA512 db442b6df1b841c59c888dad631a7353daa9f500322a2f4b0449ee61833cd89c7f6f1bad1b799009a90de6c17b7bab7592fdcc4d7d2ba26321ec91302343a204 +DIST genpatches-5.5-11.extras.tar.xz 1744 BLAKE2B f84aa0a4059f15a6e8e08f957259ceb519e144905467562abfe5637702e089141c4a6def7c61d91af299d2a850115a01852435d448e04fa8bb6a84644bd57bbd SHA512 e0241b4cb10e6257fbb5d12e41a7ef32eb9a501e9a81c0e638ec619629f9a421ae6022c8cb041789b764948f6b71cf810f49be7d8773b2d8c7c25935de846648 DIST genpatches-5.5-9.base.tar.xz 399476 BLAKE2B a4582c276854d99a15766b0f9ae28326c3ba89d46e513e7265b839788966057fdfc46912695d74dc560cf22db087d20869dbfd69c59250d0b2e59cf56a506d81 SHA512 cb566c2394bf1c98a32343b5be1bc9ecc1a48587443cac39a2e999b09adedb3319726b1321a6d38ae6e6eb39e106dd1e251ed15f127ffb730f6597949df512de DIST genpatches-5.5-9.extras.tar.xz 1744 BLAKE2B c8f761afd767cef3ea6c1d79a3eb6e7dbef2d292dfcecd314189d92c020b3016ae8e3f5cfad3a532f34d9c47f01421ba38e3305b381791dc07375d217f3ac9a0 SHA512 5f48330ef699b9704baabb2c8171c80d445790c7876a92b0c7ea49bc29ee8347d87e441b9a51e2eedd069a78fc7011053e6282e54c216852cc9ba080064169d6 DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.9.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.9.ebuild new file mode 100644 index 000000000000..46f0dc57842a --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.9.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##*.} + 2 )) +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux +AMD64_CONFIG_VER=5.5.5-arch1 +AMD64_CONFIG_HASH=e4d4ca36741d228042185e2a9047cd88fb5b4169 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.5.6-arch1 +I686_CONFIG_HASH=7d53d8a42f68648bce5b002aaf8c2b14e6298275 + +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 +} |