summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-22 08:03:08 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-22 18:02:31 +0200
commit544d3736ff07e250414fc731e64a42ea19a4d94e (patch)
tree8a66de0cdafac852681ec3a9de7a0beff7a694cb /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.5.19 (diff)
downloadgentoo-544d3736ff07e250414fc731e64a42ea19a4d94e.tar.gz
gentoo-544d3736ff07e250414fc731e64a42ea19a4d94e.tar.bz2
gentoo-544d3736ff07e250414fc731e64a42ea19a4d94e.zip
sys-kernel/gentoo-kernel: Bump to 5.5.19
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.5.19.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 1271c30bb43e..0cb178b29e03 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.5-19.base.tar.xz 677808 BLAKE2B 4de5b85677fa35c6340610ebd91f65
DIST genpatches-5.5-19.extras.tar.xz 1740 BLAKE2B 0e3c41a6f03140a067657d85435ec2a6b77cd5486bcab51d781d8310683b31e3ce8dcf389431d166db297e2e0dea719d78bb2ab57ec10b42f1e719386ecd5c40 SHA512 cdb60a030ee7ce4cbca9e58393de2b9de96e0294053e1d6ef62e16508758e879e4406ea1fbc01842d1cb499d524d7fd0a293f082240f0c4b2939e1fd267a4dab
DIST genpatches-5.5-20.base.tar.xz 750164 BLAKE2B e8469c3093f66567538585f9650a7a4d6a51c81aeb05248b1f44dcd1551eee9273ab0b24954530d9e0fb39d276514710ff6a7f4ab52f5bd69a784ae37ea666f0 SHA512 aeebddbd233f53ffc61f2932c755b903f3c67437094e6f4478aa1a3d6fafa1401c3b5d508fb67b84cb07efce229dae1451f7df9b89a486dcdedf593fc9404007
DIST genpatches-5.5-20.extras.tar.xz 1744 BLAKE2B 4ca85454446b99cffcda2e738789de908acb09bf0195066c79cd03ac466b32d532f6d21fc50b744c0feb935591c0180512319af2e89c10a8bf7f30400f91c489 SHA512 c4f12364b694278130eb5172446b29d94f5216ab8ead2d7ad18ab44329dcee585a67fba3c0f9ed0059474db178186fc00c75703637340d27e99265dfd6f4abc2
+DIST genpatches-5.5-21.base.tar.xz 767444 BLAKE2B 812732ed230a0605a40bd0a0d80bb64cf3582e0bcb94cb26e53aee7a69c0e66b200db8787abec14466287d9f9bfaa6f71d15d0cae56c5c820070833aa1996d81 SHA512 ed48a01f132d1dabc2bf2fe6b29156d1303cafdc53bcd843924f4ce14f6e0e35fc4d930b055b37a24365a6a31b36034d79f25112e1bd8526a6e0922e66dfc561
+DIST genpatches-5.5-21.extras.tar.xz 1756 BLAKE2B f277d12cbb65f109e49d96a47ba0a8429b2a791872b16548656db9f4275259fc774169a75f310edb7392b0c548b1ea7559eaa841376cb6a7c507cce31385cc37 SHA512 ce1c4b6ac121ecb6bbe1c738abd9ce967e4875654eb5aeb373f59e116c4b29fc2fb3f8383db6d093005ba85be1a36d1023780a35f27bf2e1c3bfaad15abdc084
DIST genpatches-5.6-7.base.tar.xz 39068 BLAKE2B 72665ab749b603ddff485eaa88316f820a96ffa663297c3890a1418e3bf1db19c5030c43ee2d2c5154aaf5caac246866745eadc842293a73e3d87ec748740ae2 SHA512 b8b8cbe3d79b141af6fab0b9052b71fc64d89eec593f184ebb3f57409434a38de529432c053d2e7f6307bcc60a01254f1d4f1cd8c52ba7bbf522575afe7059f0
DIST genpatches-5.6-7.extras.tar.xz 1744 BLAKE2B c30863a8e9f6ad56887e9e93c5d40cc27106dfb0e06edecda8bbc7b4568c83747e2f0dfefabc6d192b86cdc077732561ebb0cd7cc13f662148fa2bd8eebd7684 SHA512 9a2b410a47a00872df9b1f0adf5e1e95489ddf1c741eeffdf9e343be505a91da421319230797c9fc2efb1c95f635696a98ac60cfa1d589d505ccf1d863332760
DIST genpatches-5.6-8.base.tar.xz 120624 BLAKE2B 51c10c70351c8208d1d8e1f1f7604ff0b9356894dfe4ed97e55cee3dec7fe38d7ab1db5f03986fc1e1dc0b00c977907a875cd1eb46b78ab692bea214ac04575a SHA512 b735712ca16fbe04e16fcd7bf81f854a5d977a6ad510c61fb9e60d0d4c72a5a8c64125af286a93b388b1df3cb3aeaf2adfd37cd078acefc1d62f926b5838c0c3
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.19.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.19.ebuild
new file mode 100644
index 000000000000..46f0dc57842a
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.19.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
+}