diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-03-19 07:48:07 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-03-19 14:25:18 +0100 |
commit | 68e41d9fbbea0667ebab45d769ca7a09a4d26dfb (patch) | |
tree | 832f3f113cffd533b7eb62290f2b0a49150cc98e /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.5.10 (diff) | |
download | gentoo-68e41d9fbbea0667ebab45d769ca7a09a4d26dfb.tar.gz gentoo-68e41d9fbbea0667ebab45d769ca7a09a4d26dfb.tar.bz2 gentoo-68e41d9fbbea0667ebab45d769ca7a09a4d26dfb.zip |
sys-kernel/gentoo-kernel: Bump to 5.5.10
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-5.5.10.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 11b995084b77..745a94ec850d 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -18,6 +18,8 @@ DIST genpatches-5.5-10.base.tar.xz 456696 BLAKE2B d26c970cad7ffc6950f92fdd906a85 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-12.base.tar.xz 541732 BLAKE2B fac0a28374f38f3949fd13433da71680cb72c90477b5778343950fc4857095c9298b83c7ff34965030329179864fee287ede693ba4614b9b7f765b76f26ff362 SHA512 bd0855ca4a1b453dfcac8fac034e634a2080fdc7cdf1d9ed633d36cdd75d6145737df09606211ec38012c7dc5d9a7956911c47b4256acfcd746df31d529cfe2f +DIST genpatches-5.5-12.extras.tar.xz 1740 BLAKE2B b9787c1a5ff46dd4cbbd6a1914b9851e42072bcec880e15ef82a8d878da079ba991c690eda9752ec0f9d7e15a7e9032e5e2a8fa98623a1b45937cc2dcfe30688 SHA512 94b4e044c2e67a303cc3e08941e097c8f24e38cbc2b39816b0d6b49ef4c1bb00341389432ba2258195b1abe2b3ee7ea92a06a56e756f22591625838731d41bf8 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.10.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.10.ebuild new file mode 100644 index 000000000000..46f0dc57842a --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.10.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 +} |