diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-05 18:25:33 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-05 18:28:15 +0100 |
commit | c0c97141ed9d89609e9851f9696cfd0da6e1d2a9 (patch) | |
tree | 4ad72af168be3eebf214b9b98783a5bee78211e6 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.4.177 (diff) | |
download | gentoo-c0c97141ed9d89609e9851f9696cfd0da6e1d2a9.tar.gz gentoo-c0c97141ed9d89609e9851f9696cfd0da6e1d2a9.tar.bz2 gentoo-c0c97141ed9d89609e9851f9696cfd0da6e1d2a9.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.16.6
Signed-off-by: Michał Górny <mgorny@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.6.ebuild | 131 |
2 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 48e5cb0846c1..e9aaa44f18db 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -16,6 +16,8 @@ DIST genpatches-5.15-21.base.tar.xz 979868 BLAKE2B 217af3325d15020a43cc661746272 DIST genpatches-5.15-21.extras.tar.xz 3876 BLAKE2B 4c07b166a474bc11502de000f1bb00d8f0c25914a7877b2a94db844c694e0e7a4c757e8a10880eff40438b97214326ba50e716070d79ce1ef7f68c65d876da39 SHA512 384a2111655d8fd78a2f6165e99be0c74b36cf90333a465a4bb4cb6cda5ba32e1d435958987094a2d1407f02df7331ff2bd4fccace4f0a6ebe0c300692598f41 DIST genpatches-5.16-6.base.tar.xz 410464 BLAKE2B 19e5c3718dc8bd9b10f42b4448da16717f95da8a5ca33145bec2703c850ecfe4978144530823319bce945287642a44d368eef24448b45b12d28f5fe450325e99 SHA512 80c38fece09b566dbb65b02beeba3b895c41f18fec08ab9b09a6200450a88be8fb10c04dd80c88dadb13e3aff56f2e5983063cd2d852d9f1fd7ed92113e74887 DIST genpatches-5.16-6.extras.tar.xz 3800 BLAKE2B 43e9801bfd91b817bc56eeeecf9a86c77ef00c3899a13d78b022dc119c4130d2635fb801b1e638877b68bb17c2ce57edea5d14f8a93acc165c715dc0f5615173 SHA512 cb4570ee5ff2dee8a8e992c7f9d173e4b4c7a680cc8225a53ed9e16887d7ceee3ca7a461aed80bbdbd90dc236b26b1094ee6be207afe1bd15117dbb4025b9c9f +DIST genpatches-5.16-7.base.tar.xz 421780 BLAKE2B a4d43c5c598c6c263330acf21502866f0d6698e409b51f48c1690e98204e786d4ca8cca252dded8ea276124e9ee0598e912d42cc458ddf096239f3b97cbf392f SHA512 e76e4ffe549b2533f8c1674963a6fe22f70ef169f46ec13681efe896f1141b6a0341f942856a6ba934e2749589fa68512870e727e2fd411b7d2f5e4cb9b86594 +DIST genpatches-5.16-7.extras.tar.xz 3800 BLAKE2B 2ca7dd167d60ee036ae8a9fcc2258719c701cc2a64e8a62e150ce369f2d7ab4284148987f22cd6deedbdac8bfa9d72cda36c7dbfd5e353034c0d79601c923b78 SHA512 3fae1914f2d5cfe03a72d24abfeb5bdc2c0387f050fa0b50f15a20f26afbe4dc1b79bcd619451c858845a06221cb3226e5c026e554120828d133e1f9f126d586 DIST genpatches-5.4-177.base.tar.xz 4317444 BLAKE2B e7ad5f0a561dc50a11aa3720c3096230d8209c58a523da7f6f0fb1b0c8ed903780d74c48edc2791f8d8ba7fdc946ef0fc506d73ff3f86e9e2bfb4c05609d4456 SHA512 0e04707f1f5e85b53f425d54c74d9483d33280769d1cdd5122e34d19dfea1fcf0cf258d84579f3f169a1f620d9107a7d454970da313806c5edbad8a6d8632c9d DIST genpatches-5.4-177.extras.tar.xz 1784 BLAKE2B e840ca0c6b2dd9399ff4f0d03e828bbb42f53528e1c13b2825c5439cbccdc36577f029caccf91690857cd6e4901cebd98cc27e2ad2d0644c7503822563f38d0c SHA512 a17abf06bb76236986b9a86f671dc60544b39fc47736aca69359e6d68699a52a3e72b1a2ebd57f78602114e9d1f5a201f37121bd6917f50c9d06e385b194cb20 DIST genpatches-5.4-178.base.tar.xz 4382260 BLAKE2B f43573bed5925ddad264a150c6bf7e769771cbb89ec56c0c07f73375c19386ebd15b538b12b89c9e18ad3592b1be038288f8bc4e8ee4365fe92c118d81e3a5a7 SHA512 26fec31e23bb0758ec4a5c5542868795172d7717dcb1323cb9a930cb9b60c860cd033836d9ef80ab327a85656f4a70a46a597ffdb8e9ad27f7431d1bd1944b31 @@ -60,6 +62,10 @@ DIST gentoo-kernel-5.16.5-1.amd64.xpak 69620204 BLAKE2B 3a97499960be60fba4927ee1 DIST gentoo-kernel-5.16.5-1.arm64.xpak 65025315 BLAKE2B 17e0ab2a7047e968b06fb254926d55c7f52a019773393504e64d993a30804d918153eaa448aa60799a7fa667ac2dff493b5737f0be5b4ef703326fc2caf3916a SHA512 332fa02243573285c70644158b2fa44dd787bdaf445883107782cf17f30a72636c7039a8e96f6237ea7fde0a64e496d681ecba7fdea6c281ba1f9ecfabefec01 DIST gentoo-kernel-5.16.5-1.ppc64le.xpak 58365242 BLAKE2B 764b8fe708d33fb4680c7159b3a0963da59942b2ab94a01ab566cf429b887f087c76cb2fd7421ab7d6f94c0e93f63047d28c2b76014feb549ae9cc00f3c2f3ca SHA512 ae57f6a0470a7b89defed02307e68169c01f493ef230283619e9a0795b0788b4faa776880905e5880d967e3b78ea0a6d97947be485a1d53c573e5b9250649a50 DIST gentoo-kernel-5.16.5-1.x86.xpak 60415409 BLAKE2B 0c6e08ea8e49570e0152039d55335744d94b8019b130adb7dbd2686702b486cbf95ec3cb7d473d11c7d85a63a7803e1bdd4a4d47c63cc40fb2137cf788355690 SHA512 b3bece9c1ca1ba59447de53737aaf0d398d65157a765ae83b5961a2e11cdc9b25e6fe26388865bff0f464c94cd97192e2e3a36bdfcfbdd7a38af2601b6ac38d7 +DIST gentoo-kernel-5.16.6-1.amd64.xpak 69624468 BLAKE2B 8a7eb033a1203f340ecde8f57f2ae15e4f81c2173ba47c8df0cbab0360556c26c71b61808f7b2f5478f7fa114cdaaad4b0f1ab21757502bbad79662f390e6b05 SHA512 5946a2bc72e3d3cc2b97af50ba5e1045a716c6041dc060183ea59d0cda2139a3d66232c7980e905e5b4a3c8c1d44bf5993c0c24299fd1b34371777e6a3b477d9 +DIST gentoo-kernel-5.16.6-1.arm64.xpak 65030959 BLAKE2B 9d613748452217e7f8e5454f449deaac06e98878b993dd422b28363fcae2d93c48668f0372af0cec3417cbc55e3968002590c9a50db1f739b79eb647c5d91315 SHA512 9fb4c55a84ce8be3f835b391d47dc8ad0ed01597882e9968a42679d3dc64e29867ac673e31b28f6b647ad2e57902387f0ab8c2cd934dd56c7212cb7a6a897601 +DIST gentoo-kernel-5.16.6-1.ppc64le.xpak 58289427 BLAKE2B 5391a008fc4c2237a5c3f907ba48a568b000d2d6149e5c4fdd902f688c2d1d937a17cfb97045e4da620be786ed2bc577c171c3e967e460fc3e41fe9f32a04f25 SHA512 c06d3b4864512c0955cab6791b0406b2c0f913da98ca9650456c4403b415883fb1f3db856214847a92ddc5687648b6c08ab512916762ad61ece542f4dff28438 +DIST gentoo-kernel-5.16.6-1.x86.xpak 60458669 BLAKE2B ff4bdd9501ad0b2f07aa43512b5fa1e9e010fecd514f0ffd0a5cb16a180d68c6f47032cf8994e55fd0c35102a1ee767c641a1426fc294b22e6a55d0634adebe8 SHA512 6dba3cf0a349aa7560610f81c938f75b48aa4d6b42c02b8de60908154ead5654b10ac0535fcfad259ac67c8b5e5adac5e993c47307d71a051c08087bec03a9aa DIST gentoo-kernel-5.4.173-1.amd64.xpak 61491991 BLAKE2B 3f675236bf895b44d790d0d57f66398a6a887b2131c456b9d9919749d239d0eb64ad3f5455b55c5292aeb2345c651d32e86ddd06f4910df585b13c3eb2e4acdf SHA512 9365ba5ad810bdacdfa9f027f366dff44ee3ea293d7106d877229c485234fc76982cc046888c83cff699261129ba1a4aca2de15ccfbd86bae0b3d44e800b9bde DIST gentoo-kernel-5.4.173-1.arm64.xpak 57634871 BLAKE2B 2a8f8b5a9e5d7050ca931591f5d922ec34018784237fb678de9c4b365822b17eb85da9a3f4725dc36ba6550afa9720ece0c9c4ad29ad3ab475b7770f7e0d3cca SHA512 887e4bc46b2de5affd6cd318330774c9a4802053e21c4430bba205cadbd3c49083d63fb9685ddb82c24e93d55b3de8f43ebcf00d76b8a8966fd61170bc6a7459 DIST gentoo-kernel-5.4.173-1.ppc64le.xpak 54968644 BLAKE2B 3b23f23aa63b8bc0235cfb3e169a27f9226c8ccbf785361accf7906d3b1963cffbf71b5ad05146f9ba676daf8bc4ccb3d32f86c0d27ed8aa7b2fe1bd43836eaf SHA512 7312d2f633cc410d4af4fdc2706de3cd971bf012484bb226f1e47fbfec84b642293145be5d92c11f30485f38458ef81bc50147d393e1a145ebdbf0c602a55e9b diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.6.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.6.ebuild new file mode 100644 index 000000000000..80dbeaea0190 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.6.ebuild @@ -0,0 +1,131 @@ +# 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/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.amd64.xpak + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.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 ~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 +} |