diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-03-23 06:32:17 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-03-23 16:11:59 +0100 |
commit | c35837167cab99cadd0d730934bba7ffce3d62d8 (patch) | |
tree | 520efead42b2e4a69ec5a2c160d5a950b788c141 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.5.11 (diff) | |
download | gentoo-c35837167cab99cadd0d730934bba7ffce3d62d8.tar.gz gentoo-c35837167cab99cadd0d730934bba7ffce3d62d8.tar.bz2 gentoo-c35837167cab99cadd0d730934bba7ffce3d62d8.zip |
sys-kernel/gentoo-kernel: Bump to 5.5.11
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.11.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 5af5e3f0e9bb..a7140fa852e1 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.5-11.base.tar.xz 504352 BLAKE2B e7e24b605897a5c9aa454c9b859145 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-13.base.tar.xz 558584 BLAKE2B e519cc21b25b2c91766c22e86ecef80a6e3516e8a5f666c2452ad8836fb46540fb44ee38df90ddc94a3c7d23fe544e229c247ae200d691869300d8bd979dc5ad SHA512 917610eca9038eeb22d98ce373705607e16b33c66d5846010345a6258d24c34ab44894b2140d6afa9dde7abd05fe6061c90c396bf0940449d77936b15e552479 +DIST genpatches-5.5-13.extras.tar.xz 1744 BLAKE2B ca1c8f785f746c31303f27c4eb013ce7dee2d8dd5fd6ebfde1c71a521b696a56bd3e6d97721e929c8637acb20a3faa7c212aa5cbb9bcff1833f82246f16e64fa SHA512 4bdd6eecd6aab145011deedc989b2c2c451840b631df0bd8bb8191b2dffd2a58436b4b9e1656a9cdca6c024b8cfabe911a1bb95c3b4fcd29f3aede4a317fc923 DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258 DIST linux-4.19.94.tar.xz 103389152 BLAKE2B 291db6f448606a4ba288295b4b1c0b813e736534e4749a152baa1d07fcf52bba2b59e7b4b261594a2deb9ad961afec50a28b4ec126f97033f1c0a36aba9f2961 SHA512 c6017e854ec06054c658042c2e8227d79284ecdadf0a2e1c5da799ca2ac165a266e7d33aa52361d0036ddb3059e3b24f0a68b45ffd84d87394d3f41492f6f9a4 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.11.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.11.ebuild new file mode 100644 index 000000000000..46f0dc57842a --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.11.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 +} |