summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-05-28 19:35:46 +0200
committerMichał Górny <mgorny@gentoo.org>2021-05-28 23:48:22 +0200
commit1a6738d74aebb3d7b60e6bb8efdd1f54064871cd (patch)
tree35574e733ab1a139e5f6402a4683019bb17534aa /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.10.41 (diff)
downloadgentoo-1a6738d74aebb3d7b60e6bb8efdd1f54064871cd.tar.gz
gentoo-1a6738d74aebb3d7b60e6bb8efdd1f54064871cd.tar.bz2
gentoo-1a6738d74aebb3d7b60e6bb8efdd1f54064871cd.zip
sys-kernel/gentoo-kernel: Bump to 5.10.41
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.41.ebuild90
2 files changed, 92 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 435fa54770c9..9c1069923d92 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.10-42.base.tar.xz 1435860 BLAKE2B b94289861c81107745f259905e2e
DIST genpatches-5.10-42.extras.tar.xz 1772 BLAKE2B f53190eced945d803d029a643a27d33f56836be87fb7809a102a8e9ddaa9355d2dd49ec24e833b234f4069127a8c3bba98cec956e7126cc33bb2973086554449 SHA512 c8e32721135178c3c99323f02c97591206192880f77c751473f4094fccc01f7a3bb4ccf4d8dff82f8d1a535b2845449e7dd381590c4fc8b0adf75f212fd336a4
DIST genpatches-5.10-43.base.tar.xz 1461848 BLAKE2B fb1bf2fe69c6698cdbd3458950109dcfd534b31fe22a51019514b619d119bd26b36ba1697164044d5b2dbbe3c3f8e72b076b87dd32ce59866932d9ee67bee591 SHA512 9bf520ec729d96f4f8dfa0d8f30cf12abe87d3f4278120afcc152c8c995662ee081d419a3b29bbc85c5e4a7b23cda1ec1b372c46058319bdd06a9b475f3d84d0
DIST genpatches-5.10-43.extras.tar.xz 1772 BLAKE2B 1c2c2ec1b7a2814572b464a02e582821bb04c143524dd98ccdb330463230e1370167b8fdcf269d137f4087d21b60ba07dc72c5da2d47f8dafbb1a9598611b804 SHA512 e8085e8d9c5a82d9d8b10d2212577fc3878beaad4e52f145bd5490b3e7f440762f95ecb7a2266eb99a91ce7d98fbf48f241eba86329aa35a1d9103733e7195a1
+DIST genpatches-5.10-44.base.tar.xz 1463796 BLAKE2B b4e002718b2542c1806eb89cd552f11e3ed9b3a2c2e531c590d05d8796bd6a462457c1afebf1794e10dd2419c45102acb7d4e371055b1ae750a959bb3720ab96 SHA512 4e0d54ddc9a43427c418a9c0891b8dd02088a9b75ca011328401af994c54a5fc5498db228f3ecd6aa752afd058483f460e86fbe4393c24815974300108e7324c
+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-7.base.tar.xz 447756 BLAKE2B c7d1f923bf45adba7a60ae56eab5e6ac3e132f6fc9186da1bc10d48c19dbf7ab39fc07cbb93112b39b13fa921223b1f6aedb28e2d053600b7787a2bc2b55defc SHA512 ee12bac503ec5ff48d918240b5e16c03df01378d572421d648863d82db8c89a79316d1c0339b6156cc5c1a0de64cf20e81b2900fd23b96f0c274a171e90aa279
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.41.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.41.ebuild
new file mode 100644
index 000000000000..df03fd98225a
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.41.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/~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[@]}"
+}