summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-01-24 06:43:21 +0100
committerMichał Górny <mgorny@gentoo.org>2020-01-24 20:18:37 +0100
commitbae961877133c2c63b5477c2c3434885870abf48 (patch)
tree56b4ed38f447ce19db9ce4f3f3f25374135daf57 /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 4.19.98 (diff)
downloadgentoo-bae961877133c2c63b5477c2c3434885870abf48.tar.gz
gentoo-bae961877133c2c63b5477c2c3434885870abf48.tar.bz2
gentoo-bae961877133c2c63b5477c2c3434885870abf48.zip
sys-kernel/gentoo-kernel: Bump to 4.19.98
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-4.19.98.ebuild83
2 files changed, 85 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index ed1022ec9294..dd1947d1be6a 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-4.19-95.base.tar.xz 2780232 BLAKE2B cc5ba5e36acb8834ca2313ec134a
DIST genpatches-4.19-95.extras.tar.xz 17492 BLAKE2B 5138c0138058e5dde744a056bf5068cc1db98cd3a52375d30ca72007d89d5c2b87e1493f1c3cc83cc7d0f1f489783ddf98f1b6d76b33ced4a7f18ae13e1b61cc SHA512 a1d5428a4aa5484dd26e4548a8796f54884541d4012e7591e0bf3c5f63fd9af242fa1719c5bda8e956e0be69f207adedfd0061ccbc00963ceb1272c03edb0e1a
DIST genpatches-4.19-96.base.tar.xz 2796188 BLAKE2B 6f8506b0a275b8ae1d215fe4d3812a5d895c05f07db16f560e6cfb8d4945e9a9bc10afcf537c165f96fc111657ba2191c6720be15a49726e92cf6277f9aa1e5d SHA512 62334fd0c23acbbf3c0bfcecc6970501b7c500e24e628130e2d541b29363782757feb3b915e9b3d1210c538fde87d9eb6b64694af5110d55789efd29c8ccce5e
DIST genpatches-4.19-96.extras.tar.xz 17496 BLAKE2B 11ccad1f1a7d67cbf5f39023b90321bfe8df1bbdb00a2e213f6a2dcb83445cf4e375de7465b266908f50540fe1e16280eeba99b03e2da8dfd96d72396c3a5ec6 SHA512 cd95d65fa56236e6303a22d5a9749912f70aeaee899c57f9c545e13696111dbcfbfee3757a42184164cae56f703b2af9072298dfaba35419bf05fe196692007d
+DIST genpatches-4.19-97.base.tar.xz 2820340 BLAKE2B ff5f1b20776414a30d1f24291c6ae75887e6d63ed6501f400a0d55b375ed18172f1eddbb9aa3426c9bbc23f0cb6766d2152c05bf97f511ba6e25ce7a8238c1df SHA512 e27450fa0af491e06206fa911f52c61dd9fa74c8a1003bd2fa7212cba30050f85501825f9855962684903cb7cd817e8f42c649b85fd791d78596608ceb5e15a5
+DIST genpatches-4.19-97.extras.tar.xz 17488 BLAKE2B a96cac0a53187a9b05216e66122e70f828889b7a955282309f4e27bb44a90ceaba4b66acd1a9bf9a2a3d7b97be2eb62be6c6d4c0a71475a9dc05dc3b4b6c3820 SHA512 aef2f865e488d96c73c35f9f26a801eef4f41ac7f0ce78fa3263f3dbfdaecc67fa6a9d46c8fa4f0b1e7d0e8815743385de0c7105fe1851830498400ae1309209
DIST genpatches-5.4-12.base.tar.xz 449796 BLAKE2B c0d88dd19d2e71c877bfc4320801a4ed617444accad16440512ceb721e127200db522153db73640e3b00c66561eb497a09775f71d4a3ba528718850350ad9ad1 SHA512 edc638f64933078b2a6601b88ba030283cceed5e739ce43d1748d6d46196d75e02477ae30775f653bf664bc046b117164cd62572f32099a82816c536bdde4c2d
DIST genpatches-5.4-12.extras.tar.xz 1740 BLAKE2B c9586b5120c0b177ce236f469ffc7412e7fa94cc97fd7b67b7bd888758c238fea15eb457fea847c6b4b7bc9475377c6c24c8a617e4cecee3360340234872d445 SHA512 771bb67ccc837bbfb3aeb129fb9110e3dc9972868fc43a6a5f2dc5ea2bcdacfecf65151e32427af34411238bcc1683438a99081bf09e1733cd5c8a09968a8d09
DIST genpatches-5.4-13.base.tar.xz 505168 BLAKE2B bf428eef66887c47006dd9713d7b5ffc4ed508d2d9a4e5a8f81eec5d39953779067307b30f5c2a94be047a1f7e149b02df8bfaebba9674474e3e44b4501c86db SHA512 e5690f03ea20f250443f9ff4857bd9c104637dfb4df15615841843035eca7283a4c12380db78cb7f6f9e3cc772a6d256d00584ad26ed72afe4706d3365ff2dcd
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild
new file mode 100644
index 000000000000..4c339a8d3f81
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild
@@ -0,0 +1,83 @@
+# 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}"
+
+pkg_pretend() {
+ mount-boot_pkg_pretend
+
+ ewarn "This is an experimental package. The built kernel and/or initramfs"
+ ewarn "may not work at all or fail with your bootloader configuration. Please"
+ ewarn "make sure to keep a backup kernel available before testing it."
+}
+
+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}"/[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
+}