summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-04-07 23:14:12 +0200
committerMichał Górny <mgorny@gentoo.org>2021-04-07 23:17:34 +0200
commit69e8ad6a24d2b1d91c02fbae182db57810e98065 (patch)
tree78d2772cc3ba2d21d6f34eee81ccec81a7882a52 /sys-kernel/gentoo-kernel-bin
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.28 (diff)
downloadgentoo-69e8ad6a24d2b1d91c02fbae182db57810e98065.tar.gz
gentoo-69e8ad6a24d2b1d91c02fbae182db57810e98065.tar.bz2
gentoo-69e8ad6a24d2b1d91c02fbae182db57810e98065.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.11.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.12.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 ebedc9f5032d..8fc6d0ccb98e 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.11-13.base.tar.xz 437712 BLAKE2B 3120f9e413b8bf9c0630a9d11eae4
DIST genpatches-5.11-13.extras.tar.xz 1772 BLAKE2B 86e00dbb0dd3a48b83fc4c73d6c10f4dd0031bbb34a0f1b0e2cbc263ad6eadf55b32fff5e4c9bae5077101d90b2fb42758ad5517004a57661f2befdc745576ee SHA512 e8233834781ba3e6582ae26d8bef09490e755e9daca0396a8e94fe3dc65f49c399c422b1143a00eeb693b2f6885ade600d599c89165dba809b578d601aaedda1
DIST genpatches-5.11-14.base.tar.xz 512392 BLAKE2B 96c67f4b7029c2368e14e3b02dc45dbe4e72108cda692483b32f6e036bd27e82faef0a950e9ede69bdbd8152bc2f88d446eaf04055d135f654753074fffb1ec2 SHA512 6ec28a0c1084046ebb4d201a550866a202d6a2852f5ffc8e327861fd8e964a22ab0a565fd99277010fd2d6038fd0d81f2bd126faa78a351d97c7310dd30904bc
DIST genpatches-5.11-14.extras.tar.xz 1772 BLAKE2B 811235dc06b33befddfc22a9e018d1e5447fcf361f637e3a58de2c14fa5860fd8ce027db43892a332eb0ffa99311a357b170ba2bd37a7a4c4888307dd8cc6354 SHA512 0a8fc3dfa7efbbf393b1f2ae65f6cc4bd440a5e4bc6a36eaacb5ca25cba5a154fd19621124c025143da1ff499ef24463efd58437b76147fed1bee7e4ec1155e7
+DIST genpatches-5.11-15.base.tar.xz 556712 BLAKE2B 1ee9967fae0f563e6a7e5d37efc9ae7d9606fbdd2f8b7b455588a854ccf6a2c8b5c6c82d511bc8fc62b566b666c299106ade8a7be29615b8cbf61e67cace4d1f SHA512 d3efc1a42a5da295c732d7d022e6481d8045419f9d95fcf543b9ebd3f56f25d26629acf82d8027d635976fd869bf339bade23d7f1f0a55b364b3d2002a654c52
+DIST genpatches-5.11-15.extras.tar.xz 1772 BLAKE2B 235c443e234ee51740bdbe05f68bc62202b660e5742841450ea0aa231519dc11f1b6b2cf3bc5817d12dae04c419e20cc02c46b63b5c639b1fdea49fbe4efd2f1 SHA512 a463e77a352a54a4446eda32085dd5dcf295b1758952dbb4b18d7dadc2c17c6f528089369882e38350b1950bb3e405e3d59e59e55a1b4c1b2c0866e1a7e0f82d
DIST genpatches-5.11-6.base.tar.xz 294752 BLAKE2B 324b5e8647c47b3d876ebc500664af314c7288966d4b375858e66e3d71200ec6624ea7c1fdf348650e9a3780ec3b9058b8e4b2836d5f86ce15d65f3904a1a4ed SHA512 467bafdf407ad2752279935cf5de62de1e5db868efde563369ceb2dda73455a83c313dd60a6ef633fa13e60a69c538de833335b9d2c95ac2d8a63d48994c5958
DIST genpatches-5.11-6.extras.tar.xz 1768 BLAKE2B c9244edc9b61c2a190c72c93a33ea45144a788b9b331af3541c05fa200e706961471472fd586f5d6ea44c38858f62d65e4fad5424e27361ba27baa49e080b3be SHA512 db9e2da16874304103103f71f87799c4c7799ee87ea6343b0603d85cefb4ff41c49309025e4c74a870d88337caf0e478a73c8d3a755ae16760f9528c8ca77de7
DIST genpatches-5.11-7.base.tar.xz 309432 BLAKE2B 2ada3d18e2c5e55c56d00ce460083b1bcc0d4643f4ebc82a74acef6722c93c1585b9d4034692f5e332c39c0fa9a8661378e677710c5774c0a7e74bed0e0eec9f SHA512 87fa07527691a7b0c466db8625eb8892b8e7400af1f131265cb8e2e66e551f47a32d7cba9be6167d00e1f584de414bdb1409b504dad70e6139817999fb34a346
@@ -49,6 +51,8 @@ DIST gentoo-kernel-5.11.10-1.x86.xpak 57456795 BLAKE2B 8245a1da8c783456bcaff4a5c
DIST gentoo-kernel-5.11.11-1.amd64.xpak 64531577 BLAKE2B 2c7f94f0288b77f16c1b9770e5a31fd7c50dad7c9dbfb5728b348d19c2c8834a4df9f506de04ecc5729cbc5c39468e1afe69db2c8ecfa9d926d051bb4aa6f1a5 SHA512 a35e580c8aabff1f39f177a3c01ef61a53f7d0c5541585f444ead741718a6822074c5b8b29bf73ebb4c954baa4ee225a4d547707fe4d8f04007c390c4a05838b
DIST gentoo-kernel-5.11.11-1.arm64.xpak 59829994 BLAKE2B d12c066c27cab9480f9341b5fc1b4b58f439e0622b8b491ed78c56129becd8c858ea1278ee3a164d2de8ea7f9dfcb7265360478db92c22a8f5c28ed11f2bf3fb SHA512 ea076e166644984bb88209ff43ac566d21219e6a4f7d4cab8750ef22038822b50a3c98897f62d1761f33e4acedc0b680b31885bace70844387e68d780f94e775
DIST gentoo-kernel-5.11.11-1.x86.xpak 57470778 BLAKE2B abf3c054de67118de4adf50121ffef53ac206e7c439d6b4f71e2044573fbc8f42ece325c18c1f706c21d2e87472c3419e9195058ba8f4eb3e44ccd7fe8a443b7 SHA512 1b01790396650f6db68621e1febf2810835a03ce2f5a872b5f8d9e5f01cb6cce0bf5490e582c4aaa5aa953b6ac3a125a450c2911ab0080d20df59493366bbacc
+DIST gentoo-kernel-5.11.12-1.amd64.xpak 64702763 BLAKE2B 2e94dc30ef2ad0728db804b3f24febe8996868b4f137a34319650f93f848fa94070224e465f7d9b30c308a5e9de97ae9c0aed636075f7f11a53b59f2f071e0bd SHA512 f64db00ffc9eb29898017db60a4b7cdc628c5192ec92f2e7835918ee94e9279b45677b501a50205ceff36cdb59637a1894d346f062d5e403480fb151bea8e7e4
+DIST gentoo-kernel-5.11.12-1.x86.xpak 57631535 BLAKE2B 487b8298e9053061d18dd7e1d4e7a68f7ef9aee0762b48779d3c28ee5fc76a620941c449cb3aca38623f385e8aa2ca0a2992820b61a33bbb2233b4dec2ea49c8 SHA512 4afde6eb532978e59665b213280aa8cddabe440257f10c53357ef00a7ce576daf89e3a42b8e73278bd8a20561977e3c23b487ca13c165ac61aca1b4e1024f90d
DIST gentoo-kernel-5.11.5-1.amd64.xpak 64924579 BLAKE2B b4484bb69d8355f63acecadac5a604ab57f61ae87a4341cba16c6b3cdc35d19c64c6d8042fedc69aa1272c151d09ba5957b9b26f2a6ab067a46451fd0a928b9b SHA512 218d649adc456f13055e7ec7ce3de1ead2cfdcc41d6d5d023de67dcc7a21679154dfe057dcf72592ab7a7315a8cf1a4d7a96f7904c21f0f8e219f3a277dae21f
DIST gentoo-kernel-5.11.5-1.arm64.xpak 59869818 BLAKE2B 26d4431d1e9e3dd58f1d352ab872cf2749d64ae768a114d42cf1bf3ac342c9792dfa19ccd1bf502ea26ee99a0bb00e75783b2958726d5073d8f69c3f66e29a9c SHA512 ea64669b86cb1a3c86f92016f8a9838eabf1328c9a996084c8e8226b736d526b7d246f42d24ff9d07d2d0606cc0db914251b7007caa74080a482c0bcdd4a0bc6
DIST gentoo-kernel-5.11.5-1.x86.xpak 57891193 BLAKE2B f9f1eed75c7a81067994fe07a8305e5d70001c4ac969ae4d39d222960cf70c5fe5591db0a4e19fbaca9faa53e6dc1206158c0ad071cf3907761a61b00eedf098 SHA512 9494f10ae5a2ad3a0232e9eca5cb16647e4967f5ded3b45b5752f2e380b1c21437b9239d2fc7336cd84a246b488dc405e389c844263834a1feeea9257b2f8779
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.12.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.12.ebuild
new file mode 100644
index 000000000000..6208453ad7c9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.12.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
+}