sys-kernel/gentoo-kernel: Bump to 5.5.16
authorMichał Górny <mgorny@gentoo.org>
Thu, 9 Apr 2020 08:43:21 +0000 (10:43 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 10 Apr 2020 07:31:55 +0000 (09:31 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-kernel/gentoo-kernel/Manifest
sys-kernel/gentoo-kernel/gentoo-kernel-5.5.16.ebuild [new file with mode: 0644]

index 547fe4e50bf1ac5b184cd7fe8adb9125edf801e9..998f5722fea652d9d12968fc18c971aaff50efd9 100644 (file)
@@ -12,6 +12,8 @@ DIST genpatches-5.5-13.base.tar.xz 558584 BLAKE2B e519cc21b25b2c91766c22e86ecef8
 DIST genpatches-5.5-13.extras.tar.xz 1744 BLAKE2B ca1c8f785f746c31303f27c4eb013ce7dee2d8dd5fd6ebfde1c71a521b696a56bd3e6d97721e929c8637acb20a3faa7c212aa5cbb9bcff1833f82246f16e64fa SHA512 4bdd6eecd6aab145011deedc989b2c2c451840b631df0bd8bb8191b2dffd2a58436b4b9e1656a9cdca6c024b8cfabe911a1bb95c3b4fcd29f3aede4a317fc923
 DIST genpatches-5.5-16.base.tar.xz 643056 BLAKE2B e8e6cc1eedddd9aecd22058a16c7f3d0e54611fe912e2cb2f3b27340d7f9a3dfa6c2326bf29181b4870a327ae0651ea0d4cd4bc2f7a6ce32a59a6419d374ad9e SHA512 e3ae0e1e16e5838f7d1c88394f0020f722a3aa93343b7d704f42ce9173be1de8749ac7d47d071a48a16565210093f7bf77f548b5a4e9f2632b071a4ee141aedf
 DIST genpatches-5.5-16.extras.tar.xz 1740 BLAKE2B 77cf2f7232b07ef0646f5e636af9cce0945e8707e2c9ac38f9a69a7dac3ea49615311ab737e1a008b46cc1b40533657901f8d541a64c2798bbc456e730c4b132 SHA512 6214039d90a01fd61e6bdc8370a7f37ba95ff23e1273622ec80271e256852a8fe84b500635c67c890bdce6de985ebcd6351d06dd546ddded23bb39828d35ce72
+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 linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d
 DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258
 DIST linux-4.19.94.tar.xz 103389152 BLAKE2B 291db6f448606a4ba288295b4b1c0b813e736534e4749a152baa1d07fcf52bba2b59e7b4b261594a2deb9ad961afec50a28b4ec126f97033f1c0a36aba9f2961 SHA512 c6017e854ec06054c658042c2e8227d79284ecdadf0a2e1c5da799ca2ac165a266e7d33aa52361d0036ddb3059e3b24f0a68b45ffd84d87394d3f41492f6f9a4
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.16.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.16.ebuild
new file mode 100644 (file)
index 0000000..46f0dc5
--- /dev/null
@@ -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
+}