diff options
author | Sam James <sam@gentoo.org> | 2022-03-10 21:08:35 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-10 21:11:00 +0000 |
commit | 1a42232e6c316a9c8d74d5ffe1f2f8f6ce1e065c (patch) | |
tree | cdb2260990ba3891c5f32c684278e642f3fb2340 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: add 5.15.27 (diff) | |
download | gentoo-1a42232e6c316a9c8d74d5ffe1f2f8f6ce1e065c.tar.gz gentoo-1a42232e6c316a9c8d74d5ffe1f2f8f6ce1e065c.tar.bz2 gentoo-1a42232e6c316a9c8d74d5ffe1f2f8f6ce1e065c.zip |
sys-kernel/gentoo-kernel-bin: add 5.16.13
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.13.ebuild | 135 |
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 9a3800a6c409..be0c72c9dd41 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -20,6 +20,8 @@ DIST genpatches-5.16-11.base.tar.xz 516420 BLAKE2B 3e3d1a7ed60355a6d0911742fe1fe DIST genpatches-5.16-11.extras.tar.xz 3796 BLAKE2B d4df94755fa8b69b345c6df4b9362d1b007c3ad420a6cfcbb9cea79da1e918db6944771cefae0985c63af5ada87f13de124aa96adbb80900a4fb5faab830685a SHA512 058a18c26fc651dacf9da50ad0eaf882f6760df29c37e8ddf2188151c4ec4131c094a04339c08bf54822e37c1b94e1d2c87b4cca7ed4b84d75bc19f80ebea784 DIST genpatches-5.16-12.base.tar.xz 589172 BLAKE2B 97e255628a387adc723a6f9bd5430860b1b9beeee2e7cf7a3106ef7219bf7d9ecce1b640181c277b725ee967846e7531bd9e0be1310ab63a43eb321b9dacd402 SHA512 7d298161666cae130bfd21fa1279245048cf59d78b9f237c063e0f3d4de47584736ea02267e96a948169c7c91b8b4d2b699136765b8a3118fdbd77cfb20192ad DIST genpatches-5.16-12.extras.tar.xz 3800 BLAKE2B d9c10bc2a613a2bb665c5c9f5cdb3be1383762f366066f65921fa2e52a8de492493a13ddec71d18925a90450c17f1ec185e7e19adf3400420723894dcd8e576d SHA512 2be8582426c64d37916ce072cfa6f30310628dff165c7d292be94be4a7124ce39c2a6ea6370ca0190aea0f0841693ba57cb9109c9340e50a4cbfca835a498670 +DIST genpatches-5.16-14.base.tar.xz 685420 BLAKE2B 2d2152d6bd21f08de875946418c528aba0a319cf1a8cf13d8db56755c86482f0377c751a75123be1b955795163ee488a5d4faefde80025124fbb06dfbc6b8a24 SHA512 2bb3d401571d423f7028845063bb98590a0588c7da91a97d4b7ad77e0a20dd30af691fea1d54e4f8f987205072d558890cdb212b55688e32fb135aea10b6c047 +DIST genpatches-5.16-14.extras.tar.xz 3804 BLAKE2B a455d4e9617f4cc34381c48d1aa7a6517fc398e5fd1a311d9938467c4033a51e8e7ee3af040c930fffee667910e6708ef2a2fd336ef88da29683c2ee19a77434 SHA512 469373191455c88169d7fe31deb63df07e0f65ab8676e3899e803f5d83d180b9cacae193eec642bcb01162d2fa4b1daac62835ca1b6a0fd738bc80818c33f5fd DIST genpatches-5.4-183.base.tar.xz 4413940 BLAKE2B 2f71eaa7ceeb4e1940c329a47ff05e80970a45db81b69ed5d68767a26351b7cab4f090934bff6bf1cd7efbe6688e2eecc50c9db95e6070844d44bdfe8c59102d SHA512 3a077767398efaf020af82ca249b11d2df9ad0a254f5c76d9c88ff4a588ec9ee2cbf2fa1dfd0afc5b2e78f9db8b0cc2f8bc37681b056313cdbf27564744fe358 DIST genpatches-5.4-183.extras.tar.xz 1812 BLAKE2B 6755576f737a247e0a09a3eb19886c09fbf2495a50c1af2f70df08b00a62247f83b904ae8d2d98dbbae528830853d87639304eb17b5a336c324d982a41cee0c1 SHA512 603e76667384e94dc0e8795ce6cb9b2966b81d6f3dc8fbba71ab84c20857bc31e5cf15ced293ae03eabd5ce3b0147cc39b59382733f284241d018fb0d5b8319a DIST genpatches-5.4-184.base.tar.xz 4427792 BLAKE2B b8f4a7219641518d8435dd8c4b99c33157a3a937edd307da40d5c4fd80873e3fb66003f370310a221df28fc25f3203176a1ce55b4c5da0899034c4f3617c98f3 SHA512 7b611a3ae72349dc2d708d06cf0de7522978bcc8f09d98271efbb9c3b8afa1c1e33ed18036655c9ffc0c38d6bd7fb665a7116f01c98f9fb04cd994372e30d3c5 @@ -68,6 +70,10 @@ DIST gentoo-kernel-5.16.11-1.amd64.xpak 69656106 BLAKE2B 6a5bb52911519b55637cc67 DIST gentoo-kernel-5.16.11-1.arm64.xpak 65052669 BLAKE2B 7f7381a36f83a58715e25e5f1d7da03389dd00f3107917edb0a00c93a04b5e97dcf00b429cc4843cb20c40dd31e913248c0ff7b6b6ecbc84297d5aafb371a2fe SHA512 517db53a831cc91e7bd354a07adc8b8b851769b723867087b1b03a5f55701835b2634f6e32354157bcf8f84ceffa21e0898411766f89019f68de379d4f1301f9 DIST gentoo-kernel-5.16.11-1.ppc64le.xpak 58347500 BLAKE2B e6f51bce51607bf68957f7e4437111f9bc6eedb34957071c97c8967e772b962d860a82dc422b743bffb7064db4d4890ee95e18526ea73b9e32cb133ce4984ec9 SHA512 c7a29265a45ce3f44f0fb2062923a82b86b9d1eb2a66fe4325e70671fcdc9f0f545beab0b63e0cd784baddd438fc06e7d2584e1817a03a190597fb467f8098ea DIST gentoo-kernel-5.16.11-1.x86.xpak 60481730 BLAKE2B 219acf68599b6623159568c74160c64d5712e4c0510202505d3c296e288b8a9d3bf5901768c822ad4c5da9f0e159c78d5c781c6a09061b35216fd11f711fd436 SHA512 d8bc53140672f40c246211a45f98436fdba9a8f45dc8b759babd348df72410ecd2b8395ca45b9cee10b4a59fd1068eff599abd7a75eff021ed4ad4d62a5d314e +DIST gentoo-kernel-5.16.13-1.amd64.xpak 69743369 BLAKE2B adb7af8414062ae656bfdc96d4a513fa0158f66f4a5dc5375d1034fe0e0609ab4e0456a0514dde66e4763443ab657b53bdddadcd232d9db3906334d27754bcce SHA512 2870708e7871a06611b870bfeb12ce9c284330cb4f2aa1c92ae85faa9c0d345021c01f8eff15b7f880ebf495e867042f7b0699d45be82cb64a52e55450791235 +DIST gentoo-kernel-5.16.13-1.arm64.xpak 65065112 BLAKE2B 44ab246c56db831cb531a792cb6a2e121348a6cb7a4ad6493a16877bb9c1c86e3c26bb4aba826b3c2df9a060ca8e050876507d7e2c21911c028c0c1d78e2659d SHA512 8cfc71317ca422f098bb3f13b5bced07c9459945b578afaa1daaa7603a9b634f5f73a067b06e1611d67dec6b4a3f214130c5eb4622f1b845a29f2f0fcfb46dbe +DIST gentoo-kernel-5.16.13-1.ppc64le.xpak 58432073 BLAKE2B 6bd598e82f7cbabd9bc007c0768951a68bed2fd23ac916fa6e276eaa5124f051388eb6370308e9ebda1edb51869e380122b4d0bef90bf5d6e659dee827e333af SHA512 1d021b4f7207c10846f86cfde191a33127812c22b562fd7d12f0ac3eb5ae501fb950ec0503b2ed748ae619af3d227a4c74ccc45859446e6e5fdf5b44bd256743 +DIST gentoo-kernel-5.16.13-1.x86.xpak 60562165 BLAKE2B c29cc6538b51ccc4ffb3ef3addf71f4ca6159e573282a789a8e1c26441440ecb2cbd9dde9a221212d4ef12edc9f01358e543e2a3a12560c1df8fb6e50b66c120 SHA512 bb0cb5256ffdc5b43d4dbb0956d7e3d98e778998875be1af9acd9b20c754b8c6e4d2654c1729c5ace1ca05a7e8905b60237e04ed48bf074d8a42e79bfb36434b DIST gentoo-kernel-5.16.9-1.amd64.xpak 69587638 BLAKE2B c3c64f69bcf14024c1debfad7ddbec3e861cd7d32bed05f6a0bc63644e4806ffb26cec5cc43564d6130f2d7c9a0467c42d4a06608d9674a6dadaaa33ccc3209d SHA512 ccc47c9c2536f8e6cdb0f5514440a0ce802abeeb5078d5d52a18600589f93c4edadb6b1289ece254583c4c466fa6ebfbd10285109557d6f5857d795a825a00f7 DIST gentoo-kernel-5.16.9-1.arm64.xpak 65024601 BLAKE2B 8cf58f17664b16c0726be9e611ba1f0cd64375e8f4e54f3fe42116b859eba14d737336a614a81c1a38df9b8643db0beda911aa9790cbc1edf6f39ca265a82e6d SHA512 705791b799817d57f4fa2f9bf260cb6d5ee7f1fefd2da70aabaeb21c32d50441a8ebcf4b96ba782483a10dcf9b972b0ba353f56fe039d5e94da4dfd83f63c260 DIST gentoo-kernel-5.16.9-1.ppc64le.xpak 58369723 BLAKE2B b72b45cc1b2c7d256250a4374cae4dda86ea224b769636c98788635667ace0e087e178d7ddefacd84d8a77dfaae94355fd8b86872aafb72e101af88fc83dbaba SHA512 829711437626b8d2f2b5b692eb63016137c2bfc887d086c6c8d0e4679dbd1056254944baae12bded0562317796702796a328ff301f5ff2e2692a90e41144752e diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.13.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.13.ebuild new file mode 100644 index 000000000000..47d85701bddc --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.13.ebuild @@ -0,0 +1,135 @@ +# Copyright 2020-2022 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##*.} + 1 )) +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/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://dev.gentoo.org/~sam/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.amd64.xpak + ) + arm64? ( + https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~sam/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.xpak + ) + x86? ( + https://dev.gentoo.org/~sam/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.x86.xpak + ) +" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~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 + # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg. + ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.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 + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv boot "${ED}"/ || die + fi + + # 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 +} |