summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-05-19 17:16:46 +0200
committerMichał Górny <mgorny@gentoo.org>2021-05-19 20:21:27 +0200
commit41db6713eb7cc2465b9490acc74b56823900a904 (patch)
tree8e026fb94d9bd4344f02639af7359b6d71671b9a
parentsys-kernel/vanilla-kernel: Bump to 5.10.38 (diff)
downloadgentoo-41db6713eb7cc2465b9490acc74b56823900a904.tar.gz
gentoo-41db6713eb7cc2465b9490acc74b56823900a904.tar.bz2
gentoo-41db6713eb7cc2465b9490acc74b56823900a904.zip
sys-kernel/gentoo-kernel: Bump to 5.10.38
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.10.38.ebuild90
2 files changed, 92 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 63b6be71d22a..369d0316ad2c 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.10-39.base.tar.xz 1213832 BLAKE2B 8fdae4f5c9665c8ec3f7fa4f202d
DIST genpatches-5.10-39.extras.tar.xz 1772 BLAKE2B 2551e576e899dfb659a5b0ef1851697462ffb9625882ee6d737abe1c41d0738ae25e94146bbd09de0f6d98b0f7754d0dc72d30367f94ab38d88bccbe60430b23 SHA512 c03e8ca3735c53af9fa84ff0148a02af5ff578a83198482bda8f2a67cf4ff501916a2dbf89b7d7bbfd3aa97b748eca56bf42e18c7394b980b52dd24f10875bdd
DIST genpatches-5.10-40.base.tar.xz 1346696 BLAKE2B 1e7ccb8b9ecbaabe1c325428fe2a40488dc93c97da51ec50941ddc71443b1b8014928742007d240bd963c3e54a0b7b936c8dce12215b08af11ff8918f908befa SHA512 8c62a5127614eff1740177f9b463d231b45b8e864f80bdcaa2a0973cdaccaa1b2b6be3a97b2659da5a83cca6a0dba43c8638549766823793f8ca06dc2fba564b
DIST genpatches-5.10-40.extras.tar.xz 1772 BLAKE2B 1695374f5c2951b763b9e2af67f47475c1de3b8038e5ff106cff4683e6430808490ea2ce19e4e8371c3d1b3e7433720bcbdbe8bbb7547a8002e06ab24ad9b908 SHA512 ee7eb2371e92a516b20ee984fcbeb20f67233d78eb74cbe4f6f8fdb856bdf7759b5a1b1beb6139a2125b157908bbc8eb538b4c7cf2a6011294cde296367201ec
+DIST genpatches-5.10-41.base.tar.xz 1421952 BLAKE2B 513d7aac0ee791d615fdaf336a29e677a6ef43411dc04e86173eec95322b3d01b658fdbde8dcd6bd9a195bc95a8f86e9d895d5825a4898d608a156a6cc26faec SHA512 8566ae1faf7812c52a29844365a0ef8f026b845a7a7e85a04a4ddb490cbb00748b6ddc843244aa1871abcc23c3dc9095d43cfa14efaee14b7d58564a87870d57
+DIST genpatches-5.10-41.extras.tar.xz 1768 BLAKE2B 70b1c510506b1df8ef210b10a203711d07d0b170bb40a4619cfcb99754f20fc14b648f1c2f4516f3baebf327706444d6d8e375bc3277c03b2f623c959c863791 SHA512 198db6b840eb22deb594e336a3c64bb32c13a12ad682b5d431d0365d276b6412ada9594c85d274ecfb20ee2bf2045bc60dc244edf7d0c8d0ac1f21ecab4f9748
DIST genpatches-5.11-22.base.tar.xz 684008 BLAKE2B bd081c8a40b4ebba531a93be0288e50ab526b5bb588ac3332757a3a20be15158557f31b6a0c82d616739192d73bd6507817cd403d04460ab955caddfb7ef764f SHA512 0a08fdf3f5f9e3ba8217d2e25820fb2da39a712eb919273465ad3500ba0c4359f0524b016e0d34c10d93bfc7acd20220c39f3aa71ba092f5ad328ff0c066229f
DIST genpatches-5.11-22.extras.tar.xz 1772 BLAKE2B d0cb5b3c5b27f9f7ad9049541d0e19f37198d29c1bc4cf2dc0f2644c7cb46638e6adac030ce033eae048ab10de4a9adf60c3791733fcc01b1e7e6e1bf63a027d SHA512 c91a0538702f83869c75140af61eda6b4e889007117549eacd0877007dd5136eae45aac72390418e1791101e8a4dc19440678b7912bb01677ba788c76239bc9c
DIST genpatches-5.11-23.base.tar.xz 780560 BLAKE2B 1a825e657879f0d6d6ec51c24ff52e844de9ed644f781057a7d901ae9e8a02f7b90ecee465f608502c0af510e58461b64a1f5125f5234272d6d79cd912fda828 SHA512 8c746072e5667ff35caf2bc44917a0016052cd8b8d67000f9a8ae666a75db4c42e2a5a8bbab8e7c6ec8cb85d0b71afc50aff7df88019ac3774f4b43527e6a88b
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.38.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.38.ebuild
new file mode 100644
index 000000000000..1ff510899e1b
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.38.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.32
+
+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/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[@]}"
+}