diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-09-01 08:20:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-09-01 08:20:42 +0200 |
commit | 81e08bdf0f3be24c248d7ff14bba1df4afdac1c8 (patch) | |
tree | 9b9b9a2a36a35b683a73565ada8bc0d4bf04a331 /sys-kernel | |
parent | virtual/dist-kernel: Remove vulnerable versions (diff) | |
download | gentoo-81e08bdf0f3be24c248d7ff14bba1df4afdac1c8.tar.gz gentoo-81e08bdf0f3be24c248d7ff14bba1df4afdac1c8.tar.bz2 gentoo-81e08bdf0f3be24c248d7ff14bba1df4afdac1c8.zip |
sys-kernel/gentoo-kernel-bin: Remove vulnerable versions
Bug: https://bugs.gentoo.org/867781
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 13 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.19.ebuild | 135 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.4.ebuild | 135 |
3 files changed, 0 insertions, 283 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 14e156700611..c8f8e7798af1 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -6,10 +6,6 @@ DIST genpatches-5.15-67.base.tar.xz 2856328 BLAKE2B a92c3afb5e0a6605587744c68b3b DIST genpatches-5.15-67.extras.tar.xz 3936 BLAKE2B 168a92a9db40e6014864a96aff71fb87b351d7127c5eedc8e062e753ae65d7ebc628e9b0eded328f17e88562592d80522ccdd31a549c8104aee51e2833f81134 SHA512 0f2bdfa87ec2a610870089c903b301dc86dac52f4969386074a439be90674c4835800cf9250d8844b1ec3df88cc8dc0b31e4582ea309b7c817066a1341c692b2 DIST genpatches-5.15-68.base.tar.xz 2897744 BLAKE2B e1aebd74737e787df999aabb0153b7aab4b5df05d049e9a6260a3bacf8e827b4f767fe6fe8d07bea71a0e5ee7655d864da67736c17756ec1119a66fc58a4b82a SHA512 79996709882f76cae25639f273f2829d5ae671714f699008d7fbed68595e7cdd93e9d79c801e9f1eaf6ea89fbfe9df3302773e6f728f8cb5de4bd69b36fea65d DIST genpatches-5.15-68.extras.tar.xz 3932 BLAKE2B 34fd77b8464322ad369de5b86dd8dc83ce7510bca139d4e6036b0b2ab34d1c80698b5f965e44a09dd25ee3b4d80abbccc5920e7984803be2451281c74ff735ea SHA512 970a1e5a03f786d05bb1ae9217a467442f16344fffcf2c77a2572c6db656b0fcd5b3329eae193999c47bbb45c8b02f0fd9010760ef74a6aacc474729f0ee9369 -DIST genpatches-5.18-23.base.tar.xz 1206204 BLAKE2B 12a7b9aa7d72f27e64c4cb8f5607529dcc7d535a9375768e065d97d0b70b0726271b70dfa4ea019bb42606ddfd513b70357b2bd5ad95548c9eba9f91041f27b0 SHA512 9a459e3e8cb4a3285f782516fbc176a4a73c151281bea2258f049ec0662b806eefc54cb6e9151cc968e3a9c39789062c207d514920559954db9a10b53a1c2f0e -DIST genpatches-5.18-23.extras.tar.xz 3924 BLAKE2B fad401fd783c72bd695425a106813ce8396c6d15154fc627fb456b16f6ddff1f6326f54e1399c1369b6da5e3f57da89bc9e769bcbb5d4b612465fe187145ea17 SHA512 c25a09e1e2ad091e5f8480419e921e8eede512dcc6aeb46792a92844948eea5890c5ae8d164ae9834356e00216d3978cefe5f07b046cbaa30dfd4af73a1ddaa3 -DIST genpatches-5.19-6.base.tar.xz 595780 BLAKE2B 87db7f493d421ed3f0991278f16aeb984485ef5f5ef390d18cc37b27e2dec27704c1575e5ef0a475da6a5e87d68a119899d4a827c81a368c255d45887ea8a681 SHA512 2af94e970216f5297ad791496d6245fab8a0c037d5dd57161f2428dcc9c742414f0073c35be515bf6714a4962f7cc13a023e590e15902c6d68921e93a8bfeec3 -DIST genpatches-5.19-6.extras.tar.xz 3772 BLAKE2B 48f01ce8b863f73dd12e06d51e9716e6b5ca6694ed0612aabfd51e6a05a4289cdccddc6061c84a5c0c32878f6b030343e31bc29dc77161226b70d1b09448337b SHA512 550123defebfd2a2d0651840cdf6ce5b47f7b79c874fd97c766e758c72f7412053f682f1d3187788ed15a59b73e09356937329d1ca49b90fa0565cf25dec44d2 DIST genpatches-5.19-8.base.tar.xz 643396 BLAKE2B c383c7efc908fa3e8ebdfb750d92df6adfa1e0d00f253eae40fb5db5b84f8848a5c1a4fdcda693da998b1ba9d1afb1019cbc2574ceff2b099d2125ead515efc3 SHA512 ebd5eaaefbd362d85fa8cb95b0ca4192bf7a0835ec58ea25def13e502f87f74bcc29219083f39b85462b262f526f771270b5a8d93ff49126e1653d948a9ccb9d DIST genpatches-5.19-8.extras.tar.xz 3808 BLAKE2B 8cad0dd5deaca8f8b379c96cfad02add0cfe7498f17e84d11e6b809e366ae0476734bd003b287456459febe2ff4c1fa7b3e54c47243cd571a34ffb1cd927a1ea SHA512 a183d09ba7b1fc3f89b7754709df8d093ba70b09f71e237844214d65bc5821b6328c436c7ef697c30bfd38fc833bd178497190a2e73914a03ec0dfa4cbcdf7f2 DIST genpatches-5.4-216.base.tar.xz 5015752 BLAKE2B fd736588b9cbf9ba0a48ad838a17eda669e56d9d0ec4dd903f5bcd31ffa2c428d14ebc7bc35a709b3da7bf7f22403c5b01a9314dda60ef955d7674af836e2481 SHA512 62cd9deb29f863babbc9dc5116e5c5bcb34c0f29325276da80fc9b040004ba9fcfcde380779bf8ea8039f3098da88c59e7fdcd2d0f6d6aa5034df59ac9b55914 @@ -30,14 +26,6 @@ DIST gentoo-kernel-5.15.64-1.amd64.xpak 70812783 BLAKE2B 8e48507ad47fe72a7a45286 DIST gentoo-kernel-5.15.64-1.arm64.xpak 64210219 BLAKE2B dd3fac15e4753ddb900750c83747d1216c487f9dd0c69e3a4f0af98f1aa81dec8502ca8be33b2d015abf4633b160ef87523904f549882006b12f0deb4314e0ab SHA512 167aa3868086fc411d3d6bfe493f46d5f8f675a04b3ae8f1940c8ac439f1ec127657f2f7f6c3530ea6319b016491edb2a2fe0d50de2a4569ac7427b1db5a8b98 DIST gentoo-kernel-5.15.64-1.ppc64le.xpak 58139911 BLAKE2B b882b0f9f391d15d1e11305d853bb20ff5cd014b45671811fcd2346429e15cf4e14a207433eebd1bd148d1c2a2fd696e3c7e8d44b654ae9333fa2b46e422bd0f SHA512 ba9e5c0141f44661dfd5c680116f53c01e36349c38f58db7c5599f080e8a26d53a6513ef4ccfab82b5d61d7f941ca71f77e4e244b76a337df43aa3d81a63b6b0 DIST gentoo-kernel-5.15.64-1.x86.xpak 60122805 BLAKE2B f8917689903f846e0a7f4a5d9810910c2d7701cbcbf048c01f6f95e0932e4191e590df4207bdae22f1c01c785ddddcefa4411a3afe52a3a3feb04774117cd64f SHA512 5f1c6fc2f55a0616a6a5452da6782870512b0dc3adc7419cb34debabf46ca1928763694156a1427e49fc4aeb5c67c53ef5a525f89133141f5ffec2e9aa99db15 -DIST gentoo-kernel-5.18.19-1.amd64.xpak 72942561 BLAKE2B 0717daf1b59d2104cab1f879df588ce3900d34c5819d952bf322bcce3910688b7dfb590dcee73e493e6c9e32b5b59f8067456ac5dabf63f08685e9425c00c5ee SHA512 e0eeb797c0c9123847d291b9cdbaddf125a747d3aa84bf755a6e6b09fde936c211ab6ce632a294b0b88f977f962b3fa974dd5685bf658ddd14a11f7d0b881b35 -DIST gentoo-kernel-5.18.19-1.arm64.xpak 65272358 BLAKE2B dcd3464d63d93e74ade936979ed4cae9e44edd2607ae252ede6f60980902d9ea222d346ef9007a391ff5f2a856062be8261c8e7480605238925228c467931028 SHA512 eff2578748b3da40320adf59db967778e3e5a31d568436ee119bea390a756c050968f7f60c7cc33c5ae270d98d31cdcc9c39fb5ce0cc1b38eda8671325669b09 -DIST gentoo-kernel-5.18.19-1.ppc64le.xpak 59519114 BLAKE2B 9fbe2f5d5f7737901f23ceed8c6124d17ba6fefad96e49b2868030c089822159d857a7dd3c3aaeb4dd15a3f96a8c84afd869bf1da4f06942c7dfdf2dd70337ca SHA512 9c055379dba361cc4433a7972cf49b16f61fa3b35272449e4481e5bba0db6a098a8361b6c4df2c667618c4592da12c39eeebfed81487a4a8fe223a2c4d5ee52a -DIST gentoo-kernel-5.18.19-1.x86.xpak 62836995 BLAKE2B 2f5d390255cc4882235c03c18c706e57f5873ee7d78c92f938ed7d2ed39c024db6c175f8f4f882ecd78ffd89ebbe5652f125267fdcdc0233fb251d78cd6e3cbc SHA512 d6a2f070d57aadbf0e01f5be6b263c6145786d4deda51c1ae15b198c3a868cf0f74f5a75dcac1fada6a8eeec24ae42f0ed9faaf028df96ca22d7b659a688c706 -DIST gentoo-kernel-5.19.4-1.amd64.xpak 73516311 BLAKE2B 017eceba7a60d16384360b2d881a29f053534b682cf280b0f39cd408a6220369809a17df32806ad461f8092ac0cdb4283cdd10b5a21909d120de8f1e202d6ddb SHA512 12cbafff3969bee70529e729af435f61876d94901fe3d57501647754ab6a68814b066a5f106ec8ebb4b3371cd534fd479d3530caedec1a3a6fa383b46164031c -DIST gentoo-kernel-5.19.4-1.arm64.xpak 66395062 BLAKE2B 581297d47a4af5c43cd78b073fbf98959033acd61092e958f59524d710f0d2ed151e847770bbad304ab7d3014604816676a4bf9235eeb690c102c4f8fd38b120 SHA512 37c407d0a98469d59809788dc0bdaa27748b8b836b8c3c3c77d94de360e7f77fdd5a41635e16e70d78c3a70844bcac5c322e64b6639813b5ffbda1dbb5089d47 -DIST gentoo-kernel-5.19.4-1.ppc64le.xpak 59977405 BLAKE2B 20fbb9645168fdb888ba68e760c01e45e1d9cc0d2f563c22135fc9d7715107ccc9cb82649593d4242a399ab330c40894f58b7f79509b8af28ea67801038e5b8c SHA512 14a9f69f5c0ef1ed6d658e4a28ce937e5941c0268cde4c92a67ec1d7e36ee6789e33794a5190ef6ac27148da5efad88253ef93045d5524defa43255095a0c698 -DIST gentoo-kernel-5.19.4-1.x86.xpak 63382575 BLAKE2B e3d24f2576b1015e574ecdacc8f921ad811dd090cf8fe19c7b2b8c6ad217d2fea3c43e052d76316cf713d6b84c6dbc7e6b45f5c72f4da521809ec58a5b0691c9 SHA512 cd8f1731b4dd2d7ac19bc4b5df5ef813ca384b20c6d49719f8423bb3a45f621df779ea25206084d4b8c528b467b4f7ae0afa9c0d42a7e77a616a363eb4b2daba DIST gentoo-kernel-5.19.6-1.amd64.xpak 73549646 BLAKE2B b41eb12cbf86bb8f015411ae4a00a7a077e77ceb257671db891e3abb409dca86e2481840581435fc5c4df05f336b2e2a6b237de985ff295ce903ffba3d30f001 SHA512 55dd49b39c4c37536cd4d084b6eaaffb4f2138e7837a2f08b68eb2179043154099ea7e1b29f2d98719c2202304e04f8b8ad3440d31c0083f31763164feca6b82 DIST gentoo-kernel-5.19.6-1.arm64.xpak 66387997 BLAKE2B b46d2cb7e17f50919f1b27d938ce6dd841217bb1aafd6af59a289bd89f70ea1c2145dfa07aefc71a4ac18ab3e0ff863d48b457d388ecb292cf8d8b97aedbd7a1 SHA512 731c953d6ee1112392c2cfb4ebf968f4cc71e7beb5bc986f9934d2a37a8011fbfda327a4dfc29c3f075ca60f1142ecdeb0f780b144d525ac434340b469d5c142 DIST gentoo-kernel-5.19.6-1.ppc64le.xpak 60014130 BLAKE2B 1fa35be11714caae645b0d0de4d708cf82ac5fc0372adb8331b7f8c036f220662dcb892e69a346f24ce86ab40ef703d691c59511d303319f448a357a9b9d91e7 SHA512 8c28ee3dea8343821241627d405342c2ff24a4b74eb2a24ceca2498b138cc25404e96a1efa1a4eb5d41d4c701aa2a2f64dfc53d9a0011887735cb2098164303e @@ -48,6 +36,5 @@ DIST gentoo-kernel-5.4.211-1.ppc64le.xpak 55270077 BLAKE2B b322db72bcb47b2a30952 DIST gentoo-kernel-5.4.211-1.x86.xpak 53322109 BLAKE2B 4927986f3107fa2ee714028a354542ee52a19037889fe7c475c4f086e46fee61794a4b01cfad297533afbb1276d881dd7ea84764f9875301d3579af08978edf9 SHA512 caa4a5456f26490f5029b7c2ca4afdfbacdc0919ee285b13dbe2abf7ece3372a4093ce3651d1e9b1d63b7aa35a18d13231dc177f0230816f2bfa3f24df8000d9 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a -DIST linux-5.18.tar.xz 129790264 BLAKE2B e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb SHA512 dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5 DIST linux-5.19.tar.xz 131581464 BLAKE2B 4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a SHA512 00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623 DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.19.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.19.ebuild deleted file mode 100644 index cc187009eb97..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.19.ebuild +++ /dev/null @@ -1,135 +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##*.} + 4 )) -BINPKG=${P/-bin/}-1 - -DESCRIPTION="Pre-built Linux kernel with Gentoo patches" -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 -} diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.4.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.4.ebuild deleted file mode 100644 index 0432fc354ea2..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.4.ebuild +++ /dev/null @@ -1,135 +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##*.} + 2 )) -BINPKG=${P/-bin/}-1 - -DESCRIPTION="Pre-built Linux kernel with Gentoo patches" -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 -} |