summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-24 07:23:59 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-24 11:03:07 +0200
commit7c5621dfc4343ee5c536094f8cc2a51d09cf09c3 (patch)
tree35d58df933deebc78e4eab0299a42df73a8db5c6 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.4.35 (diff)
downloadgentoo-7c5621dfc4343ee5c536094f8cc2a51d09cf09c3.tar.gz
gentoo-7c5621dfc4343ee5c536094f8cc2a51d09cf09c3.tar.bz2
gentoo-7c5621dfc4343ee5c536094f8cc2a51d09cf09c3.zip
sys-kernel/gentoo-kernel: Bump to 5.4.35
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.35.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 18ee5540d7d6..06ba39ff6ce0 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.4-33.base.tar.xz 1249764 BLAKE2B bd95b3601e1228447577e8c345728
DIST genpatches-5.4-33.extras.tar.xz 1756 BLAKE2B 09adf1f048f6145e8ca3283491fa6ac76222dc7e8d4473cc3109ec6d8c70945217a6e5fb9a47dd0797e3488d4db2428d92b2e32ff5e4b86baac7a7f5f938558b SHA512 4d631eb175492d2cec311e0cf82b209964c0b24fe322dbae91318b83a6179443a470a15aab99110cae4f9141690e36d5df4054ec6f47c3cbb45a19447fe11a4f
DIST genpatches-5.4-34.base.tar.xz 1263276 BLAKE2B 3165a1ba63e6d908c7be1575cf3e7085737e31b754a6d58e61b99438c87fbb3959f46a45ad1dd21791d37251c82b2323a97914cf7d80bea3a8a11fb1bc979282 SHA512 fd53b6969ee1fc94762941dbceabf74a77519aa104078da964acf2b5d199f91a7ccb045a2222cd0cb2d241343b783a3ee24f2c7ed0ea3be69c7bc658fac0c0e1
DIST genpatches-5.4-34.extras.tar.xz 1756 BLAKE2B 53bed9e3f8bc694d5d1ea0d2e1ec191d70658283954f7ac60098daa0087d8b16578d60329525aa1f09475bf6c7b926b33c90ed7d94ae458c6dfc97c19dea34f1 SHA512 e37d294f655c9081777121faa017d8ba385eb74d2cc1dd6b773a6994f63a1bd70585661837ffd154e12db1f0efd3c1102136916f2f13682313e352f69adb3854
+DIST genpatches-5.4-35.base.tar.xz 1295960 BLAKE2B 4af588c7896e9afad45a915521f57c1c5041dcc6792a8df0d6d79e9bd7fbf2ddb37128cc69e810391eb24f224949dc566f7f0b145ddd79f43df4927321e23429 SHA512 accfab914a5581231f7b8299c18e67b5791e18fd44a41ea3a1070a41c60ac32011274df9c13fd19ab2ceb9190304d839e6d365c02e17163f764fe63d5dc47fd1
+DIST genpatches-5.4-35.extras.tar.xz 1756 BLAKE2B b363ff53cb8b0a2813ffeb967d72b367336bae1bd6a34b52caa796f4da73e11fe9c58130abb90d7f3d0b760fd0d964ab03879facd451f63b73e7fdd642ea2045 SHA512 cd45a3192c99187d9efc04ed4331f038cd6b11d63e7a4d464666c681847e81f9cb4b21bb05639b43a6404655d76e2fae3d17633c2e52fa4f32149725f517a7d3
DIST genpatches-5.5-18.base.tar.xz 663560 BLAKE2B 3b44112e2788825d1205f89ab2930d543c896661638972a2431cad55dae7fed16aa2f881ee5b640a8876de8c472790a2bce87c20fcfe8679dcdb3cb9cab9adcd SHA512 4ef5a6e7d15e63722f19ee06a6722318a57a293298dc1b5b6faab36130d12ad1612be9060b9a00775f4216c5a822b41222c8e6b3feb26976c38fa613e58fe52f
DIST genpatches-5.5-18.extras.tar.xz 1744 BLAKE2B b236b4a9dd3180e1b984febea0f2f16742dad42eeae3c97f927ca946d08013e06b465d71cd0bcfc91b02929d9c2dcfcd2801706b7495dd5acad4178515286ce8 SHA512 507cdbffd6d419b2ca1c6a65683e2e95723fcd2d71066c4579d44877808bd8eb829586229bd31faa27e1a721691e1b30f0c3dc084a5947ef0acdd136bf071a87
DIST genpatches-5.5-19.base.tar.xz 677808 BLAKE2B 4de5b85677fa35c6340610ebd91f659253a297ad7ec065758d6f32d33eda294c8b683a0d2660c2bdc145ff751a48d59e4c36d7df330aedc000f41e57381b479b SHA512 d31f1123b493259f134cea8abdc8c25c2e83a696b0043109910ff296d581e5ff723114f6677a688f50ace99764556b559db5ad7df223ca90bfd693664c575850
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.35.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.35.ebuild
new file mode 100644
index 000000000000..1412b2980be3
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.35.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##*.}
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
+AMD64_CONFIG_VER=5.4.15-arch1
+AMD64_CONFIG_HASH=dc8d69b59a7a529ec5aaeb6b32b16e59a3cc1569
+# https://git.archlinux32.org/packages/log/core/linux/config.i686
+I686_CONFIG_VER=5.4.15-arch1
+I686_CONFIG_HASH=1ad219bd3f0ab439a81ed01fec7660eeea7daa0e
+
+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
+}