sys-kernel/gentoo-kernel: Bump to 5.6.15
authorMichał Górny <mgorny@gentoo.org>
Thu, 28 May 2020 07:23:50 +0000 (09:23 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 28 May 2020 10:55:59 +0000 (12:55 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-kernel/gentoo-kernel/Manifest
sys-kernel/gentoo-kernel/gentoo-kernel-5.6.15.ebuild [new file with mode: 0644]

index 60643dda0d9424a6f5a1b1e51ae206ccf2b08b3c..bd895939676983d8ae6cae1d4a66873bfeb9a03e 100644 (file)
@@ -14,6 +14,8 @@ DIST genpatches-5.6-16.base.tar.xz 305568 BLAKE2B 90609dd7eb9cda256927fbce372f24
 DIST genpatches-5.6-16.extras.tar.xz 1752 BLAKE2B 5d723106dfd00b958b1b2c59132d2443bde590175a55e3d6db73464bd8acd6284631eb0fef8fb552417ffb8af67061f7c8c4c5caaa53d703baf2c8fcd1319444 SHA512 aee1de432c1c329bdc847446ff07227a7352ab3f9ceaa03d87aa08abd51b9aa1146e4416c6c665a4958c2acf726d06993f116029bd6524a75e1eb09c923e2282
 DIST genpatches-5.6-18.base.tar.xz 389688 BLAKE2B 27a5c88470a1aa05bcfe356d1af6a9f2c6cf99ddd40e46bd98f8cfd36d876a9902e5b0d73b633f790b6998354190f4601d9adf88208d35ea8174e186477abf2f SHA512 41c91df0f6770559a9d5c1d7a42b1e706b525ea1a16847f9d276c36341d7595fba3bf84d154485212be8011603bab0fcb1ee6f8c99ce9bc70e021281ccc5e63f
 DIST genpatches-5.6-18.extras.tar.xz 1764 BLAKE2B 4be4af62876189a64efc04c95a553b90343e1995101843cbf2ea6762c7294e16d129569fc9d252b04bf5b724cceaaac8b73e37d099f755487efe1d67ba6223bf SHA512 61384f3b6d583ec030fa9e9a19863837c8b734c92eb0d560fe69e68650b2eddb26c6755e599137d74726da85747c9303db10c115eb8d199087e5f057a84ad2a1
+DIST genpatches-5.6-19.base.tar.xz 425204 BLAKE2B ab43e2e1787923f3fbd25d21d811d09855f93c0cbfee46c95540029d417f6e45c8a816dd01e251f346db9c85c1bc508add8590d9fd4083255bf45d228b8612cc SHA512 54f16f0cb5bd325b780453a09426f474cedb274844e296a8b9925ae5040719ceaab60f4a75684e916f5b4daf365547b06317f6e0d7ea98928d3df629ff86da13
+DIST genpatches-5.6-19.extras.tar.xz 1764 BLAKE2B 80e76bea74e9b4f1f78de798a78f19de2759a98f304fc223976762bf2a6370a480abf44a9af14c3bc30dc4ecfed0ceab38a480e2d252cc6033524216efd13e19 SHA512 24efa3f67c89027ba62fcbe4723ce7c461b6608b251b144bc09c4e51eddc2ba9ee7418b25c269833e086b6f21186babe41f53f7656ca28488431d5d19c92e091
 DIST linux-5.4.15-arch1.amd64.config 241498 BLAKE2B 2ba5eab2455c909878c36c6084718331042d0f6ab42127868ffb1522f4b53de38879e5707328968e943d1fa44cc504626af52b733829e943532931b49a612834 SHA512 582577bfe4139a8f50c5881cd5a9f24dc3da3124e464756f9efc3d39894eac378483d052e1142730585e40a45641166d309b5e1b5e379f4a5ea2d5ebb2d3314b
 DIST linux-5.4.15-arch1.i686.config 241195 BLAKE2B d3332b83a3d57c450bb1d5e85d83c71f3be730a15775b7e1d89cec2d72d28f1921987c63d95fe7bea6778efe0012ece6186449f07f6aca35ccf86805186c0f4c SHA512 187d88bdde7325d46b4bfee8d59ace88ab7dc377606b411e1249f9deee2b571ec42bac52c29d26d67bfadece2e77aad6d5e0255a95a84c200757cb05c69160a1
 DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.15.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.15.ebuild
new file mode 100644 (file)
index 0000000..8101659
--- /dev/null
@@ -0,0 +1,79 @@
+# 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##*.} + 4 ))
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
+AMD64_CONFIG_VER=5.6.8-arch1
+AMD64_CONFIG_HASH=7dcb86e3e6f24c6d5462c5c8d25c3fa09e7e9f55
+# https://git.archlinux32.org/packages/log/core/linux/config.i686
+I686_CONFIG_VER=5.6.8-arch1
+I686_CONFIG_HASH=bc42cce2cca0d42b5cfeb8c6bcbf9f39430791f2
+
+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 ~arm ~arm64 ~x86"
+REQUIRED_USE="
+       arm? ( savedconfig )
+       arm64? ( savedconfig )"
+
+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
+                       ;;
+               arm|arm64)
+                       return
+                       ;;
+               *)
+                       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
+}