diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-19 16:54:32 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-19 23:29:15 +0200 |
commit | adcf29dba23472fa597b2e33099a6dc1e7d5300e (patch) | |
tree | 38ac5d762a5473bdb9d5d4bb6bf45c4144d2452e /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.7.16 (diff) | |
download | gentoo-adcf29dba23472fa597b2e33099a6dc1e7d5300e.tar.gz gentoo-adcf29dba23472fa597b2e33099a6dc1e7d5300e.tar.bz2 gentoo-adcf29dba23472fa597b2e33099a6dc1e7d5300e.zip |
sys-kernel/gentoo-kernel: Bump to 5.7.16
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-5.7.16.ebuild | 92 |
2 files changed, 94 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 6f309fffd42d..ee179677fe70 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -20,6 +20,8 @@ DIST genpatches-5.7-14.base.tar.xz 608144 BLAKE2B 735617575780177615b76e35674d86 DIST genpatches-5.7-14.extras.tar.xz 1768 BLAKE2B 864a38c040d786d53eda128ca9fdb1ea51b28f2391b5eded178836469779baf282577e8ef6855616eae740f355230b9c3fa19f6da4885f210efb552cdf720cd7 SHA512 c1fe586202bfb1ccf6ae06bbf8a175bbe19ab21f6582b4ccae551d904e6c09e13faf9d938ebe78e910db9a6903135e413e3521e633d4cfa61ab93e34a5896175 DIST genpatches-5.7-16.base.tar.xz 629080 BLAKE2B bf273eb71644c7bf00840b0de0a19417efcea421eff2b6c4f08e09dc878e512bee326a6e8a8697faf3e1c2e026019b38eecd3d8837185d9b314e716dfe28a741 SHA512 204aede767226dcd07558b3a5541793073bca0af3bb2bd46fec9fd32f60bd8819f45e99bdda0bbf171a24dafe7615397e10cc040d911d6dae4cbacf869218214 DIST genpatches-5.7-16.extras.tar.xz 1768 BLAKE2B 62eb6dbb2e1dbabde212cb64f581d94da12243e1ff0c339e1552f8795ec21e46afe1b6fffaf214ff44c5d7afc88c59097414c7d2d383a199ca9207e56a1ef08b SHA512 fdf9c96fcd7c03fdfc520dc16872b01d685d0555ab8e0c21cba54fac06caf979438eb64aae9ce5a960ffb40abc12ed3dde6866ab4d2a3b7d094783f1a53d2199 +DIST genpatches-5.7-17.base.tar.xz 725800 BLAKE2B e0afcde6b3db11ff2849d38eaada6388b47abcb578c94098cf88e3a3f17c5fd27738f5c31d3e6b426cce17c07f98651b275b4c5cd9fec42627dddec1aec576da SHA512 3c47c1cfe9b23d757b5cbc8ce631abf4ba831cdd13bd8390f51b00999f5b2fc41b66ecf719ac3bf5eeeb21ef62db042c652d42ed51548ee3b162d3c31a0ee79b +DIST genpatches-5.7-17.extras.tar.xz 1764 BLAKE2B 465c96b1edde03c888199704fe87f18a9f6d6cdfc11051ed7e946248b524d0933c727f00cdfaa666c13ab077c934766783b512158fd61dff4352fa510cfb79f4 SHA512 9263e15efb146b059b0b864302238efd65780efab2dbe7094de40302bd800fabefd8d47bc904ccd6b433ce7d75865473f25c11f536933c94e44ade5cd1f0d38c DIST genpatches-5.8-3.base.tar.xz 17408 BLAKE2B bfc58558204cedcad1fa9cfd169ea215ebbc030f28a001d6b172d1cdee92c873c9b832adc829837cdd73b5af506946769a3884790c6cd212fae32389772b3080 SHA512 bd05a93aa5b3b28cf25dc680614ddc59cd9902c94a5a2a5408fb9e2888b78c769587265239351e6c97a174b593908bc0b88e8dd2e04f9e36182079d0502a239b DIST genpatches-5.8-3.extras.tar.xz 1764 BLAKE2B 69fdcc9611225cbfc37820038eb3591497b859f81ac52cf5c80c330389eb32aaea7dde31f15268dd71e5b09dcfba67a58e80c41dbb6f04b03ee07840ceeb0388 SHA512 2aad14d765210d56f9a61ca8d26a08d6fdb43551925cab58c801ff9c0b63ecf85db1d79a9d213db0a0b9c3c6166da8726d10055d8fa689b11f7bbb07907c3b99 DIST kernel-aarch64-fedora.config.5.8.1 215181 BLAKE2B d29bdc80f90f8ff22f43439ec03c8f391ddeae8d299dd36cb4d4d51c7d37851900faef728a94eca069c08fbb22a8ef5c2bdfb2b850e4f669276d967cb47dc331 SHA512 99f9a4fa65082d09b38bd05021a9f7577b98eb8b101928ff7862139461f603484722ed19aefe34540da6aa15908abee99a5287c1594e45f0c12afa4663820fa0 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.7.16.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.7.16.ebuild new file mode 100644 index 000000000000..e9cdf12beca5 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.7.16.ebuild @@ -0,0 +1,92 @@ +# 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##*.} + 1 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.7.8 +CONFIG_HASH=14d239184a721485a823f30f5aede1c6190558ad + +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config + -> kernel-aarch64.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config + -> kernel-i686-fedora.config.${CONFIG_VER} + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="debug" +REQUIRED_USE=" + arm? ( savedconfig ) + arm64? ( savedconfig )" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" +BDEPEND=" + debug? ( dev-util/dwarves )" + +pkg_pretend() { + ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch" + ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." + + kernel-install_pkg_pretend +} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm) + return + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .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' + ) + use debug || config_tweaks+=( + -e '/CONFIG_DEBUG_INFO/d' + ) + sed -i "${config_tweaks[@]}" .config || die +} |