summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-21 18:47:22 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-22 14:16:58 +0200
commit679bf9f955b961aa082695df5aa4cf49724d4b33 (patch)
treea975d463a9541ab4c3e06a3c2df069f58f4513d0 /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.8.3 (diff)
downloadgentoo-679bf9f955b961aa082695df5aa4cf49724d4b33.tar.gz
gentoo-679bf9f955b961aa082695df5aa4cf49724d4b33.tar.bz2
gentoo-679bf9f955b961aa082695df5aa4cf49724d4b33.zip
sys-kernel/gentoo-kernel: Bump to 5.8.3
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-5.8.3.ebuild92
2 files changed, 94 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 30db84c0fbb8..48679b6293d3 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -30,6 +30,8 @@ DIST genpatches-5.8-3.base.tar.xz 17408 BLAKE2B bfc58558204cedcad1fa9cfd169ea215
DIST genpatches-5.8-3.extras.tar.xz 1764 BLAKE2B 69fdcc9611225cbfc37820038eb3591497b859f81ac52cf5c80c330389eb32aaea7dde31f15268dd71e5b09dcfba67a58e80c41dbb6f04b03ee07840ceeb0388 SHA512 2aad14d765210d56f9a61ca8d26a08d6fdb43551925cab58c801ff9c0b63ecf85db1d79a9d213db0a0b9c3c6166da8726d10055d8fa689b11f7bbb07907c3b99
DIST genpatches-5.8-4.base.tar.xz 150672 BLAKE2B cc4020c1d197752cf131ce2b9c7a4de0c18bf9ad010bf157c5b4cec738eb22c141b4273e10708c90f4a792946ba7898af392e8e7331f770c6cb0b169cfe28494 SHA512 48df4ac913e29d98162c16622f3d4417f147984901422181a73781293dd67313e9fbdf4041b30a82bcf81fab77b9bc0b65a5303b1acb395bb9ffa8b50ec3441b
DIST genpatches-5.8-4.extras.tar.xz 1768 BLAKE2B b539161012dd917b79e7ad46cfef7079cd313212fb3c6a89054c9c783dc23aee6ad117b5145053be2b1dd4fe28922c14c3fdeadb695548603b8481f3b886cd73 SHA512 707fb0327c651560cb6738f2cc6ec1930947aedec3ff1a154513152ffd6b7f3ca9192a9ef206d537101ed4f4235d969e0ac4868a803456f98af897fdee87b5cd
+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 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.3.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.3.ebuild
new file mode 100644
index 000000000000..1fa0f526e32d
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.3.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
+}