commit: 6fb2b8b4147514e0461478a0a3b8518ab267df8b Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Mar 12 16:53:40 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 12 16:57:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fb2b8b4
sys-kernel/gentoo-kernel-bin: drop 5.16.9, 5.16.10 Bug: https://bugs.gentoo.org/834729 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 12 -- .../gentoo-kernel-bin-5.16.10.ebuild | 131 --------------------- .../gentoo-kernel-bin-5.16.9.ebuild | 131 --------------------- 3 files changed, 274 deletions(-) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index be8937350f72..a35e97138f60 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -10,10 +10,6 @@ DIST genpatches-5.15-29.base.tar.xz 1228644 BLAKE2B af3556b699c911adc605d438be87 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 -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 @@ -50,10 +46,6 @@ DIST gentoo-kernel-5.15.28-1.amd64.xpak 69236482 BLAKE2B e808890cdff14e722881baf 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 -DIST gentoo-kernel-5.16.10-1.x86.xpak 60436864 BLAKE2B 43c1e0bdeda04f2a67d4db07661fec4eda8c16fc9c0472e9dfba57a28d6e0cb8e8f42327fac3199a8ee54303ee26ec56f91c1815cab8c074de44ae7f2e94c60f SHA512 dde5035696dcde09ad4662bf54c2e803a814556534db267281f1dd41b4366cb11e3553e1943149957b5966b5547b2c169105e4a58b03bb0303d5e1da7848ef71 DIST gentoo-kernel-5.16.11-1.amd64.xpak 69656106 BLAKE2B 6a5bb52911519b55637cc6774fb56d870e0f7717e97cefe118852c829ad09d435cdd2f62be83233c2cd2829e8c959f61e42832f9fa237281316c303c94183753 SHA512 091df4f2114234d76c26d27bc484cc806463366b30b22b25d7389339ea9f37200dc475e9a14870f2aaa9480e34dab1f286c2b5ccbd8b0b92a71aeda95a7c1253 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 @@ -66,10 +58,6 @@ DIST gentoo-kernel-5.16.14-1.amd64.xpak 69820861 BLAKE2B ac5a0bab71b1551b3f3ef80 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 -DIST gentoo-kernel-5.16.9-1.x86.xpak 60421804 BLAKE2B bdaf3876f4b6151415a79ed25aa2a93346085f4f80ffa7f17dd5d65d71ea30b228bf0b66e7094d36a0b89b704c5f7b21a42a46559ddde86ba9d296191201cc3a SHA512 af65b184bc831f56dd94b282692f2154971babcb7df0a16efdfb19f8dfaf5c68f00654d8ec17808059543028cd44db22ed1aae0fc6f43e69d39e7c025cbf0e24 DIST gentoo-kernel-5.4.181-1.amd64.xpak 61463455 BLAKE2B 6b5b930434cb3f2f00b77006cc71f9ff12ba0f334246d38753abcdae340dfefe9992dc3943ecf849fc52b181931d0cc6165501eb8ba8b57508ed75ae7323908c SHA512 84b4b2051aadf17c09607d9f2fb4fb3ba3a5bf7c9fcc7ac3384f372e0ecb68f6d3b30b36e1a622addddc3867f61b0d91189631877e7a3a578270d91534076c1c DIST gentoo-kernel-5.4.181-1.arm64.xpak 57648476 BLAKE2B ecde63fbc07cf0142fb1446a6642ca03f14c4851a3790857ca1d3d587b75f9add3f6f9d6712e4b23c1bce7dcc802da88025750acde338190cd18808213045da9 SHA512 2ae605d01f951af96f5f7bc86d386fb9b19d738719875ddd88e52414552d0a42f92cebb403fe00676334d5eb48b0013a44f1c239d126bf169a8a815f70bbcf95 DIST gentoo-kernel-5.4.181-1.ppc64le.xpak 54963672 BLAKE2B 402df95856810f6119e5fd8ede93183e0e8d1162b6b833de1d5b99b22f8ac1e7787732c8ff82bc43a2f90d6505483947960276982ac75af2c9f555560d7f0274 SHA512 741c4b5e09a56a07de9b7189119a778122ebdd279e6e7fdb6a0c77615dcf6e8c7f4f89df47222824733a0db10f01e9dc771eb94945887c7d4ea3cdbc72f23b5b diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.10.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.10.ebuild deleted file mode 100644 index 80dbeaea0190..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.10.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# 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 -} 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 deleted file mode 100644 index 80dbeaea0190..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.9.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# 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 -}