summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-03-25 20:01:32 +0100
committerMichał Górny <mgorny@gentoo.org>2021-03-25 20:09:39 +0100
commitb6640938aa1757feda25275e210b2d6783fda937 (patch)
treeed47adde56fa0e85670aeed0b459f6c7dcc7c97b
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.26 (diff)
downloadgentoo-b6640938aa1757feda25275e210b2d6783fda937.tar.gz
gentoo-b6640938aa1757feda25275e210b2d6783fda937.tar.bz2
gentoo-b6640938aa1757feda25275e210b2d6783fda937.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.11.10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.10.ebuild117
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 142420ae74e..5427567b34e 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.10-29.base.tar.xz 932392 BLAKE2B eff5249f3471134c5601aaabf1b47
DIST genpatches-5.10-29.extras.tar.xz 1772 BLAKE2B 30b3a5b57b99b046872907007fabffbed366cae11aebc2979129716be3c779ccfd87c6834f2e4b77dc1131c603ced8ffdd089c11264abc8b70d7590cdd191562 SHA512 ea9c1408543fa3b0a3a32ac11c7cd2591d7a5df73139b4ddff752b7a37963806fcea422f0cf23b8153b84e8dab1ed8169e51cce105c75c255d6ed91c03955a06
DIST genpatches-5.11-11.base.tar.xz 410528 BLAKE2B cdc71103e3cf40231cddb71f320c10cb2f948636fd48d1d1df66d6cd535b2f291f22a7da0db9b8fea40e64ad503abe4542506cd928409cf1ac0c8e0944a44435 SHA512 451628c197f3544438f41fd5a604d451981c4e352ea40a53b60492b6f1b57438281c00b0209064cd7a46b57a70ae307a2108549cebef8574955fe0b66d277fc9
DIST genpatches-5.11-11.extras.tar.xz 1772 BLAKE2B aa1f6397aae7927d1aac1d29e98d8535b6e8f7b2b6b2009594497b846946cb5dda2dd3dac69a1f29989b54aa2ef9e2879418145a525865179f32e7ab76987e66 SHA512 a72b4fb93e09919aadc9c1d306d3817135f3e4160e1b10f69367e3cb49b1502706dd9cd6e399945f946cbecf047d53f8100459acda04dce231890fe9fe212a08
+DIST genpatches-5.11-13.base.tar.xz 437712 BLAKE2B 3120f9e413b8bf9c0630a9d11eae4c77d0162f67e1b84f9a84b3ea9321ddda5ce2872d61d9451bc363ff23c3fe8bc409693ac903641ca4f1e42c405099b77fef SHA512 7c2488f2e5e857b50f5616f90f743df308686d5e671cb2186bc647ac74e79eb04550d7f6f1d12623d847cd168dcbaa431bbdf128e57863672b084addf8ac0c2d
+DIST genpatches-5.11-13.extras.tar.xz 1772 BLAKE2B 86e00dbb0dd3a48b83fc4c73d6c10f4dd0031bbb34a0f1b0e2cbc263ad6eadf55b32fff5e4c9bae5077101d90b2fb42758ad5517004a57661f2befdc745576ee SHA512 e8233834781ba3e6582ae26d8bef09490e755e9daca0396a8e94fe3dc65f49c399c422b1143a00eeb693b2f6885ade600d599c89165dba809b578d601aaedda1
DIST genpatches-5.11-3.base.tar.xz 11280 BLAKE2B 83a975b07b3e04e19b008e5a5c4f08fa551b3558b68afb800cb3c886f782a21950d5ea1029b631a6caa2658f02e7ae819e8d8c137a076470120d94deab99e524 SHA512 0a8b19f888af853e6a12aff9d6675f7a9977fef92efa19e69c79a6325fc1626efe7aa9fec8c42ee65ba29f0757b166567679a54d0351f19ea502183e92a63ac5
DIST genpatches-5.11-3.extras.tar.xz 1772 BLAKE2B 165d5928e6afc65544392186737efd1df9e1179591ef7edd85a1868971ea76016161a38a615e9e692c4515fe7fc19424a0cfd01420b5ec57a60c8d1d2d223cb7 SHA512 c74015c4e1b824c61db9e9deca6b30a839ae9a8fb5747cb6c46e2af99a9221f11bb971099554107bbfc58ea5389d96e810f9cf8e55d0bcc16a093eef941c6ec8
DIST genpatches-5.11-4.base.tar.xz 247120 BLAKE2B 64e8bb77aa399a797a9dd9726ba51a00ec43d850504680c52b9fe3ebc1277e1e2216a43719bd79b12e3267171f1031feab5adffc35bfffd87f91302b9f8714ee SHA512 9480fa377439c010f6aaae8c5ec6a512070cb30bb6171e31617dbb24ef54687d13bddf4768c5652d8e8c640d4c6b9c85fa0b434d8634d58154ee205db2c1cf28
@@ -66,6 +68,8 @@ DIST gentoo-kernel-5.10.24-1.arm64.xpak 59359560 BLAKE2B 2fb468b36a4886a3fd48420
DIST gentoo-kernel-5.10.24-1.x86.xpak 57056253 BLAKE2B 5925e7739cda2fd853d919a4681f28849afb9552acfd7cb91387828d6c7286ce9b1b32b93e55339311696e5bf62974a2a117c668221fca3ec062bf574569837f SHA512 395019c3a8d40eea18d92db2507386bd2202a8f13e25bb7a247724820a8f0ee854a05c6e999129556e894443b011928e80fa41612bef6a6c070035ecf11c749f
DIST gentoo-kernel-5.10.26-1.amd64.xpak 64108960 BLAKE2B 704436ea8e692dc3d646b8f8ff624b26e2074afb848114584c4d79a8b42c7daff79ee0ade653aff07d6e693074e2ebab54db6c4cd81804dec6a6664a003dd255 SHA512 4bc06b586f6ae2ced42e42fe117dfc0505263028b6338e283a55159afc3d0a8f7960f50b8305b939362e575d13ae85520fd83d2097aebb55ee8165e0ab16e27e
DIST gentoo-kernel-5.10.26-1.x86.xpak 57063604 BLAKE2B 51802d43ac1e7f8e36aa7aff4abc3a1d6924aa01f9210f5fdbfd0573b2c37ae2f9a57b7bb275af3bf51bc1846cf409667ec0b1b7659ac9de1f07811d8680b8c0 SHA512 0c6f362201e64f3e07b5dde92e518af613496009edbceea3973a42ecabb817a36053869fe37fdd96078b2ee2532c414239e15f7aabd335c607c421b5e8029ab2
+DIST gentoo-kernel-5.11.10-1.amd64.xpak 64501303 BLAKE2B d1bd941d62520fe0a2b7156a56ba43f2123ae758804c361d3953f88ed01079a8d9925770d9f3a7485326fce555824c31fd1ac1e646f8134565228c04e36c94e9 SHA512 b54e2f095933d34c795e4a3d239c77db09fa0392db89252775d4ce7b04fc4f0e1129a45ff65f5de352dfdcb7439659ec17893d9891be69ce127858ea112b0b38
+DIST gentoo-kernel-5.11.10-1.x86.xpak 57456795 BLAKE2B 8245a1da8c783456bcaff4a5ca2ded9ffadf03d2cf858a689ee9a5003ab495461f3640bd5ac9c16bdd5f7e7dda1dacb73b512e065b2c5c7038f5422ca9df599b SHA512 af4b8126200b45faa5173bbe325469e6c0f233ff70f2da476d059ef2f92f21d2e6931313fb6d43b4cf6c47570f54b305b47595067ca3fc083b98864959f5acf1
DIST gentoo-kernel-5.11.2-1.amd64.xpak 64830406 BLAKE2B f9c5d0591a175e497e3ff9f9c12e855e0c7db90aaf28fef5bbc695604c5745e13e3cd16001eb75216c55868497954a58738a7eca2314f077548650ae27b73620 SHA512 9a05cf8ce3218ac7e6b880624cbdc67d7fa221f0440f920de70f883a33978df08297184eeeb7a5b3c420da34ba7cb9ebc38f11c9a4979cf5d8a5c7a33e82b85a
DIST gentoo-kernel-5.11.2-1.arm64.xpak 59866719 BLAKE2B 5c8e59242ac3512488afbc1335845294f6ed6b5f7cf0674c4655689b4e93284b110295da479c14f3bd70111c5f652a2c7c641bd34b06f9d7b21bacdb3965b746 SHA512 978891967b1b2c59ca1d4e77bd7d622585532e39cdaceae087a72c6f72d57764cd9dcdcad918ddb1c2d92a42ddc9859baf532971a280cbbe7c4811acb7cc3f5c
DIST gentoo-kernel-5.11.2-1.x86.xpak 57784553 BLAKE2B 452b7e2bca5f9c83345b14f8a3e9ca54bd18e2b6f89e9d165ee3b59de8b8cd46411858a08d58546cde72180bf78c596f1ab3d595c2e5e818e2df9722101cf0b2 SHA512 9620e721c8c0e474db8861400b3109a2b26af68aafbe94975030a45f620e7f7ca5f9837d8dedfca6e97d5b4cf458ba76d34eee790268ddbcc4677d2b06e220df
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.10.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.10.ebuild
new file mode 100644
index 00000000000..6208453ad7c
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.10.ebuild
@@ -0,0 +1,117 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-install toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
+BINPKG=${P/-bin/}-1
+
+DESCRIPTION="Pre-built Linux kernel with genpatches"
+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
+ amd64? (
+ https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.amd64.xpak
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.x86.xpak
+ )"
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel:${SLOT}"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}"
+BDEPEND="
+ sys-devel/bc
+ sys-devel/flex
+ virtual/libelf
+ virtual/yacc"
+
+QA_PREBUILT='*'
+
+KV_LOCALVERSION='-gentoo-dist'
+KPV=${PV}${KV_LOCALVERSION}
+
+src_unpack() {
+ default
+ ebegin "Unpacking ${BINPKG}.${ARCH}.xpak"
+ tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.xpak")
+ eend ${?} || die "Unpacking ${BINPKG} failed"
+}
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ cd "${MY_P}" || die
+ default
+}
+
+src_configure() {
+ # force ld.bfd if we can find it easily
+ local LD="$(tc-getLD)"
+ if type -P "${LD}.bfd" &>/dev/null; then
+ LD+=.bfd
+ fi
+
+ tc-export_build_env
+ local makeargs=(
+ V=1
+
+ HOSTCC="$(tc-getBUILD_CC)"
+ HOSTCXX="$(tc-getBUILD_CXX)"
+ HOSTCFLAGS="${BUILD_CFLAGS}"
+ HOSTLDFLAGS="${BUILD_LDFLAGS}"
+
+ CROSS_COMPILE=${CHOST}-
+ AS="$(tc-getAS)"
+ CC="$(tc-getCC)"
+ LD="${LD}"
+ AR="$(tc-getAR)"
+ NM="$(tc-getNM)"
+ STRIP=":"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ OBJDUMP="$(tc-getOBJDUMP)"
+
+ # we need to pass it to override colliding Gentoo envvar
+ ARCH=$(tc-arch-kernel)
+
+ O="${WORKDIR}"/modprep
+ )
+
+ mkdir modprep || die
+ cp "usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "lib/modules/${KPV}"
+}
+
+src_install() {
+ mv lib usr "${ED}"/ || die
+
+ # strip out-of-source build stuffs from modprep
+ # and then copy built files
+ find modprep -type f '(' \
+ -name Makefile -o \
+ -name '*.[ao]' -o \
+ '(' -name '.*' -a -not -name '.config' ')' \
+ ')' -delete || die
+ rm modprep/source || die
+ cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
+}