summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-27 14:14:46 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-27 16:16:12 +0200
commit5e9cc6a278560919f657e1ed91c8123b5842cc0b (patch)
tree339f55755b75d4199d5acfb0828075b0808125b3 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.8.4 (diff)
downloadgentoo-5e9cc6a278560919f657e1ed91c8123b5842cc0b.tar.gz
gentoo-5e9cc6a278560919f657e1ed91c8123b5842cc0b.tar.bz2
gentoo-5e9cc6a278560919f657e1ed91c8123b5842cc0b.zip
sys-kernel/gentoo-kernel: Bump to 5.8.4
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-5.8.4.ebuild92
2 files changed, 94 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 1c9dc157b03b..1eaad5fdd7b3 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.7-19.base.tar.xz 806520 BLAKE2B 1eba96a84e0a75a6dd53cbe24181ee
DIST genpatches-5.7-19.extras.tar.xz 1768 BLAKE2B 54af894e73664fd8a22ea400a908c6b4fe9f5d928374701c1bff9811ebc75aac22b5a5c72d59aad1ba41939a3544431d1a90e49049d099dd5ab67b0dceec4f90 SHA512 968dd48a5e033f94993f48f1a30b2b7647a5605fdbd77fcddf95b44eeb82629785c9dfee2d76a15010ed7250d9c30dcd5924e5e47c879406d10408bce38ec193
DIST genpatches-5.8-5.base.tar.xz 216176 BLAKE2B 8c57c2b91b6a395b490fedcee8e0f5ba8c7698903d0e1017fb66bb3d5ced1c6675fcd6e7ecc2405ccd237fd9ef4c641b10a0b4c32403c757ada5ccec3dbf0f26 SHA512 64bf8a331ba97a1d86159dff23c46c94c63f07158e66f9e86b02de6cc1a4476064fb6a924573c93fa117ea88bf6d6bb05f89c82c1883700af9fcdbbfaa5b72bc
DIST genpatches-5.8-5.extras.tar.xz 1768 BLAKE2B b49e51d13c594029950911a1c7689b13710b8102330a475edb774f967b6162a036cb830b3cc25187e0ee3ec577d607baae036d136111ae1c64b7bebf1f544fe0 SHA512 a3fa7af02966567b5a2f4caab584ae19d7a1b955d2c8e599355b1ee5f3aed8971c26ecca6ab453280ea7bd8c9c004b53045848934d121f52474046293a2f554d
+DIST genpatches-5.8-6.base.tar.xz 253496 BLAKE2B 691638688887676a60639683b75a51a281642bb7cdf51439dc2871a72e8e9fbd3121a93767ccd0f17e95627eba5876e3f119905c3fb93292b16393f3736d2a4c SHA512 352c4f32780e24e4e9721e3792377070806cc756dc68f3266ad3140f5508c303c52c6573736915dfc27f92501a5b56f0fcb25e76916f338e5e737bf75fbb939d
+DIST genpatches-5.8-6.extras.tar.xz 1768 BLAKE2B 0ce3cc9c79e236e98da9b799d3d82aaafadc33beb4e373ecaa9ac7c9e0c29a43706633b2d9708e3548914c1088140030b1905274ffff286eaf45d2d33991979b SHA512 f5705f850fb6b9b14f70193ec258041bfdab9c3a93122f9da5e6a92633a6b130568efcadde4aaa59fd90a18426689a40e0dc14e4df7cfcf460a502f565e6f47d
DIST kernel-aarch64-fedora.config.5.8.1 215181 BLAKE2B d29bdc80f90f8ff22f43439ec03c8f391ddeae8d299dd36cb4d4d51c7d37851900faef728a94eca069c08fbb22a8ef5c2bdfb2b850e4f669276d967cb47dc331 SHA512 99f9a4fa65082d09b38bd05021a9f7577b98eb8b101928ff7862139461f603484722ed19aefe34540da6aa15908abee99a5287c1594e45f0c12afa4663820fa0
DIST kernel-aarch64.config.5.4.21 199104 BLAKE2B 578ad451a76204df2a9bbbe34b5cb27051d2ac5e2c33967f562b01338c43f35da6dc33a4c2cc67ea6c3b32b155729360d3748ec28dcaa750f18449245b2e8a09 SHA512 66e9a437beb350fdc59512c17b8f72c5b5bfacf2b35070d810d77e66f49cf7929026cc28ad44b04a016d61e65d9fb4a10af6996ba09b604bf97e9c467d08f8ff
DIST kernel-aarch64.config.5.7.8 208443 BLAKE2B ca77401ee1abd8a2f34de28c32a7153434534a10335f29150c33a0b4fa9b52b161223f59a79e50d9e260014ea2f95e5a2066957060cbf3ca8e938b05957315a4 SHA512 7528c9ae989e9d6297c4d06c3555a06f6636f92ef02adbc03a8bb7173891cfaf52222faeeb1409112119221b08041147acde5d4fe3ab73175bd55d4406283f52
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.4.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.4.ebuild
new file mode 100644
index 000000000000..1fa0f526e32d
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.4.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##*.} + 2 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.8.1
+CONFIG_HASH=47a895f435cccb2cb14eb5d0c52d2f6d4d904907
+
+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-fedora.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-fedora.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
+}