summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-02 08:59:06 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-02 20:22:41 +0200
commite9d55dba51e9a980bd3bdf14f7857f85ce4c0efa (patch)
tree1e22af76c50e1799da97b9ebc47f865afe72166b /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 4.19.113 (diff)
downloadgentoo-e9d55dba51e9a980bd3bdf14f7857f85ce4c0efa.tar.gz
gentoo-e9d55dba51e9a980bd3bdf14f7857f85ce4c0efa.tar.bz2
gentoo-e9d55dba51e9a980bd3bdf14f7857f85ce4c0efa.zip
sys-kernel/gentoo-kernel: Bump to 4.19.113
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-4.19.113.ebuild76
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 2b38b3bc4dfe..2ae5e0b62069 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -1,5 +1,7 @@
DIST genpatches-4.19-111.base.tar.xz 3275536 BLAKE2B efd68196ef3d1f9ebb0964650e046fb7744ac32a13e1b6c4fb047085e122ac481c089b27d1771c99e47bf757760448467024f0dc5216f426c93e9c431d76cc0b SHA512 368a16315ef7f95d0c226f2e99b04390837600b23bcb1fa1d11f3eced2f57e9ccfd05f15d147b764bfefd53a7dd4c762ea875d2cba2f6650b5c61ebb40d198ce
DIST genpatches-4.19-111.extras.tar.xz 17492 BLAKE2B 875bf3992abbabdbc9c425407d3a54cff214c9e8a41651df7bafbd923ba9ff1f9bf593824d2819df4f64416ed76ced823fedf9e58ecf539d4f2c33a5fa9d482d SHA512 a0febb718498df7a3cae6fe3521b0ed05e72927c4e179fbaa91220345354e5367d80eb9062811b75df9ec97bca0cd5c92911b55175bacbc8dba99a1b68037d0d
+DIST genpatches-4.19-112.base.tar.xz 3289056 BLAKE2B 7a3f0186898c69118cdbb450bc5482ef910b876c34a087b292bd1b906f38b64b49ff593fab91d3c309057de8f89c1e22fb62326d5f945b7dbdd60ae9d7b92fb8 SHA512 f89b06e193469b79fce00a62cfc96e601c025fcaf0bcd684c0682e87ee91c622e613b77b53d2320ac3c45fdcc14373ba85728d57e95f0eb02fadb805f181da16
+DIST genpatches-4.19-112.extras.tar.xz 17488 BLAKE2B 3be8e01bb3e3fc7cfcab9b5c1c0675c3adff87e3c87defd1e6261a60fe7b0a04c1928f733b0aef0e3316538a9595f97ddea0d87bca5245f812e21d8f8b944ec8 SHA512 94803b2dc4417a17bf648351f9d1c1220db3d16e324019ac67aa06b8e88d38a066fd69fe791057e35b0b08f6603cba5f9f04d5f32bad4d434e84a6f014d33b9c
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-13.base.tar.xz 558584 BLAKE2B e519cc21b25b2c91766c22e86ecef80a6e3516e8a5f666c2452ad8836fb46540fb44ee38df90ddc94a3c7d23fe544e229c247ae200d691869300d8bd979dc5ad SHA512 917610eca9038eeb22d98ce373705607e16b33c66d5846010345a6258d24c34ab44894b2140d6afa9dde7abd05fe6061c90c396bf0940449d77936b15e552479
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.113.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.113.ebuild
new file mode 100644
index 000000000000..3b0d137453f9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.113.ebuild
@@ -0,0 +1,76 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build
+
+MY_P=linux-4.19.94
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1))
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
+AMD64_CONFIG_VER=4.19.92-arch1
+AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
+# https://git.archlinux32.org/packages/log/core/linux-lts/config
+I686_CONFIG_VER=4.19.85-arch1
+I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
+
+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
+ # (skip most patch release patches, we just fetch newer sources)
+ "${WORKDIR}"/109[4-9]*.patch
+ "${WORKDIR}"/11*.patch
+ "${WORKDIR}"/[2-9]*.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
+}