diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-07 07:29:50 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-07 14:05:55 +0200 |
commit | a94a5a8dd4ae46ba50060c13c32981c0c06d81b7 (patch) | |
tree | 3a52157fa1c1fb021fea38470419e38b066699ea /sys-kernel/gentoo-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.6.11 (diff) | |
download | gentoo-a94a5a8dd4ae46ba50060c13c32981c0c06d81b7.tar.gz gentoo-a94a5a8dd4ae46ba50060c13c32981c0c06d81b7.tar.bz2 gentoo-a94a5a8dd4ae46ba50060c13c32981c0c06d81b7.zip |
sys-kernel/gentoo-kernel: Bump to 5.6.11
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.6.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 8356b9de5f0d..8d2a111b0e7b 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.6-10.base.tar.xz 191312 BLAKE2B 71aa053ae13888a5b453da03f49423 DIST genpatches-5.6-10.extras.tar.xz 1756 BLAKE2B f4c70bc80dc569b3c943cf4e136fc4cd88a74621f4b25c760659eca1178cb059d595103702c23a078e39ad82b0803691cfc74f7e74d2d941834c5a74b446ffcb SHA512 1f3c06736b91be3018301040632891b06b8d9bec2e6b05e6747a3d93da6004ca01acc1cd9c4ffb2a668940f7e13185a639a6d2b0111e89a3abe62e6944de2a39 DIST genpatches-5.6-13.base.tar.xz 273740 BLAKE2B 7b314a9df316f4a05f1eb677ae78b0969d65edcbdc9669cd668e9f81b7fbfe498568b0fcdd51a23904f9e7c5390dff7e47d7c57d343698405562aa183dca17fe SHA512 e052eb8af814de249440b60c5ff36e1f86da7393de8c2386847604ca65d944ae7cccdab2bc99e4052c74e876b98f61b6402dc6c84e293cb873c8c35060ad7326 DIST genpatches-5.6-13.extras.tar.xz 1756 BLAKE2B 5ea8930fdd8b27d07d053efeff5427719ba1ddfc6b583803a06bbaada3373efb4cc64e8ca8e5450a68908b828ca9b72c42cde43a49f2c4e0a3f1b7146372c744 SHA512 9d2859ac64e14120d557548918bfcd97b967641ec7e7f1f466197e7e4cc32eef874e0e179eb021accceaf842e990376c54bd2cb6b60942b35b2b102c47fb8c5e +DIST genpatches-5.6-15.base.tar.xz 292284 BLAKE2B 0d80ef60c429516c2888e18704a4deaf6d293f5e60179b4dff080b1aff0088c69d5629a2bef1f57ccd90ca694460f3d57cfde7ed3274d30e982b506edf2bb5f6 SHA512 afb1c877d5317881deda321c87aae3138b147b45aeb4af5c1c377d87c142626904db59a5b26758a9f873bd8760c26e305487156438a553c9dda11f3ed1801875 +DIST genpatches-5.6-15.extras.tar.xz 1756 BLAKE2B b28a36cb3ccbfb9b79757e1684535eb8283157accdfa357d47ee8a699a4837f75f4aa0dfedfbac3d9e402b36bb669d8623f37b0c8b9dc24d095457a0da40ffe0 SHA512 107ab66357f3ae9183488fdf0d963561e1b862dedc0863310d78e6607c380c8dce54d555e1190b6aa8b09c1222e6fd137947b489e84e91a3bf3f98fa7d85df20 DIST genpatches-5.6-9.base.tar.xz 140640 BLAKE2B 06dbe9bf9df8cacc03db6d9548d994aaad4282a8e523bf70338a49efb703a635b23676b247dd42d9b566d49d169dd8561e218ee0c0039787b0986374a3ea72a6 SHA512 d6099207cfb3ff2693a65ba8ec05f24c38a9830f55fcf8369ea5dd5c1cde3c047a2d717b43514745f475f91cdcde8f732da46809d5477593372448fd1ece0452 DIST genpatches-5.6-9.extras.tar.xz 1756 BLAKE2B eb2ec83cd435634c0ee6b1d04d19ab1f6d82192831f42ca80396709d3a9bf8d427722377c95245df5743dd2dcdcefe73633faf01ff64ebd30c1a688eb483fc4a SHA512 9f33e9eb09d30dab64b7db8ae4fd6a8643e782878c70e069b41a5624305b3bcd56f1e21b408bb0ae9a1f9c697f97430f320a509daa7424717dd507116223ab24 DIST linux-5.4.15-arch1.amd64.config 241498 BLAKE2B 2ba5eab2455c909878c36c6084718331042d0f6ab42127868ffb1522f4b53de38879e5707328968e943d1fa44cc504626af52b733829e943532931b49a612834 SHA512 582577bfe4139a8f50c5881cd5a9f24dc3da3124e464756f9efc3d39894eac378483d052e1142730585e40a45641166d309b5e1b5e379f4a5ea2d5ebb2d3314b diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.11.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.11.ebuild new file mode 100644 index 000000000000..bc76214540cb --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.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##*.} + 4 )) +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux +AMD64_CONFIG_VER=5.6.8-arch1 +AMD64_CONFIG_HASH=7dcb86e3e6f24c6d5462c5c8d25c3fa09e7e9f55 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.6.8-arch1 +I686_CONFIG_HASH=bc42cce2cca0d42b5cfeb8c6bcbf9f39430791f2 + +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 +} |