commit: ea8586d8dc08f594bcaf4ad9112cef1c06ce8742 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Mar 12 16:29:45 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 12 16:50:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea8586d8
sys-kernel/gentoo-kernel-bin: add 5.15.28 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.15.28.ebuild | 135 +++++++++++++++++++++ 2 files changed, 141 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 4b11cb845f9d..19b81a28de25 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -16,6 +16,8 @@ DIST genpatches-5.15-27.base.tar.xz 1109928 BLAKE2B 4f6113b0b1c378bec52a94c42026 DIST genpatches-5.15-27.extras.tar.xz 3872 BLAKE2B fc757f0d4fcba7b53aea34736b7a0cc0a7ca14b73bd9c249ad2c89b283475f3b53e4391870a239bd329f00e55c056f05cfc270ad00d57acd69cc26331cc20931 SHA512 102dc6ec977e184ec07cc3cdc2a39285f291bd3e3a344b5e53935f90319efcb5ca70ea1936d5d37ffe03f66148aad4e240508e3cf212d483abe145c21e6818c3 DIST genpatches-5.15-29.base.tar.xz 1228644 BLAKE2B af3556b699c911adc605d438be870f2bba25e79c24908cc8ef6e130e238ada7f415faab020a2cad99780c99e9ce0e8d2f69784883a7ad6596f76db55f0b32f93 SHA512 ee152e485e0fd21b9f350fae7d492a72408b6b16f2abbdc73f62d22ce402e59e83e2ce23c4940dcfc914c8f2ee411524b590745693cebcf60237c64b0fc7a76e DIST genpatches-5.15-29.extras.tar.xz 3876 BLAKE2B 385e23598bf220d539807e751f3df8a11a74a032d8c0e0c45f9d1d67fc709018963a44eb839667e3a60ea35ab54ee6e335ff1902221256b03b7e14902f5080a1 SHA512 7c79e5cc35746aecfff088540f93b49968517b24845d64dc0aae3e719abd9bda8aa352dba710cc0529a168dcecab4aae4d857974014685ebb5b44259c318c522 +DIST genpatches-5.15-30.base.tar.xz 1252580 BLAKE2B 75ba5a37233bd80d4526fb2f8dd53083c27a8a044a86e8738ccf544bf7b8dc974d0abfe57b09a3d98ab89562f378447cb767c9f8b2606b4e410b4237fe2c64f8 SHA512 4b81fa96dafdbc4c488ae46cf06ab1659dd89a24af0b536cf6e4153fda98c246b0f6fa6b808c403a17268a30c9077da94d1f97c0a7883afc997d586ec78e6b4a +DIST genpatches-5.15-30.extras.tar.xz 3872 BLAKE2B 5bc792aea4f44f106687826ad6dc5474037b743ff20f8ae72b94b117877a81a93e2ce209cbd7a730920a3d548f1dd6155bbfa24ced46bbaba8c7352392de9611 SHA512 b727a9d4dbd24478479f86acffe0d1f074c1bf12dc19087c615de03a3e7e6efb8b0144476f480d1c87cfba0dc2097330af1234a2a194276ac9244058ea38b966 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-11.base.tar.xz 516420 BLAKE2B 3e3d1a7ed60355a6d0911742fe1fe27961bd6efe16c25bf700ffc9aadbd8d02860d8b35a9fa3de61bd6d59024364e698cf4d78a7abe2eefdadd79b5aa086778e SHA512 d513a67f55edd3ea469b36ecf93eda8f623fb2f899c8cb373ee5092838283fadda029db6d97687dc27b734634e666106c054d0f35498af086aadab4aa59a2e7d @@ -70,6 +72,10 @@ DIST gentoo-kernel-5.15.27-1.amd64.xpak 69239605 BLAKE2B 9e221b79e09320270037ca0 DIST gentoo-kernel-5.15.27-1.arm64.xpak 64102936 BLAKE2B b3d448754bb89a13d626444e57ea1047e0597ac6bd91cc4811f2a94d320d818e984c8ec7bdba194680a20333474d260bcbaa7fd84c3ddf0a685ca6d492a061c7 SHA512 7d6669320fe330cb5419d44d96112db5b70122dbd0d1d0793ed777ff433a869741fdc5138ac9ee38642f35012ed607df6b42bf09a2bb39e3e3437fd75827a4d8 DIST gentoo-kernel-5.15.27-1.ppc64le.xpak 57844158 BLAKE2B 8476e277d4f5a7c07a4a841fba96bf13a493939f72ceb2f92c33c188adb68e7345ad7c585b3b3d17c0c8b50d83cfe0a7f697f1cb2e7d4a55a3a651a5542864c4 SHA512 94fcfdb736ce31ffe5920888f8c78badda7a711a1b5d5285261999b4811283e6c1717aaac17014997b2dfbddd89719f659ac44ec1f787283366816dd633ce8c3 DIST gentoo-kernel-5.15.27-1.x86.xpak 60013396 BLAKE2B c718d5b8782da4a0f85509602f043868fc6b463064491638238e52e31db483e898bf06380aa1cf683ac8420a81a97f9247296579733cfdafd993d3256bc97d1f SHA512 cb28a5be47e4c152a19b89ce853e9336c131027e0ee31117e2bcd6b02b557dfd075d47c56b9267828fce5a3917dd2920c177d67fd8eaf46d0e0d16c31bc464e0 +DIST gentoo-kernel-5.15.28-1.amd64.xpak 69236482 BLAKE2B e808890cdff14e722881bafdacfd8883aea7b1560d5d073ac209ba9c77009fd70c568fb1c0d6301c9a376cab4ad55a3ca14ae4e031ad140d6f3ee5d1b25ecaa9 SHA512 374478b81e800fa0f08e0208e92f6848b40d16aee83497af8fdd317b3bec04a6e01ef2296e757a8cd54d34c1163fc12a715e07620c65019b4cdbcfb9189acf79 +DIST gentoo-kernel-5.15.28-1.arm64.xpak 64092600 BLAKE2B 7fe810056d70935f63d973911cf9bbfa2ea4565991e316c5a3c1d5c4fb53cc7c88c4a4726b2053155608070b4fc94a8bd63b2ec64488952216245eb5c26e125b SHA512 c23174fafc334063c587cc14be0b45d410f8ceb2a6bf1eb41b32dade636b00154b105230cacea5042c3753b7097fb13e24b84e3f6817a8918aa686daea8cc8e0 +DIST gentoo-kernel-5.15.28-1.ppc64le.xpak 57856450 BLAKE2B faae8c1784b80bd5c6ff47f4d2e309276861c02b4c234e2b97b0cd1ce1eaaeae02aea69c8b36f988536251300aafcebf2dbb57b386fe558c52998766f37a518b SHA512 c13cac181d8762a4428aa8f502144d839ced3c76b22e1424b454e83cfd9d7a5697a305199cafe1fa8373b04065f11287ec8bd79ecfadbde89f4ccec1b4f05b92 +DIST gentoo-kernel-5.15.28-1.x86.xpak 60060673 BLAKE2B 1a8f3caa66470ac310ecd6c4729e1b5b41397865c08a19450d0d0bc49fee0ceffafc69ac544903bbed64fa1ace992e74dfdac2aa383f65c4cc9551a648ad7217 SHA512 3f55273e979bf51e36c46eddc32e09e8a7934591090aee61e725e000dcb7300c212eb817b5c97e1cecf8db39d67994a959ff2ba9319796ca687599e9e1a39c09 DIST gentoo-kernel-5.16.10-1.amd64.xpak 69568600 BLAKE2B cd01658393cce36ec09b2b59db73fb7b05d9cfd46094c6aea7b32eacc2c3cd9974c4056a7650a195853354c8de56a6bf42d2b9debd6810fb20e2b09094da7cad SHA512 e68ac4f34d0bf30acb8401f8f8c9c1fd4c93a3b9f36d071196ff1a42cb6b2b8ed9fa0e04b9376fc82de6b296958a6e49facae8dcad3e53fc6e89f0bbff246423 DIST gentoo-kernel-5.16.10-1.arm64.xpak 65046002 BLAKE2B 3b12c8e5c621124b0ab72bbdb58e1c054ede41859fbdda8c510ef12d3d52c2db17bf64e95b509a29ffe8cea45c8ede86073d9189e0195d1e4745d3810bea7f1a SHA512 6c89091febfe2ede589caa68a9526daf8cde16870dbfa508c3395afee36f6470c329c491767a6a4b2be6c83454dc26431ba0776fe3090aebf4170fb092a43e5d DIST gentoo-kernel-5.16.10-1.ppc64le.xpak 58450194 BLAKE2B 0e95432237a2a1e98178b7a41a23abb43797cf12709061f8bb50e98c0315563e8dbe9c6ead57dea72ef0f153a906712b3ed5b02e15167327975341febeda0778 SHA512 450da33416b07fae2d6759dc0d6f59ac21e61ab2f2d7a2cc0df41459de11c040996ae52311882831ffb68839068e4323cd6ea5fdbcc08d7e4d09088b0d46708d diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.28.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.28.ebuild new file mode 100644 index 000000000000..828b4e285c0c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.28.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##*.} + 2 )) +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 +}