summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-02-15 05:35:53 +0100
committerMichał Górny <mgorny@gentoo.org>2020-02-15 17:11:30 +0100
commit7278ab700886c66ece531ab523cfce0ef821f46c (patch)
treef329e0d616c1f65f24c4c37537c0ce69dbe9d5e1 /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 4.19.104 (diff)
downloadgentoo-7278ab700886c66ece531ab523cfce0ef821f46c.tar.gz
gentoo-7278ab700886c66ece531ab523cfce0ef821f46c.tar.bz2
gentoo-7278ab700886c66ece531ab523cfce0ef821f46c.zip
sys-kernel/gentoo-kernel: Bump to 4.19.104
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-4.19.104.ebuild76
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 65bf6a77c1d5..f67de2cc7259 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -1,5 +1,7 @@
DIST genpatches-4.19-102.base.tar.xz 3110244 BLAKE2B 35127d29a603bcdeb3257a442f632e227069b7452874f571b8c602ea894e4069879de3799a5cdd439f6e81a1d98e5cb4e0c07b9aade5f26c14ae1bef2229629a SHA512 128ac3c560faa733f58f6b657966c9543331ab65379e958a41c63b74badb8ae1da047b57d3a9665aaff6a46440a6046647367cfb93b30e2a7f7cbb0c9f981d94
DIST genpatches-4.19-102.extras.tar.xz 17488 BLAKE2B 3d7cefc14e8ba60f2932605c6f5f333af9f2d60f05a54b64234e34cf67b689f5ac131c16906a4f1c077055dead9550d73fb8437c3d2606b190a2179fbb699bfe SHA512 7ab06588702737c907b5e63ba774eef50f76cfce7c8384e7306f4f7f4f25cbad8e7d558c1507148dea4865ba4bf37ec299e43575c496bd9dd18b995d3445981a
+DIST genpatches-4.19-103.base.tar.xz 3123100 BLAKE2B 22fe4e84a455f1d36ab79c3b2aa660e75844ac20f2f727ea4827ac31bd270dfc295d39252a0f219ad397757d731680712b6e054ae92e86c64af62f0e279f3410 SHA512 e9b5db17747ae8db35805fabd0af3f836ac8d7b851c2ee4ee33db26020412e3592899e10c421e79cc22d7ebc37f93f4f8785f586e34f49e50974ebfa97e8c8af
+DIST genpatches-4.19-103.extras.tar.xz 17500 BLAKE2B b2bd771a3f2b53155599c250378ed32c7be3393e4ae3793d3f46aca74b0461ee8ba706ea51d9e7526218a5f80634de4cbbfbea23502bbab4787b7ada96658a15 SHA512 2fc476511989f1e6d1f867eeec55d1c0e18e21f504e6e68c65bcda05bc37ae0a679ab3ac09f579769c0ceba2b9b568344ee7bff3448cb2295b36ed7e883001b3
DIST genpatches-4.19-99.base.tar.xz 2980172 BLAKE2B 2da82ccc1a3a9f874f30046c4d7ea01730398d27c34be741b3fa64ca7e05972a4ef33f76e28383c488d71489c1eabd33e462c2fbbc8248e6d53486eabb1956e6 SHA512 481042c47ca0f56a3262e9920a1e245197672c51ac32624668974a8af5273d3ff593047bbbb6476b741de611c83c19ad6e4a09e1c1331baaf67c1998ef64bade
DIST genpatches-4.19-99.extras.tar.xz 17488 BLAKE2B d57f278109d3ea0cbe324e15666f119e2a9ef4ebfe6f9581dffdd6e9f4c11fca47dc08f2375da62928076647352772cedad41a8ab97b312b59a03956dd4a3954 SHA512 ae1f8f8fd8f9da3860e82d8838714248983014257386bab802ec3adf86d694db50db8d6cc9a9d01a2a6936e2ceb740a4f4732e48b1c40eebc8ffd523745d5dca
DIST genpatches-5.4-19.base.tar.xz 782808 BLAKE2B 9b0b3e6090e33f5852c3fdd2ee58110f909beea9aac3c2591709fe97ba24003b9c923085f1577309052f94a934dc36be0937ded1df05828b69ddbc6ae31c158c SHA512 866aa0b06f8198739cabd54fcf09308629d00139f9068c255cdf61d96bb0288a5dfea7a46562ed51cfad2e682c29195e0304c442d659f50238cdc38e9e885fbb
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.104.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.104.ebuild
new file mode 100644
index 000000000000..3b0d137453f9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.104.ebuild
@@ -0,0 +1,76 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build
+
+MY_P=linux-4.19.94
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1))
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
+AMD64_CONFIG_VER=4.19.92-arch1
+AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
+# https://git.archlinux32.org/packages/log/core/linux-lts/config
+I686_CONFIG_VER=4.19.85-arch1
+I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
+
+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-lts&id=${AMD64_CONFIG_HASH}
+ -> linux-${AMD64_CONFIG_VER}.amd64.config
+ )
+ x86? (
+ https://git.archlinux32.org/packages/plain/core/linux-lts/config?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
+ # (skip most patch release patches, we just fetch newer sources)
+ "${WORKDIR}"/109[4-9]*.patch
+ "${WORKDIR}"/11*.patch
+ "${WORKDIR}"/[2-9]*.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
+}