summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.16.ebuild87
2 files changed, 89 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index c47e01385c7..edc640a1152 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -36,6 +36,8 @@ DIST genpatches-5.9-14.base.tar.xz 656112 BLAKE2B 5793eec0a89629823c027a92758bae
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-16.base.tar.xz 701048 BLAKE2B 930e4cc5ecb551df1f4734b953bc57e57920de11179830756057a8f02c424b6688fa8e0cdbcba7aa1215627559bf2f91343324ba384635e7b15766e8569bdf88 SHA512 e6e43a195f6f71b2b78328bd2e63898c3f42007fbac299ce1cc15c8f235353a34c0c22121500dc36e4374dc8bb6a9cbf93f8846e586950a321331d4feec7d120
+DIST genpatches-5.9-16.extras.tar.xz 1768 BLAKE2B 8438dd94c2b918eea3e6eaed63dbbdb4d2978b439c3150d57926417bf82e849237ff1f68b4c60d67c29f88fc93acdc3a4ac1f696e311b167ea3bd2757241e23e SHA512 0d7f2be1a89b84972aca9425e6bef89665c1399ceeb54b0f54d0643afea433c6ef35c4c64e9c23b972929ed6bd6181187016b6f915fc8f5cf3cc07881f5aef98
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.16.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.16.ebuild
new file mode 100644
index 00000000000..84710f3c16d
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.16.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[@]}"
+}