From ce80202cfcf7f0dcb80e055eba3f6475232a5961 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 23 Aug 2023 21:49:58 +0100 Subject: gentoo auto-resync : 23:08:2023 - 21:49:58 --- sys-kernel/gentoo-kernel-bin/Manifest | 14 +++ .../gentoo-kernel-bin-6.1.47.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-6.4.12.ebuild | 127 +++++++++++++++++++++ 3 files changed, 268 insertions(+) create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.47.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.4.12.ebuild (limited to 'sys-kernel/gentoo-kernel-bin') diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 0b1dc1e26236..279d0a42a8bd 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -6,8 +6,12 @@ DIST genpatches-5.4-261.base.tar.xz 6100368 BLAKE2B 1333f1a5aae4faabe031192eee4e DIST genpatches-5.4-261.extras.tar.xz 1812 BLAKE2B fcc06d16147422b0ea123b116644539b3527e44bca78d46cf5795d44e42575c7017ec3b5c9dd566c5523e3b23f14b4d817846502d4ef353180c3a3c79caa4c2b SHA512 5cc879a4333aa3e162a5da4bf118a12ae5694c2fb98f11f9e1eee57f91b707974d735c290790942a14b2df5bdf092f58d1cf03f7058aea6f8e588700ec185dbf DIST genpatches-6.1-52.base.tar.xz 3173368 BLAKE2B 429b5bc3af457d91b9c178737e573d150e337859c0f07a25043c86b834829e749b92c57fa2d80b2acfe9864f916ebe77c830249be23391d6553f5469b1934708 SHA512 0f003893b6c24fa9bb79722d6d83edb25e77fff11a526f86052980ee175d6dd599784cfcc7ad82055de9663a178fb9de38a766cfe61fe17fbde696a5292f023f DIST genpatches-6.1-52.extras.tar.xz 3808 BLAKE2B 6a67986309840e14bd4759c0aabb1af5d6b3653660d1a12d8706567470a28b3a56d5a09cbdd3df9068bed7a845206b5a81fca3a1be0ffe7122579d9b3ff63401 SHA512 0476ec7af5906dfd4dd48c96799568f8ed7d24d7d43717979e03a16219b732461e0afc7af1c5a4f528a08c4b5c2c35d249e81be1c6d0f854f7993da2e0c7aad3 +DIST genpatches-6.1-53.base.tar.xz 3225656 BLAKE2B d701a2920347788f343b14babfdd113b62b78218e8b19a5ee4f36d76b8571e697d9f3a3a9aa8364344e4d0ccaa60eccaab27b24036504b3ea1d011c4492a1eb2 SHA512 10aed454a5d7d7a763ec3008ceb17e30d989abcd76e1ca54d47b8946cf20a9de5991e09158a4e0b182ba58b41760a8de3bbd1979ff23fa9a84aa094c5c31094d +DIST genpatches-6.1-53.extras.tar.xz 3812 BLAKE2B ad3b65af5b05947d20e1ecaaabd7304261310162c9ef679cba698712af55e7bc5b18ab1b69613a4442e38f362e34a9a1699408decd9016cfb4543c33ac97468a SHA512 a813b49a8af0cf17e48a88475731b6349dfa49af90e16037528eebd55a80b3ecdb52805547a56003a463b00a4302a779c8fff23970d73f3393cde7f205e92d32 DIST genpatches-6.4-13.base.tar.xz 708424 BLAKE2B 35ac10ca68775c9e9c5668e9d4a8764c6cc583f8ecbade54b6f1bb1e4ca41fee1d48f5e782a6ba271d0b2f710889aaefdb13c9e4bb437d4f91b05a3d7e464a2f SHA512 5c3fa0b3c09b5298b4bf6542960e07d9c63875cc84821bbd6ef70556868f33a6aece33b9882b97cb9e32536ebfa536a71b9113e95b1b72b80c4f1348434e43c6 DIST genpatches-6.4-13.extras.tar.xz 3696 BLAKE2B e2e9014e497de63eae5dc5d644e1ef27fc2fda99379b881af096874bf25f269212bbd811781f3fc63fa896285e78cb9c41717392e59bfa62c039dce58ed11f86 SHA512 ffa3f9043767ae00e18b1d5313df6312d179b0d9e2b224d7b1097cbdc9c48f56615a36425ae1fd00680caed085420e438deb4fd331a37cd4397a814e542d6fa0 +DIST genpatches-6.4-14.base.tar.xz 765548 BLAKE2B e1d9bc63a0d8beeeeef9894b264ef4d8078bf57a3548548c08e75e699420731cdfdcf9df69ab6844a57563f24d806c96c27c9a158a7f6a1afa72bf8328ce60bc SHA512 5ee620824e0c17146add7f9bfd1d3444e5eb497444c040dc0f06a7ba247e81fc30eb8c92896ed359c7192690f24a1c45bb3b767bc408e9430ad9c7095ca2be40 +DIST genpatches-6.4-14.extras.tar.xz 3700 BLAKE2B e72b1378e2c05049a5cb981e7bb09e0d448fd5e1219393d7b552c1c6de2ed557c395a3f341946bd142d8df45b61d12a13ea2424325d5a98045063e0cabe7584f SHA512 62149b4cdce5bf1a0567557790cddc1248dd927f31774b65848f00075bf1a0179939c292c79181af0a39132321f056541919beb30c6a4d46f57286886c95c545 DIST gentoo-kernel-5.10.191-1.amd64.gpkg.tar 66365440 BLAKE2B f7086ca26f08468b754b0cf9ce715ed763d2866ebc8ea322fb51fa2ab5146f1c7741f68b82d52a7d54442cc36cd5a114132f9ccb0809e8d0ab0da022742a48d2 SHA512 0f4918273c70f06756c19cd2c7738176695aba65eeaa7846aa6773d97e6d3ac4302be0328926f1a217135d21e2660e6e4124ced7f2304c0f1a408ad2561b24a5 DIST gentoo-kernel-5.10.191-1.arm64.gpkg.tar 59392000 BLAKE2B feee11f6bc6148ca0a65077a33cb1736fe2d588037bfada383bff1ca9ca7ea71d6f3248a91cc9b152d87a3fb9580177a68b3748c53e2bb6e0309c7a4b9e39df3 SHA512 bfe38e92e445719daddc4fd87b717c652a0fbc5b3cf3fdaab40c1014229a2bf5b504642c21e5bb478d56742c56100271a7433f113c7c231382d2f226a609f837 DIST gentoo-kernel-5.10.191-1.ppc64le.gpkg.tar 54947840 BLAKE2B eab70963c60d1d668ba562652b73bf47760d326ea2cd3fad8cbf91e75a9329283b9af38ee7391c4bc887c32464a6c8376844135231d155eb11916c926f8c263a SHA512 58a8701b46878dd470a4210f96f65bc85aabb4c8b29aed5d1d61eff2efb1f851c38b648c50afa7cc164406ccdf8ae3bc673f73857903a17c19229f77c8e885f7 @@ -24,10 +28,18 @@ DIST gentoo-kernel-6.1.46-1.amd64.gpkg.tar 76861440 BLAKE2B e9d5b7c9017adc512275 DIST gentoo-kernel-6.1.46-1.arm64.gpkg.tar 69488640 BLAKE2B a72e190c5455f087b811ad68eb818a67efae7be3a2f7f2dca41c1ad4397c1b5f45db58f02360bf05516b61e871e0f4cdd1daa0c0ea3c3aaa0d40f88673e890af SHA512 ddcba28035f1b084097cfb3b58bb90a37e29d6abe3043d3c5464363da095750a9675e287641fd782da29ee02077bfbaa5ee784f579df09a90b01728b9c697230 DIST gentoo-kernel-6.1.46-1.ppc64le.gpkg.tar 62832640 BLAKE2B a8e45f7ecde91ed96d440e4261ef00fd7e27d4dc50d5f92d9b530d2d1f6438e010c76caea95e6d5015c617fe71cae541c52cfa747ba7388b4ccafd592373cf75 SHA512 60295b457d4bda5dfdfceb1a28049522238c983ec951eb0b46c42192408574131d82eeff515e97862160050b4b2f77bdd1799458a238d75f724f8d652c1758d0 DIST gentoo-kernel-6.1.46-1.x86.gpkg.tar 66232320 BLAKE2B 427a224134aba2008d3da27f31f86c060132715c9e1de3f9f77be626d1ebfa3aacf63e891428a755ca81e03a7237099211ba8b9e2959313197394bffb01462f8 SHA512 a5ec7c7148cb650370c73a50b453c99c61920ff06df1b30f67644f6b3b4297866981cef15b88016b8cdfcc97eeaaf91020009be1a8892e0fdcd9b696ac566acc +DIST gentoo-kernel-6.1.47-1.amd64.gpkg.tar 76830720 BLAKE2B 913af5016feb6b2431b0f1b01877eb3e67f90e72a7c250ce725d2a5fc88c6b074aa8221214d3220cf138dc1ca83c26af3342d20dcfea645b7a4556310503573d SHA512 96dd6495e4f148bb9216f88178c033cfcdd7aa78a2849e09342bd9d161e7b388753fd36c05c2ed7569fa9ac89ac2c0715b1d8de3678a57687155c80e8795417a +DIST gentoo-kernel-6.1.47-1.arm64.gpkg.tar 69498880 BLAKE2B b607aaffb540ab776e11448ae623dc433366a39de99d64fc568b7b0905b4f329e7aea6f4bfd4b6cbc4334c2712b2d86126976692677e814a0ab4e9e39d87923b SHA512 02b11a64e78acec9cc01fdc41339cad40564eda161285cf924c4c3b7576cd07979992a8b7588134583c58b4e6ae24cc60ce37946b80056653579be93fcbca6e3 +DIST gentoo-kernel-6.1.47-1.ppc64le.gpkg.tar 62853120 BLAKE2B 139cc49ab4a51f75d3f4fe525e1d6b7174059775f754028710ef5c1614cca38ba70583cbe6e60f5bad80f20c085164474791855d49328c3eab90c7a94875ad40 SHA512 573c314515651b127e8ab74795dbfdd6e812b88849eb454e4e600c5bc30beb2102a17e4b89e369afe05e52cf7e11e7e6f8d597da49e75f2bb5a1b9213a9d9fd5 +DIST gentoo-kernel-6.1.47-1.x86.gpkg.tar 66242560 BLAKE2B 8be8dc33b458c51ee6adbab3e6679ad9c0b4547ef096d8cd12e0a7c0619eb1773e7b8ef16d2c3dd5de38886012ea1bd74d001e2c3af0a2618d1cae95fbd1c25c SHA512 88d556326f2634cf136a32f9b977783b85b99dc440cf3875cfb60d7b070d4cca5f75e2c60496805979333df8db9d74e2ba01683007427375eff4464b5c942259 DIST gentoo-kernel-6.4.11-1.amd64.gpkg.tar 84060160 BLAKE2B 53cb5140f149d9efe604a5ec1a631557b66a0d970fb4b44c20e602f0a430e1c57f29d3f532e56b249583e0cdedd05eefeb788f5773a7ec8a55761f5975b70625 SHA512 9eae8e36cd2eca63c6fe0133c34be5a2f13c006caae596e75a4e97ab7d0a31553f625b31e3a307402ad1971ab0d8407b6684908b4ea54d9ae096c59745e745c5 DIST gentoo-kernel-6.4.11-1.arm64.gpkg.tar 72960000 BLAKE2B f023f2cf059ebe741840a79ff03f5c869f33b143bba229b1499e8edc02aa4e5b28707eb8f21979302da0a747f75db5c8dfb0d545f0fccc081dd64ee5d53924c0 SHA512 dc5e9d29e270be21adf2dd27f687d3a43fe0a9ed56e81c6fda2a4d05582935827e814f869b14581692fb46127e0e201f779eedd0757cba2b5fca31be51a1b64c DIST gentoo-kernel-6.4.11-1.ppc64le.gpkg.tar 64655360 BLAKE2B 16702f5aef82f29e76e7ff583903e63c96defdc30efca67f5c629904c7cb3febc39c1bdda16764c4a0c12a60eca97415cff9efe0845b95f6a2ee54f4170563b2 SHA512 9954161681fb69761e5c36db2d357cd73712f8af2f9dd31cc6437bece50e94567976f5d703d3e59c19fcdb82a85e65424a7fa4a67c10d7aa1f1ccd89ce002c97 DIST gentoo-kernel-6.4.11-1.x86.gpkg.tar 67563520 BLAKE2B 6f95c97b631d2606509b77caa627a4b263a423eb6d9a5a7edaf858c79013030653b497e49c76c582c3420ee40e543b4f75bca57e9ba4f36284219043d0f76db6 SHA512 37eee9fed9eb00c28705233060004b854012edab9529c6ca7a91a825d56418db59234e4f2fd07c61c1791f653246183f5ecd9cc3c161c3b36589242eacaca712 +DIST gentoo-kernel-6.4.12-1.amd64.gpkg.tar 84060160 BLAKE2B bc6e98110cc467d47fa8e1152ba0c822f11b2f9f16de81138ab81a850648383a8d27dfca5772b59104a9272fccffdeed98f81b4d7a8657627b0d639d183445e8 SHA512 dc7334c9951b53cd8aac12e1e2cde718765f9964c784f0efcb62895c2d26a7f1b76bd8d664aea1239cf61f70c2207976df12d4ef00d5cbb9008049f465ebd68c +DIST gentoo-kernel-6.4.12-1.arm64.gpkg.tar 72960000 BLAKE2B ac0962ce90e566c48364e9a00bb5108c209f77a606f2954e8be8069a688c163a978f496b9ec5e32e3cca0bc9b6b73f5d1645f2881234a67946ddcfae0ff904ed SHA512 16d9f518ada039d6bb16d3e2fb9c3ff557c64bfca3c9a8900125c9431e8d3f18e47a98156e317d5776fcc5aff873d3ee2cc9357a294f03d5b279206bfa7545e0 +DIST gentoo-kernel-6.4.12-1.ppc64le.gpkg.tar 64665600 BLAKE2B 6a74a7747dd0a693e5e9256243b25de82f4800f57aae59546126c275529043147fac165600aac5cf8fc2ada703d7362237068c96a639ffc3af358654a89f7409 SHA512 6cab43585f1c4b10850b9fa8dc09abe255f0c8c41690d21d9536d1a5e68cec0d8bb3896c6357855acb1ab7184cb8327a14ed3de725eee26edb23672a0424ddb8 +DIST gentoo-kernel-6.4.12-1.x86.gpkg.tar 67563520 BLAKE2B 9c0b734586f14da8e9693a990283c29773d04df19c008fcaecc2e481a6a27ac8976c28062bc3788d4cb66f716a68e85d979a45e8395fc2d01559c932510d98a3 SHA512 f2c3f775e5bf37483bf4cb71c292bf215fa8d28eff4aa91049f1397f742a23bbfe63d6a6e08be192ddb82ab0fac9b7c91ec7ab9fbf5b640318d115f8960543b4 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.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f @@ -37,5 +49,7 @@ EBUILD gentoo-kernel-bin-5.10.191.ebuild 3025 BLAKE2B 7fafb438db9b4e8c5d06545a3c EBUILD gentoo-kernel-bin-5.15.127.ebuild 3025 BLAKE2B 95e4eb0f4309e4141a863875ec46ea241e6e9e96260bdd3804400e11d32dd2b12bce79c1c66e0abbe6533cc9c9abf0f19eceabe46885b6feeac986287fec0070 SHA512 1f22d7d6843659d872c9ea6bd6eda48f99841e95c12aa723020633cdf30564f43e4aa63e3433f0598930230a03d2c27a1714d2b865a548edfc5725cf9f99176f EBUILD gentoo-kernel-bin-5.4.254.ebuild 3024 BLAKE2B 1a00a8ccac9f12f20c9f3d39572af89a077c3b3dd424133197f35123ee41804588b9763008011c3ee33f269c49eadefcb4d31c01371685845bcfd9fbd189ff78 SHA512 3fb6a4b6ec491d6bb4ad19c37dc18e40565d7d6ee248563c219a43323c263ff1fccb0863727258c56c7bb6f2397cfe968eb974a1282fa3a685a6ed0c3c5247dc EBUILD gentoo-kernel-bin-6.1.46.ebuild 3025 BLAKE2B 95e4eb0f4309e4141a863875ec46ea241e6e9e96260bdd3804400e11d32dd2b12bce79c1c66e0abbe6533cc9c9abf0f19eceabe46885b6feeac986287fec0070 SHA512 1f22d7d6843659d872c9ea6bd6eda48f99841e95c12aa723020633cdf30564f43e4aa63e3433f0598930230a03d2c27a1714d2b865a548edfc5725cf9f99176f +EBUILD gentoo-kernel-bin-6.1.47.ebuild 3029 BLAKE2B 7e344f2c9619826058ab1e7437837bb2307480c9b5be1e52638b4d30cd458ed59f7053e896ab8fb7c02965a1df0f10f2d67fda031e2ee8764460134592585a2b SHA512 eb0c10f46c137cf2a98f606b0bd49fbd43920136bde57d445bc2feefd1d1ec57212b651510b9ad6a7ea37cef2d02e004217e136ed10ca23b39c3791162e5d8f6 EBUILD gentoo-kernel-bin-6.4.11.ebuild 3029 BLAKE2B ca5881dd1f012cb7003cd391c8581c214724c328f20f50f4a8d248a80b831f459f67da6da7203a61ef67fb91db4c585da622b7a532153401856c0530322ccdd7 SHA512 494035de5e3040f27dafa7ceee4915486b49065c0cd451bacf14843bab220bfa214a73b3b857706cf45db997ae7c22d2e03d460efb2087193de94b879d8ba3c3 +EBUILD gentoo-kernel-bin-6.4.12.ebuild 3029 BLAKE2B ca5881dd1f012cb7003cd391c8581c214724c328f20f50f4a8d248a80b831f459f67da6da7203a61ef67fb91db4c585da622b7a532153401856c0530322ccdd7 SHA512 494035de5e3040f27dafa7ceee4915486b49065c0cd451bacf14843bab220bfa214a73b3b857706cf45db997ae7c22d2e03d460efb2087193de94b879d8ba3c3 MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.47.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.47.ebuild new file mode 100644 index 000000000000..83c6a5e4fa8f --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.47.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 6 )) +BINPKG=${PF/-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}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +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 + app-alternatives/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d ${BINPKG}/image/boot/dtbs ]]; then + mv "${BINPKG}"/image/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-6.4.12.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.4.12.ebuild new file mode 100644 index 000000000000..3cd8c6516903 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.4.12.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +BINPKG=${PF/-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}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +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 + app-alternatives/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d ${BINPKG}/image/boot/dtbs ]]; then + mv "${BINPKG}"/image/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 +} -- cgit v1.2.3