sys-kernel/vanilla-kernel: Bump to 5.4.22
authorMichał Górny <mgorny@gentoo.org>
Tue, 25 Feb 2020 04:21:56 +0000 (05:21 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 25 Feb 2020 13:42:24 +0000 (14:42 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-kernel/vanilla-kernel/Manifest
sys-kernel/vanilla-kernel/vanilla-kernel-5.4.22.ebuild [new file with mode: 0644]

index 20c6171833be4f76fcb40cdea32d53df937797d3..77497453e1cc264efac24fe1509bc8ad6a7ebf36 100644 (file)
@@ -5,6 +5,7 @@ DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2
 DIST linux-5.4.18.arch1.amd64.config 241388 BLAKE2B dacc83b154eab51e3c7f57bba6e02a4edfe34fa584c907f514b8afe9cb7ef39aa245caf82a35f648e379883fbbb6426b763879676cd3cecf741bcf342f165a81 SHA512 bf211c4293f7dbd980bfcc47fb337a2db359f1320573f5086a5ec60a0c50b4105723e010212eb6d5b9c2ba3ecb5fa4381f8b67c16596647c030b4f49274120b9
 DIST linux-5.4.18.arch1.i686.config 240651 BLAKE2B 9e00b28951593aefc53cf735bd30589e44c9326f53ff98f7b2a244e171192910f93ab9f20d879ec06ace9b1169a6b3d3d6acf2105736905cca3b9c2db1cc8e68 SHA512 0c9331fd1256e044734d24d4ca58e2677604482aa0ce33f65a5df63dce4d2615ea9686a53a0e603956437d9b9d23e54389459d7ea0bfe66597609dae96952785
 DIST linux-5.4.21.tar.xz 109482812 BLAKE2B 21322e6bddbdb2d8e7c0e21a3bb908b83230bcf28626273e4af745e6453823a9d33d46ab86121175278748c7823c8139ffa9eebaa4da1995f7debf821adb5992 SHA512 816e0acc3be5ab5614f573fea6749fb3e2bd260753f97129882455875b60faf2cf1bee949e5920e11a05052e8ea845a94a922ea6ab4e9097594b2f468bd8d75a
+DIST linux-5.4.22.tar.xz 109491488 BLAKE2B 4e7695ec5777b83327b598e2cf99f8204936d47bb090e1ac35c335029ae85d269598bd5d277d604cff2a98154aa4936ebadcdbcba64829bb069afd07d017980a SHA512 7003f1f2d57baa9aabc52fdcfaac9456fb4e3fe1e6edc46a4016e561a1d7be4440ce10d2d45366125f950dfd8147e51d9bbabdcf34701f95528a4f8f68a32c81
 DIST linux-5.5.2-arch1.i686.config 243261 BLAKE2B dc0a7efb9c94af540043db8e559c04bfe2eb493158b0fe7d25984b85ae364cf262cf78ee57f1b1b6c4e9cc51138be15c098268e77f63f158702851352952837b SHA512 29cbf564fc30f9e8030001cae09d2711292d4e2c9c66f96a61a7d1575dd93d86f00d356697f011ff3810c8db95f95ac1fd54d6220c1f9095797891c29a7e2723
 DIST linux-5.5.4-arch1.amd64.config 243869 BLAKE2B cf65ebea77e2c8d3de643ddec5b6a3afee6abb3f858ddd987c96a294152caa4aa6731350774a8438d5e2a40c6847433d4243dcebddaaa63bb4cc4187674d7d7d SHA512 a14808fd73c1d15ca1d73de1e0cf91cecc89332c8ed650352c972b116325c6126cb70e2a40b002616b2bcc9e9197f4486705c353ad3da300c7bbd6ce44ff3737
 DIST linux-5.5.5.tar.xz 110709764 BLAKE2B 7b0486c66f70dc58d84244810a8d7790a29c7a282b8e22585607bc87a98970dafba61c0894bcb523647b93b32e5511137cd350583b83715a15527dc02995d4a6 SHA512 2d0ed596509546169d0e0d46c23e10920e6b565178e044fe57b68b7ff0ec5c613bb090105affc74e5bcacda36f8c8a49c269017e90dd7145f58e9359707f35d1
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.22.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.22.ebuild
new file mode 100644 (file)
index 0000000..120e57e
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build
+
+MY_P=linux-${PV}
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
+AMD64_CONFIG_VER=5.4.18.arch1
+AMD64_CONFIG_HASH=f81c67d74936ab16f9356add6600be0de003abb4
+# https://git.archlinux32.org/packages/log/core/linux-lts/config
+I686_CONFIG_VER=5.4.18.arch1
+I686_CONFIG_HASH=c4c120c5fde43a49d84db7d60a9722e2ca1d1c2a
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.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-bin:${SLOT}"
+
+src_prepare() {
+       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
+}