summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-04-15 08:35:59 +0200
committerMichał Górny <mgorny@gentoo.org>2021-04-15 11:03:28 +0200
commit2dd9e0646911fb7a3e1cf7545f9ae92e5c9c58c5 (patch)
tree66a76209de448686bdd912f6054c6ec6a20aa555 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.10.30 (diff)
downloadgentoo-2dd9e0646911fb7a3e1cf7545f9ae92e5c9c58c5.tar.gz
gentoo-2dd9e0646911fb7a3e1cf7545f9ae92e5c9c58c5.tar.bz2
gentoo-2dd9e0646911fb7a3e1cf7545f9ae92e5c9c58c5.zip
sys-kernel/gentoo-kernel: Bump to 5.10.30
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.10.30.ebuild90
2 files changed, 92 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 0831ac792e9b..c24a881a3425 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.10-31.base.tar.xz 1031500 BLAKE2B fe484cfb72e01fc14720b118ade7
DIST genpatches-5.10-31.extras.tar.xz 1768 BLAKE2B b81ec73dbe1aa7da5ad15985b6a753db57095233f112ce323c291862ae85641dd9d8bfe4262dc7e4e6fea701369cbfbca1df213452627d79d0e7279e26f6e426 SHA512 a01e49ea3bfd689c23ee063d6f35ef7f8ea1dc67551d1443fbc2e7bc4c2e6cb265a153c881fdf87cb8a881bee911fbd815d7509167363fadbe9d158f74d84940
DIST genpatches-5.10-32.base.tar.xz 1038952 BLAKE2B 0414cd3c9ebb99fda1eb70204a83388d2f1439dfd0cadb2e08bfceb002a9ff34685329ea1108646cf08f8a1a1469165444baab72bede69724d2ae32f1b1c1f9c SHA512 6aa75e5481d038b8e2196c6841c88ad6f3801ceac0f5adec68e2f461d48ceaa9f6a964508adf4a8fc8720f46b71164ed5344b546677fe32f7c5e6f69dd30541d
DIST genpatches-5.10-32.extras.tar.xz 1768 BLAKE2B 3177bae554ac8e5ff49ef98fb594ebab849be1e2b639e22bc4412140f12cbe93177553a0ed404c176891a67314db3c468852237ad7f7b7fbaf8039263a51f483 SHA512 f13419f37e72f3eefdf2d3c18ae68060c45a5f561dc4e493e331566bf718d40cb89f1a30f88d6563c8d834b781d256977a383befc0b0b397008421010aad6ad7
+DIST genpatches-5.10-33.base.tar.xz 1088684 BLAKE2B a3d76185ce3e0cd6bc769ce500ddf041fd5b554ee4995b05f823e67adccbf94a6245e25c06df2a3440acad7f4fe577b62048f6e431c71defcb21e1a9ec9affc6 SHA512 119d69d2bee6944ac90bf882faf48402e311a084d43e6f89c6ec8bd43ae3701994f7dbb44170eb6f2d22b30a3c8560ae117892dee478d10818314c0f1ce82e5d
+DIST genpatches-5.10-33.extras.tar.xz 1772 BLAKE2B 92bf4a1dc1551b703096c0a54cbaa0dbf0ac1c012efebddb78671231e850b7e05162c48af81eee114b68495338562b04a67486fc9cf142ee82465489c332707a SHA512 f369685fdd2ca7a1d9385d8e304c1d1e9dffdeefa22b8ff0cd01bb4a258ba57b132e93caab59c72829419f0cb92fae9b06e0f6af638e87d8935a9e0a3ea6c2e4
DIST genpatches-5.11-12.base.tar.xz 437596 BLAKE2B 18203256f36ac4f0dcc959b362130902c38b5c0b3c0d6109b284e4eb15e02c8fa2bd1db2ab03e3efbace6b50a21a928434372684d14563ffb9e63fcc772e3b28 SHA512 64c06e53f8e03d27de6c6e9d7d9beca2ece09644bb7baa4b72b1942168e957ad7714dc3b25c7d8f300a23bc952b78e9e86914e3fe6f8ad5a307cbaeeffea1ae8
DIST genpatches-5.11-12.extras.tar.xz 1768 BLAKE2B b590414d965e422aeb00a1cf719f96133485b53941b15387d665affef08e7e67ff88380d667e2b95ad85abd0c2e3dd6ef67098e58d0536ec389823a38db18939 SHA512 f3af5e943766337eff397f94166eb173817a634c133938c596878d47b99a417bb8eec0c05fad9067914625dccdfbf1d39629bfba6ed5b82269ba468ccbcdfde0
DIST genpatches-5.11-13.base.tar.xz 437712 BLAKE2B 3120f9e413b8bf9c0630a9d11eae4c77d0162f67e1b84f9a84b3ea9321ddda5ce2872d61d9451bc363ff23c3fe8bc409693ac903641ca4f1e42c405099b77fef SHA512 7c2488f2e5e857b50f5616f90f743df308686d5e671cb2186bc647ac74e79eb04550d7f6f1d12623d847cd168dcbaa431bbdf128e57863672b084addf8ac0c2d
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.30.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.30.ebuild
new file mode 100644
index 000000000000..27047d612694
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.30.ebuild
@@ -0,0 +1,90 @@
+# Copyright 2020-2021 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##*.} + 3 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=5.10.18
+
+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
+ 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/gentoo-kernel-bin:${SLOT}"
+BDEPEND="
+ debug? ( dev-util/dwarves )"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}"
+
+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
+
+ echo 'CONFIG_LOCALVERSION="-gentoo-dist"' > "${T}"/version.config || die
+ local merge_configs=(
+ "${T}"/version.config
+ "${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[@]}"
+}