diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-03-23 06:31:47 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-03-23 16:11:52 +0100 |
commit | f6b5e2d4f3dceb33f2a3d978082b9d2150e12218 (patch) | |
tree | ea3c162e0c340b0f9112e2d22a47ca67c1df62d5 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 4.19.112 (diff) | |
download | gentoo-f6b5e2d4f3dceb33f2a3d978082b9d2150e12218.tar.gz gentoo-f6b5e2d4f3dceb33f2a3d978082b9d2150e12218.tar.bz2 gentoo-f6b5e2d4f3dceb33f2a3d978082b9d2150e12218.zip |
sys-kernel/gentoo-kernel: Bump to 4.19.112
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-4.19.112.ebuild | 76 |
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 9626843ecf9b..871f663e3c06 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -2,6 +2,8 @@ DIST genpatches-4.19-108.base.tar.xz 3245572 BLAKE2B ac917443056a08dc9cbd47fe57d DIST genpatches-4.19-108.extras.tar.xz 17488 BLAKE2B 4a5d2cf9c20a3c8ee9178713ad18e68a5c33022e36a299a97b926f0311cca5366dae98831c6a9861ef644a2707953c0b6be7e939bef263ac27e9facfe9896347 SHA512 c6c04bc19debe86fdb8d504b5f06b4f30914d63d54e025ec885fc88bba94de070c51efe6d84004c78f2baf126d696d574fd9a1ebee017fbc2e98f97580dc4e87 DIST genpatches-4.19-110.base.tar.xz 3262204 BLAKE2B 835215c4e9b808bdbc04bde3dc79512869f91a2652d360a6e11799fd1ecd6b02fcc7a2fba6e8bcaa90c05417136bb3673915fc2468c48b378df4a6a16c985dca SHA512 044cd58f95d679dc7eef3d81672bfe25d0a751b9cdf734122e83d44ae2324bf3bba89fe377a757967c90fc96072f62ad70e20ce29b67cdf45cc7eab7616cf926 DIST genpatches-4.19-110.extras.tar.xz 17500 BLAKE2B 5773fb4a74fa75333cf3add0ce89c0b22b49ac706f1e0ba5a8ea0526c8e8be31991fac43165a8a06bc612528702e7e9fd4aa71b6ff77e49baaefeda9b9dd0345 SHA512 e3ac65ad6127810f8dfa3d2ce29cd5e09b8e90f333d6385ece952811ae8321213641554d08cd366c35ae8bc4947150dff33f0f75b4dd1a2def3248d6c07c1c07 +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-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 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.112.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.112.ebuild new file mode 100644 index 000000000000..3b0d137453f9 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.112.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 +} |