commit: dfdcc29a052b33969b907884f584bcf68551a11a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Mar 12 16:29:50 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 12 16:50:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfdcc29a
sys-kernel/gentoo-kernel-bin: add 5.16.14 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.16.14.ebuild | 135 +++++++++++++++++++++ 2 files changed, 141 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 19b81a28de25..ef671ef7289e 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -26,6 +26,8 @@ DIST genpatches-5.16-12.base.tar.xz 589172 BLAKE2B 97e255628a387adc723a6f9bd5430 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.16-15.base.tar.xz 709572 BLAKE2B bb6e5656cee01af674e30c5dbf66d6d538122161c69a21951f5b514c9d372a7ba40d653ee8c25358875fe4feaaea272cc849b6d07ede548d912b8672531e2815 SHA512 ad2daebb4d7602c8426b9990c9a2148715247917bf32a0310676b02f38f82b306b4469660836718747705074c8616fc2b083e9c6fdcb982a94be3bb06c7c05a4 +DIST genpatches-5.16-15.extras.tar.xz 3800 BLAKE2B b4142537d04eed518b9a7e827879b7e427d8c0a06710dd72f9f84e1990db72dd48382c67a9e0cf24f9b104b8cddf4d28739fd93e705b97952e364b3693ff1671 SHA512 773543f9989255ce2fb3f6f32aa546f2109eb52e2e816572e027a8428f93bb9c72baadc59ee3019edd03fc97339d30c34c2d8b50b2e1d0e5383b1633b2c0e169 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 @@ -88,6 +90,10 @@ DIST gentoo-kernel-5.16.13-1.amd64.xpak 69743369 BLAKE2B adb7af8414062ae656bfdc9 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.14-1.amd64.xpak 69820861 BLAKE2B ac5a0bab71b1551b3f3ef80466c5facab29b16195e2cecfbae5e76003f311b2be125dbd833f477fad997d219c6160eacb02e1dba674fbf8e70b1f87e42ec2899 SHA512 3a29aa5cde9545d752f66b0de06f5e2310419b11f20d94fbce102fc18f60e75dbe208278e4294ba809a07d04ecd561b5e26fb7d7c87bceb9464bfbde181e4ce9 +DIST gentoo-kernel-5.16.14-1.arm64.xpak 65070916 BLAKE2B fb24ea75db2670b3c655c3b424f2e1914c2dc3a8c4caa7257ff9e0941c9d3ceffc2bfcc5960e9df4b7288491494cd45eae2cf9849e01b94876b89cba98803bac SHA512 62fb64c91b246f7327a21e5ab2ff7773544e7a17ef6c018ac56187562d5c3e1a77c4060bef2f008d4eb02e80c2b5c2faf41177ac2acf9e7d585167ca3938296f +DIST gentoo-kernel-5.16.14-1.ppc64le.xpak 58391077 BLAKE2B ba51a591e3040f6a170db91c0e5afdb5c1cd446115ebefacff8d4e389537ebf5a8dd3134eeff93eea313f88dc86a06265e200185b84a257e89691b4c9e0243d2 SHA512 b6e8367cd2c767bae6f8c54941574ef7595690db7bc1d64033583051acd394522d8ec19b7692c7425b315596a7a8ae29769d7ab867b11a605f0bb6d30114169d +DIST gentoo-kernel-5.16.14-1.x86.xpak 60603730 BLAKE2B 171e7f7a1a875ab7fdb9d54bb19e98bcbd39e4c29a3115f1f17ed0dc4ac9e7a24f142ecf1890833bf7b4390f3567c9e18230da6547729e6a1f12fb1312caf960 SHA512 df50b3a52925cd0035fe2f44a35525698f93f12b70143c05cff85af8dae1efe35cbfbfeb5a4e176e1236837d84a34cf33589eba85f25db73151965ad40c476e9 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.14.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.14.ebuild new file mode 100644 index 000000000000..47d85701bddc --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.14.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 +}