summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-23 06:32:04 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-23 16:11:56 +0100
commitcbb2511e1702c9f5f763f46a68edd60c7a0daccb (patch)
tree67f4aa8fb71db068d801d3668bbcd59a976bd50d /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.4.27 (diff)
downloadgentoo-cbb2511e1702c9f5f763f46a68edd60c7a0daccb.tar.gz
gentoo-cbb2511e1702c9f5f763f46a68edd60c7a0daccb.tar.bz2
gentoo-cbb2511e1702c9f5f763f46a68edd60c7a0daccb.zip
sys-kernel/gentoo-kernel: Bump to 5.4.27
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.27.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 871f663e3c06..5af5e3f0e9bb 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.4-25.base.tar.xz 1052564 BLAKE2B b41dcbbeefe779bf86209d676bc51
DIST genpatches-5.4-25.extras.tar.xz 1744 BLAKE2B 7ca0570133350ec60e8872f9035dfd2d46355a16642755d8f4bdbed7a9622a1a18f0529fb55eff00dd15520396c269c7849210b461f0c8f5ed8c6512071eaeb5 SHA512 1894e699b09a9cf5732b9b9c8aad91c0ab85ef08fbc03afd4d0feb3cabf8dd04b2f6cd47ee8f1d09a07490617d5f16997cfcf037449f1d4f3af84c4f8541de43
DIST genpatches-5.4-26.base.tar.xz 1079948 BLAKE2B 4ed837fb6df27ce7e8b2b608800a5d754c02c8b34c88b3f528d65813de50a88e05a87a5079d7d67ba6ccc552e9f5b3ea775660e2f76a0badea30c6ab4eb472e5 SHA512 961edf9d05c84daaab9a8a5b499acd8215d1b54ecf4bb9b4670e9300fc917673fc35005d4695c24a02c116745425fe3b6d44066887c4f4b618925d826d5ea0ec
DIST genpatches-5.4-26.extras.tar.xz 1740 BLAKE2B 4bae843721cdeea0dd205239cf9ad58d25ac4b4fc43e92e0cb74faac46e759a9e0f9b6c1f4f88b56c8d56fee091000fd663c2e4e7099a64fefb71df1f4bc881b SHA512 f379b5ede9cca71b334638953209a2598dbf091ad08c322d2265cbbdb27d8f0ea7b1594db33be24cff96f062e3ee62008832ac74713454de9fc19fc20eff6da7
+DIST genpatches-5.4-27.base.tar.xz 1094072 BLAKE2B cb2895a3729a0d58f734bcaf34f1ec4c00fb04cda9a77067a44c33e2d17ec3c6779ec7f296fae3bfda6b0fd7affb6126556605163fdd0b56769036434fc153ef SHA512 46a4fd2d8679f10e9a386462db423fbbe4ba3076f5de04c128d514c938a73ca2a3fbe8f1a50c39fd7f5b60a4b3143a33faed66a33c92aa8af85a1d0d121a187a
+DIST genpatches-5.4-27.extras.tar.xz 1744 BLAKE2B 876ee0915d60032a8a8c33ebdd9a8a938666bf06df1e618b568289d7779870cb1b2e0ae30b9b1ca0fb3bda574751c34732e20d7f032dd64135c6230ea9b9e507 SHA512 1586b9e19fa42418003b41ecc0bf7cdc208bdf8fec7f41c4fba1ca7bca643d03e38c3443f724e99e6e19338216527eb901bd95f0e89acb5ac1f0ee9fd9ac3589
DIST genpatches-5.5-11.base.tar.xz 504352 BLAKE2B e7e24b605897a5c9aa454c9b8591458b9ff6276574513c58e2c16b99f8f045081ff57a419f5f31c78625d3c807abf1483ec718d3e4d80f8cbc45455d1d5e2d95 SHA512 db442b6df1b841c59c888dad631a7353daa9f500322a2f4b0449ee61833cd89c7f6f1bad1b799009a90de6c17b7bab7592fdcc4d7d2ba26321ec91302343a204
DIST genpatches-5.5-11.extras.tar.xz 1744 BLAKE2B f84aa0a4059f15a6e8e08f957259ceb519e144905467562abfe5637702e089141c4a6def7c61d91af299d2a850115a01852435d448e04fa8bb6a84644bd57bbd SHA512 e0241b4cb10e6257fbb5d12e41a7ef32eb9a501e9a81c0e638ec619629f9a421ae6022c8cb041789b764948f6b71cf810f49be7d8773b2d8c7c25935de846648
DIST genpatches-5.5-12.base.tar.xz 541732 BLAKE2B fac0a28374f38f3949fd13433da71680cb72c90477b5778343950fc4857095c9298b83c7ff34965030329179864fee287ede693ba4614b9b7f765b76f26ff362 SHA512 bd0855ca4a1b453dfcac8fac034e634a2080fdc7cdf1d9ed633d36cdd75d6145737df09606211ec38012c7dc5d9a7956911c47b4256acfcd746df31d529cfe2f
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.27.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.27.ebuild
new file mode 100644
index 000000000000..26593f121ff0
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.27.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.24.arch1
+AMD64_CONFIG_HASH=c060a2f4e686e06679d9cf9bbab5fdf423e5a402
+# https://git.archlinux32.org/packages/log/core/linux-lts/config
+I686_CONFIG_VER=5.4.24.arch1
+I686_CONFIG_HASH=3f4ba0851a9e9a3809fdec4091335182b0f1885a
+
+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
+}