summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-12-19 13:55:56 +0100
committerMichał Górny <mgorny@gentoo.org>2020-12-19 16:32:03 +0100
commit88ee9d8c4b52d2a4a2cbb743fcc2b432d392666d (patch)
treea5e506bfe64fe71409f9bd11d63bcda1cc158c1f /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.9.15 (diff)
downloadgentoo-88ee9d8c4b52d2a4a2cbb743fcc2b432d392666d.tar.gz
gentoo-88ee9d8c4b52d2a4a2cbb743fcc2b432d392666d.tar.bz2
gentoo-88ee9d8c4b52d2a4a2cbb743fcc2b432d392666d.zip
sys-kernel/gentoo-kernel: Bump to 5.9.15
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.9.15.ebuild87
2 files changed, 89 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 2e1884bed8c..a6cbb52214c 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -32,6 +32,8 @@ DIST genpatches-5.9-13.base.tar.xz 638532 BLAKE2B 758f41192c8075719abe2ffb7756d3
DIST genpatches-5.9-13.extras.tar.xz 1768 BLAKE2B dc4a89f09c4a771f7b6011c3b5bd31dfc7a6254b09c48308eb8d3f13b21996e76b2893660e80a6f4a6116f06b3ba74834d8112d4eacd4b53a88a26ce1330dd52 SHA512 07d75cbbb25dd4d51cf3fbe24fe5c5e6430ffc3422c3335fc6916e18903922b8d22cd6d422c4bb38d233200d59971442b0ee64bdc27ecb257f9acb0124df6d3e
DIST genpatches-5.9-14.base.tar.xz 656112 BLAKE2B 5793eec0a89629823c027a92758bae2ef2b92cda058b313358f3487a8f51fcebc80a3a12e5c58bc1e8a98b299111fe22d18d5952382c0151e3f1b104d461b879 SHA512 a53e9edeb5d88685de2412adad6de6eda92f002851cc74ca6329bb63f63cde2f9e42272c1b583918586dd7858bd3bb0b8f252cb90e22713f25fbd55f376e1113
DIST genpatches-5.9-14.extras.tar.xz 1768 BLAKE2B a99628fbec37aabea2644b761ae4eeb81e2999d3cc9352c8d6575646762a74eeff14b3f9765b61baf4074523cab3f3cc693f07d0a4d06bc50ae13baee2fd86d2 SHA512 eaf3cdf93e8545d663408c14ccf13f38a13fe7e5f5582d63af766dca6cf398cc17395a813d71a0b7bb37a43685b70b1afab1d27ef49dbd20d1c62f6aaf9f28d6
+DIST genpatches-5.9-15.base.tar.xz 687008 BLAKE2B 825634d9d632670a57b992ad0d8bda3496629a9e977ae470cd5e25d628b673f0953b4ea8e326404d349bda2bb209c870517c8f6698428a12f788550248213fb6 SHA512 72d81a9d6bb9eb3801702ad7d63226c53e163886c52e2ac0ac8a240965746b256a3a24f9072ab115d1fbee27ed74de9014ca1e6db8780aab2c5ccf4ff8191306
+DIST genpatches-5.9-15.extras.tar.xz 1764 BLAKE2B 38e68dba925dbf3080a2ff51dde9d0b1766991a52cd1e06b50fa3d282a8fd93191db446551f3bba4c50c1e001801743e29edc2cad42a32f613fe46799fe24b76 SHA512 95f1147ca652f2ef0f206239723a47253b0854241adf7603a2f57cf0198e8eda682267782dd777bd0ef412d01ad771857009b08a6b42bff04e3dd27e5193bc3d
DIST genpatches-5.9-8.base.tar.xz 443192 BLAKE2B 48c79a97fe1201bab87ba601feac1e05ce12f2db155e53e0a543c7994ba8dfcac75b17e315929c0b68b8136913fdf93005690ccb260640ccc31527088beb326b SHA512 c365018bcfe84ff64a8171951fd4f97bb89044633df137926d22bedc738cd17ebe72c26800eaf30171c3495ce2b1bfdc93866112756bdd2207e6e184b5f1fb6f
DIST genpatches-5.9-8.extras.tar.xz 1768 BLAKE2B 96413f75c606fe4515d0facb8f0ca784702bb5d83591af87fb4bcf2b6c5e135eabcc55e0e84be9ecd3854ec108b8ed93cff11c41e7efba8c45aadefa291cacff SHA512 646efb1f6e0b9252b0220aa5922b0c0d8f093dba8edb7e40e127680c8a471aa49724f9591a3147925d7a4084af8d5e1cc5f78b0e72297072fd15bd13d1c93e40
DIST genpatches-5.9-9.base.tar.xz 513024 BLAKE2B de77ed5aa32336d44f0a299703ceaf290a6ec00ec8fe80f3ad6cf85d89374bdeb278c0fed143f7d7899e21146bfd6daadafbe2274ed10c3bc9170186015ba772 SHA512 d1c7640fc3510e8d47aa07b13c2876a14f510a30e74d53cbac2d6b564b3258698b833c028ed8e8694b8e4aaa31c899c7ae8023825e57e0b35e136f99e667185d
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.15.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.15.ebuild
new file mode 100644
index 00000000000..84710f3c16d
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.15.ebuild
@@ -0,0 +1,87 @@
+# 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##*.}
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.9.13
+CONFIG_HASH=b57160e20ddbe02624d2652e6836b0cb73044a4e
+GENTOO_CONFIG_VER=5.9.8-r1
+
+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
+ https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ 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}
+ )
+ ppc64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-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 ~ppc64 ~x86"
+IUSE="debug"
+REQUIRED_USE="arm? ( savedconfig )"
+
+RDEPEND="
+ !sys-kernel/vanilla-kernel:${SLOT}
+ !sys-kernel/vanilla-kernel-bin:${SLOT}"
+BDEPEND="
+ debug? ( dev-util/dwarves )"
+
+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
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local merge_configs=(
+ "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config
+ )
+ kernel-build_merge_configs "${merge_configs[@]}"
+}