diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-11 17:50:59 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-11 17:57:07 +0100 |
commit | 994f28664abdfb68248eaed547961307f41e4e7b (patch) | |
tree | ac86e9fece38a1c303c66e2a7e0e62a498260ac8 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.4.179 (diff) | |
download | gentoo-994f28664abdfb68248eaed547961307f41e4e7b.tar.gz gentoo-994f28664abdfb68248eaed547961307f41e4e7b.tar.bz2 gentoo-994f28664abdfb68248eaed547961307f41e4e7b.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.16.9
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.9.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 65495283dbeb..3633467c9f9a 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.15-23.base.tar.xz 986960 BLAKE2B 8c64fb7038c358c4249af8d9274bf DIST genpatches-5.15-23.extras.tar.xz 3876 BLAKE2B d41bee55c7c742a138bacfb45459f6449a80521b6857fdc55f675cf2434102176c493b9239ba73ab2d07df3062d995f9cfa76a168ad4913e5623453496519464 SHA512 3171e72c60211f2c331959851d85954ad94c947884408934375a4b495fe82c35f66c7408e6b3edff18ceb6888819c9f64b13a8b7c9433c80c802cf0316bf222e DIST genpatches-5.15-24.base.tar.xz 1017424 BLAKE2B 97132a2c8902493e4ce76861880f580ee6b37f4cd3facd1296a3d7b207c7a7ba014bb3903465e16e8cae3cfa6341f15aedccd0a72eb8017320ca91b5b7d4ac63 SHA512 b88f25da20d309e16c13adca272114237f1082d2272631d960e1b5ec54e8675b1f3c32725e336556b6d23748e8da9668989cbdb5ad9d0e0ad1253f442de92891 DIST genpatches-5.15-24.extras.tar.xz 3876 BLAKE2B daa2d5da1a55e035909da862f247e79e67ca6d514aec1b7aa4862f3f88508a0a6b1efa5dc21c70b8f79ca29cd88d7b7012ea380dd0a56931b82065ba4358c81c SHA512 9cee406769c914080f8e68c42441c8235767f9247d9b5222dee661df6570923872022076d174f9d5dad2bf2b4f2871d266bc907e35c0b7f423a9322d9fa096d7 +DIST genpatches-5.16-10.base.tar.xz 464508 BLAKE2B d590a7041f6309674e8000c735a232bb2f70d872863e4122fa5a8cc8bc0e68b641685b4bfb10c81d286124084eba2f6815e9d650978b52fa2fff70508ee361bd SHA512 cb591c67a3253b35d2d8dcbd229231507d28cbf2c1dbc2f734ba7e0fbfbeba6ca400f99bee6c9b94c90fad5facc9ee46c85fa4178087865d2e942a0717878a60 +DIST genpatches-5.16-10.extras.tar.xz 3800 BLAKE2B 79c288854d58ee20f8377be8bb15ecdca30b27fbfbbe314c2db7260576036258202f620d2ea2c2a6725fca1fe68fa1a158b207d36ae13630b3116397c3868cc4 SHA512 34069ffcf17636489af7d6df3e322926f566f43396297867c2b1a512fa884062bf86d50675c313ff29ed68f6fdb9039748fcd14c9395e29e9beeb166f45eb25d 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 @@ -67,6 +69,10 @@ DIST gentoo-kernel-5.16.8-1.amd64.xpak 69607769 BLAKE2B c07bd383579a2b42ff9328af DIST gentoo-kernel-5.16.8-1.arm64.xpak 65032402 BLAKE2B 12d8752da9565dfca231c6ba779f5d71315e22569d9d8e31239853721712294875d0acdc27abd54eb432c5bd9630fe826e155565fa848bc06b602dfe365c10c9 SHA512 7d6a84a1ce25c475a3f84a7bb0a27d731c4643a8e29c2db8dc7ba1190396e5c0761c04a777693ea1f08209e7f050a8f45bb6ae6ea8268c7d7c615182ae3f03ce DIST gentoo-kernel-5.16.8-1.ppc64le.xpak 58279067 BLAKE2B b9d974d285b90ae52df1ecedb17a09e5276c8b0c86dbb6a31fe93a067fbb44eff0b1adb8c121cac8c6f6d024d3aaf87444ab4f58dfe5f6e787019fdff5f5f28f SHA512 d61da13bae2840e71e07276b89962ba84fb15ac81e4cb4977d283ff5199fe64d73aa060cdb0bdeec458837bc7b4998bd39685b9970db63188fba91b73143b9a1 DIST gentoo-kernel-5.16.8-1.x86.xpak 60403377 BLAKE2B 939d434369ec49fd90b4f8c6af4297a5f678474987e75d3d730291608a8aee835e9dddadcd5e585f1ed188f2d13515686637a8541403c33d5a889583d18f97ab SHA512 8dd315f6ee472e70c735719f95d40248d62ccae2e2226fd1b8a818474a240aa3ee1c3ea8a679803d528cf53b1a74eea5d0b679322791b8b9394a7b3126e27bbb +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 +DIST gentoo-kernel-5.16.9-1.x86.xpak 60421804 BLAKE2B bdaf3876f4b6151415a79ed25aa2a93346085f4f80ffa7f17dd5d65d71ea30b228bf0b66e7094d36a0b89b704c5f7b21a42a46559ddde86ba9d296191201cc3a SHA512 af65b184bc831f56dd94b282692f2154971babcb7df0a16efdfb19f8dfaf5c68f00654d8ec17808059543028cd44db22ed1aae0fc6f43e69d39e7c025cbf0e24 DIST gentoo-kernel-5.4.176-1.amd64.xpak 61451582 BLAKE2B 878e0fbe7a669e1378b9517b8b554dc8b2cbc0041abbbdd9bb14aba04f4987198a4eb3da212b59616738fb669c487f3a2f53107f5a52c9f9c4c595cc8681df52 SHA512 257e24c0e0964b134705d4add1cbeda06904db25b2199c58afe73512bf56c5608356bde1ef817f2902329f2a3c86575f5e00d36580d08f3fa5f11f1e92de69d0 DIST gentoo-kernel-5.4.176-1.arm64.xpak 57649598 BLAKE2B ee34341d81464f1ecc23be6ac27a5c888ecff7ad0e361e1bd1d36121b5005992e9b435cc17c37aa3525bb4189ccd0683623a3b198c5fa3b424132a0aad76f09c SHA512 0290e6a07ea09880fba3057704c368f581b0114ca6bb794fd72f3624b54ff35e2527ca935b7087902ab30c3c15c7c9e78917f9bc22978acf51c675b8efd59238 DIST gentoo-kernel-5.4.176-1.ppc64le.xpak 54874773 BLAKE2B f17db10e4f00af5eddece5f66b01a4e3b2234e1f4b393d69f711f645971b0799ffbdc0b0d83341ca75fe12c5b8d79f3b845c400fed070215e2d0e36ef436f3f0 SHA512 36d988fad3bfd68f0da1cf48e0e742e66026b0950d0a81909e5840b19d68cef18bd3d17037bbe5789a0fbc669f4f32e6a6e3b9aeb39e686bc98049870ca1cc20 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.9.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.9.ebuild new file mode 100644 index 000000000000..80dbeaea0190 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.9.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 +} |