summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-19 07:46:49 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-19 14:25:16 +0100
commit62d3bd4174dfdbb4be51e0dfdceda449acf5af49 (patch)
treeed8e8acd1f2c202b9c8e842d01813fc13190fecc
parentsys-kernel/vanilla-kernel: Bump to 5.4.26 (diff)
downloadgentoo-62d3bd4174dfdbb4be51e0dfdceda449acf5af49.tar.gz
gentoo-62d3bd4174dfdbb4be51e0dfdceda449acf5af49.tar.bz2
gentoo-62d3bd4174dfdbb4be51e0dfdceda449acf5af49.zip
sys-kernel/gentoo-kernel: Bump to 5.4.26
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.26.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index bc7a9117ff36..11b995084b77 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.4-24.base.tar.xz 1012048 BLAKE2B 88f206f9824bdbe818a159832be63
DIST genpatches-5.4-24.extras.tar.xz 1740 BLAKE2B 959877a73da6fc757631407722e086c41409309060b275139c092aacc9cb1a7b749638322abf019bf194508d06a73eeef00939dc666f94313a680452b1fc91c2 SHA512 d9c85b2e581bcda49cf34ca90dbcb124c56ab515a8df67a55b08f5e8c0495894376267ba78c966dc9697d88ca8e429e2018d9dedd1a1fddaa7107c6fc74f248b
DIST genpatches-5.4-25.base.tar.xz 1052564 BLAKE2B b41dcbbeefe779bf86209d676bc5155e1a6db0b8e91fc101da87bb66cd51f5ac26d41798fabe7b4e9377c696a729b649e16036bf677bfb468b8300d32617e995 SHA512 f1badde5398ff780bea19c91c294fbd391d142f0912645a2adf4c5ff63b049697d83bd5377069828b43abe5e448abe3649313d16cc6ee07c6eaa90f0c57f0ca5
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.5-10.base.tar.xz 456696 BLAKE2B d26c970cad7ffc6950f92fdd906a85f4e0e6242c6450b7ac0211a2cab8ade3c03112f3220943babbf26f115d35d3ba3dec18ff00c7a5608efadcaf7d417431e3 SHA512 bbd56eac912dac056d8273a9f3c21710fc614619b1bb6b52c48bf5972518a17ae20ad8601fb294a446415d0ecda57501681a4bbf13fe4a493a48a0d2d324e396
DIST genpatches-5.5-10.extras.tar.xz 1740 BLAKE2B 43ef46fdd52322a5b1f370690e7e39d8a6b835726b4166b5f35f079446042b60c9f59e159a88ac82ffa384ff7dce619140783a7e202d3374e272e140744a6459 SHA512 57affa6ae287b621407d8c8b8d12dcc7a45bb3d68bbd0418737c95df6ef7bdd76ea8a90caec3322b2e3a75ccb159c42fb132e38cf8c62e21d7abd22e98d309c9
DIST genpatches-5.5-11.base.tar.xz 504352 BLAKE2B e7e24b605897a5c9aa454c9b8591458b9ff6276574513c58e2c16b99f8f045081ff57a419f5f31c78625d3c807abf1483ec718d3e4d80f8cbc45455d1d5e2d95 SHA512 db442b6df1b841c59c888dad631a7353daa9f500322a2f4b0449ee61833cd89c7f6f1bad1b799009a90de6c17b7bab7592fdcc4d7d2ba26321ec91302343a204
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.26.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.26.ebuild
new file mode 100644
index 000000000000..26593f121ff0
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.26.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
+}