summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-03 17:27:10 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-03 20:52:33 +0200
commit664663d75c76da9a3da9583dfc7fdd24d8b6f7a2 (patch)
treea0350776621a280a07999038a878ad333e8f916f
parentsys-kernel/vanilla-kernel: Bump to 5.12.9 (diff)
downloadgentoo-664663d75c76da9a3da9583dfc7fdd24d8b6f7a2.tar.gz
gentoo-664663d75c76da9a3da9583dfc7fdd24d8b6f7a2.tar.bz2
gentoo-664663d75c76da9a3da9583dfc7fdd24d8b6f7a2.zip
sys-kernel/gentoo-kernel: Bump to 5.12.9
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.12.9.ebuild90
2 files changed, 92 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 7e5dcf87299a..9d93168d3bf2 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -10,6 +10,8 @@ DIST genpatches-5.10-44.base.tar.xz 1463796 BLAKE2B b4e002718b2542c1806eb89cd552
DIST genpatches-5.10-44.extras.tar.xz 1768 BLAKE2B 287454aae7ff60ac375b570e5132c33f81471348af58b999ca1355d15e7fd1f0839c369e28e18496dd0f9a43d6bbaed03318a9358a5b9384c3f27c109f7447e5 SHA512 d69a0a32dbd79eafe4168bccf55c0b0765e5311bd2f81ef93ce4f709990b6a789eb057b2afac7364b18e5f811b9610e7d8e10efff07a6e396c8e897b76a50378
DIST genpatches-5.11-25.base.tar.xz 1030312 BLAKE2B c3e0f5840c32292d36be31a8606934bfa1ccb7e31f04cd214574009577907d00912bacce1f85dddeda77ba99f40f61fa5aa5259a693c74abd63a05be5a44f2aa SHA512 5adbe3770562b57d7180a44ccca8e665cc5b0d9ba5168c4b3555b348708edd7469464bd770124d9a8641095bdbe786d843ae3da64b845d577999c9e40360c970
DIST genpatches-5.11-25.extras.tar.xz 1772 BLAKE2B 0bd2afbd93cd7553c8e058f61c515ed9d47e9f328529e6cf36a7100b363dc8e4c3004afa06a0c0b95963bcf69a216ae6a7bf595062401725a4a25f942f44a3e8 SHA512 114094a87bad0dc4a265847fa18b88a2795daf151de8451bb4fbe4af70f3f4bcff8905d8d90522f85914bb7ba7227ebab7f69ab59112afb2187332b393450fec
+DIST genpatches-5.12-10.base.tar.xz 564792 BLAKE2B 127e64196c8aa0b65dab7de4dad4b97052c53451f27a1948453d8910afd59b3a5c4ffc316a439bd053b433b057df127bb252d994f6447a82dc1434eb317e0d1f SHA512 e4c9eebb61de9af0fa4a53472c18f39f87196a804c63ff796eff992f75450719400e7bed5cd8ddce6b09db8330be443ddb2ce0241d8058aedcdb5e332a4178eb
+DIST genpatches-5.12-10.extras.tar.xz 1772 BLAKE2B 31e3959f1dab1ae1ff5f39b75c455e559e96bd4527e94677494accfa75fd14df2667ecea8ba5df59d3fa1ec9464ba18a257a8a5e76c0602049732f66829785ad SHA512 6e2bf6f7eada61ece1f65d1461377ba5532dd45b57b58b7ee6dae9485809d4c329c6ba8d6d0d0ee9027612a01946f756069b50c44d60d2f543e9864231abd676
DIST genpatches-5.12-7.base.tar.xz 447756 BLAKE2B c7d1f923bf45adba7a60ae56eab5e6ac3e132f6fc9186da1bc10d48c19dbf7ab39fc07cbb93112b39b13fa921223b1f6aedb28e2d053600b7787a2bc2b55defc SHA512 ee12bac503ec5ff48d918240b5e16c03df01378d572421d648863d82db8c89a79316d1c0339b6156cc5c1a0de64cf20e81b2900fd23b96f0c274a171e90aa279
DIST genpatches-5.12-7.extras.tar.xz 1772 BLAKE2B 3f593739f9330a6dab17be9307c163d6ca4e39e821d79db2b6a3f88b3af8c973c713be26ebd11d155d18336f9613fa5b0c9c44e43c0674bfc4f9e0c5d7519874 SHA512 e273b619d284246670381a6a6bc5f9835a6ed7023bfae14b31783242ce504d6909a5dfb47e6a5cb5d81cb499fb897daaeb8e5d0306359a47ba22e0818d499d25
DIST genpatches-5.12-8.base.tar.xz 486256 BLAKE2B 55607b8e42132706dd6d5b2716ec252fdae5b7b2d0e4c7874aa4d9f558172f207d7597eb77030651a5c490b86eedeaf1174e9908277e989e06a4cc048b1ceecd SHA512 3651b48fd077624d7e9b9471bddfa3ed0b5d4656374b73b92192de26925a12b3c4923dba9764ff12c1fad94047b404c61f23cd2eb4d4383775eaaa0ded3e7907
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.12.9.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.12.9.ebuild
new file mode 100644
index 000000000000..ca7cf2b59bdd
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.12.9.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##*.} + 1 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.12.5
+CONFIG_HASH=17639df044f5f81bbf267f566426eae4a5187875
+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/~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/pahole )"
+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[@]}"
+}