summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-06 13:24:28 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-06 20:55:37 +0100
commit71cdfe92310f9af8d7801a79c0f6eed516f8b6b2 (patch)
tree46584812396ba0e6d0e7bb1fc99e3183d7d59872 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.4.24 (diff)
downloadgentoo-71cdfe92310f9af8d7801a79c0f6eed516f8b6b2.tar.gz
gentoo-71cdfe92310f9af8d7801a79c0f6eed516f8b6b2.tar.bz2
gentoo-71cdfe92310f9af8d7801a79c0f6eed516f8b6b2.zip
sys-kernel/gentoo-kernel: Bump to 5.4.24
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.24.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index f37631bed9a3..e27765063038 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-4.19-107.base.tar.xz 3227648 BLAKE2B 0a40b4a65cef13ba6840a3ff538
DIST genpatches-4.19-107.extras.tar.xz 17488 BLAKE2B 55a484a8927241b721ebcdc0d48f92895982f27e7e05c68f9e04638019355fd296ad514fa767c72b27aaa3fcae0339f436080776fa53081d489e51e889a2e1ff SHA512 42126be688244fda9fb87e1d83785933fb6a96d92e02460f3fd34704e45b5f73ba2921e599f5a51729939f3cacc0d29ca5a9dbedb5d929551169b02ab765617e
DIST genpatches-5.4-23.base.tar.xz 956024 BLAKE2B 5270c606d07a9c593e8428ebf4636ccec4e6fe07fdda05617451cb1d6523c39fa5c483f9e2006e7944c0f7f835c40d8bffe50606b3266d4a8134779a5d651c3f SHA512 038aeb54cf8854461d61b38598e0191f46fe8b327ec7287c721238f8a41fc8a69a80c4c914ad04569aed6d994321979dcf469c376297ad555ac9095dddae4567
DIST genpatches-5.4-23.extras.tar.xz 1744 BLAKE2B a744740c74b52b66f8db5f0a71174b15284bd83c0ca9318c2bc3809586aa914f20239a9a122930df587cf861412d7ce33a7efb74128bfd2dd52516abbe0cf20a SHA512 74f429626747883c5b4c6e8cb6bced6a5dc377a758637b7eded70dc9471121aa8496030f4b00ac0cd9bacb693d89366d10fc34d0827286ade8160038bf9aa1f7
+DIST genpatches-5.4-24.base.tar.xz 1012048 BLAKE2B 88f206f9824bdbe818a159832be638bd37ba274cc06fa245c7e48fe67112383ba3254e6e6433a5ebef792b4b61798aba9d748f8bffac0f62aa9c5536cc934b8d SHA512 bfa30fab2737af4d7e8874831cadec224a634832502f7472c4a018ee98ff698e5134101b06f09ab779e03d62920a29691a12a189ff19e055cfb1effce584b8d9
+DIST genpatches-5.4-24.extras.tar.xz 1740 BLAKE2B 959877a73da6fc757631407722e086c41409309060b275139c092aacc9cb1a7b749638322abf019bf194508d06a73eeef00939dc666f94313a680452b1fc91c2 SHA512 d9c85b2e581bcda49cf34ca90dbcb124c56ab515a8df67a55b08f5e8c0495894376267ba78c966dc9697d88ca8e429e2018d9dedd1a1fddaa7107c6fc74f248b
DIST genpatches-5.5-9.base.tar.xz 399476 BLAKE2B a4582c276854d99a15766b0f9ae28326c3ba89d46e513e7265b839788966057fdfc46912695d74dc560cf22db087d20869dbfd69c59250d0b2e59cf56a506d81 SHA512 cb566c2394bf1c98a32343b5be1bc9ecc1a48587443cac39a2e999b09adedb3319726b1321a6d38ae6e6eb39e106dd1e251ed15f127ffb730f6597949df512de
DIST genpatches-5.5-9.extras.tar.xz 1744 BLAKE2B c8f761afd767cef3ea6c1d79a3eb6e7dbef2d292dfcecd314189d92c020b3016ae8e3f5cfad3a532f34d9c47f01421ba38e3305b381791dc07375d217f3ac9a0 SHA512 5f48330ef699b9704baabb2c8171c80d445790c7876a92b0c7ea49bc29ee8347d87e441b9a51e2eedd069a78fc7011053e6282e54c216852cc9ba080064169d6
DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.24.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.24.ebuild
new file mode 100644
index 000000000000..49f94f6888a8
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.24.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-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 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-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:${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
+}