diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-13 08:55:51 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-13 13:33:09 +0200 |
commit | 9eab139975d455daf5dcac92222419810f7d42d8 (patch) | |
tree | 447725400edccffdfcf499e6582c030801af548d /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.6.12 (diff) | |
download | gentoo-9eab139975d455daf5dcac92222419810f7d42d8.tar.gz gentoo-9eab139975d455daf5dcac92222419810f7d42d8.tar.bz2 gentoo-9eab139975d455daf5dcac92222419810f7d42d8.zip |
sys-kernel/gentoo-kernel: Bump to 5.6.12
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.6.12.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index db4a8dd6727c..f2ebb9bc86d0 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -18,6 +18,8 @@ DIST genpatches-5.6-13.base.tar.xz 273740 BLAKE2B 7b314a9df316f4a05f1eb677ae78b0 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-16.base.tar.xz 305568 BLAKE2B 90609dd7eb9cda256927fbce372f24898098f933cccfb90d73f88ab0d6b4caca29b3f2e8d016eb344394e9828e5fd493f38b3b2c0f621fd08c99f54acff58fae SHA512 19b460551fe26dd7b7dcf929914710f0d7aa51bca384a5184518d97776e14d2ff40ae74e81c2d1f2c833e9a1b61cb513867b5243994dd54ed4aba62cb49291d3 +DIST genpatches-5.6-16.extras.tar.xz 1752 BLAKE2B 5d723106dfd00b958b1b2c59132d2443bde590175a55e3d6db73464bd8acd6284631eb0fef8fb552417ffb8af67061f7c8c4c5caaa53d703baf2c8fcd1319444 SHA512 aee1de432c1c329bdc847446ff07227a7352ab3f9ceaa03d87aa08abd51b9aa1146e4416c6c665a4958c2acf726d06993f116029bd6524a75e1eb09c923e2282 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.12.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.12.ebuild new file mode 100644 index 000000000000..bc76214540cb --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.12.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 +} |