From 3c490942d0d98701d1c0971e60911fa6bd3ecb76 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Sep 2023 11:00:10 +0100 Subject: gentoo auto-resync : 16:09:2023 - 11:00:10 --- sys-kernel/gentoo-kernel-bin/Manifest | 10 ++ .../gentoo-kernel-bin-6.1.53-r1.ebuild | 127 ++++++++++++++++++++ .../gentoo-kernel-bin-6.5.3-r1.ebuild | 132 +++++++++++++++++++++ 3 files changed, 269 insertions(+) create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.53-r1.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.3-r1.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 1868bb92c974..8d8525259c15 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -44,6 +44,10 @@ DIST gentoo-kernel-6.1.53-1.amd64.gpkg.tar 72509440 BLAKE2B 1cd4c14f7f52f8a8bf0f DIST gentoo-kernel-6.1.53-1.arm64.gpkg.tar 65218560 BLAKE2B 576f4e81241184842d38e1fecc17635a7fcb8657a7ab1b96f629d92ae5231bdeca08c4cedade4d75c07a915d3584ba2f494b4cb92a0d0450e74d0f5bc6b555eb SHA512 07bdac4e29a292631b560d409f0eaf256a9d51d90293051d81b368be13d02ca264e23135fff8e51dd932720fab7d71f66418279ea237f541792e52bc4d5792e3 DIST gentoo-kernel-6.1.53-1.ppc64le.gpkg.tar 59811840 BLAKE2B cee9232bdae834b254321018b485b61b3083cdd01bcdaada32162f8513af67596534efd653fe0352fcbd093d0532f7c74b28ede6993bc22e4544676306dd8dd5 SHA512 0ebc131f6a0e6ef882f584faa1d2c963ba8c3d461326719617bcb97488bd0de8d45453c530e8b41ed4f2b6fb29f6bf29893350f09cd9dfbeaf7d5dc9a101eb95 DIST gentoo-kernel-6.1.53-1.x86.gpkg.tar 61972480 BLAKE2B e87669b4450e1955ef82b781eb4880be2dbaf7b33b9fc90ac04878a7a57c80bd75f7e8388517937dda2e651eb9c83115cac21cefd055739736dd09a23e135712 SHA512 71f36656fc836794b51e2a6be746272f408456e3d26a19aa28b12c5eedeb2344bc3e99f8d6fc19e63b0e1f36725d63fb90b2388b9eee3d7555ef93e9fbf37f64 +DIST gentoo-kernel-6.1.53-r1-1.amd64.gpkg.tar 72478720 BLAKE2B 9bce87f82539a8f6dd68f3bfe17ca7fce0f34353fa55fc3bd21324c15545d7843a627e690a3354b2ef780165cca01ea4c22bd8782a5baf3f2602cc8a8a7bf1d8 SHA512 dfcc892437c33fbced96946ccd02131995cdb07b13a00cfeefd469b9f9eff5673e41f713b4399a0aa3aa291fe479051a4f706e4c01993eaf1b8ac4f4b60382ce +DIST gentoo-kernel-6.1.53-r1-1.arm64.gpkg.tar 65208320 BLAKE2B 4148c417ce291133c6b7fcca376f9db7d9f8a5254ef263146b15b29fb12a93af38a6082e6c49c50c09e831587003cdb459e645e759d3f6e095cccaf93c76994d SHA512 da6fb9218c69f4da49bc1de22a47943460bbd4630c75b0e3b75952e7991c545db96f1ff753b969d85997d2152f910401086f0a68926ea0814eeb979da912b4d1 +DIST gentoo-kernel-6.1.53-r1-1.ppc64le.gpkg.tar 59822080 BLAKE2B 657c66102de78813e80599101c63a19b75a113ab581c5af1c284f205ffbcee5257b55ddcdb7fa2dbf491dcf7619c3f23678a9cbd787b4e375e7b15991782657c SHA512 756f30a9cbea8864443e38096804491cbe113a7f8f781b82ff4229392b34befa7eb0985036d02092994041a2eccbd69a9101e04051f0f4f9f5c1dd3ef948673d +DIST gentoo-kernel-6.1.53-r1-1.x86.gpkg.tar 61962240 BLAKE2B 1809d9cd755a88ed2513658f02c033d6a7ed7acf821f2e179e1812c9afb1fef3d947e6dfd6fedcf1cabfb77b05820db4d6d888ffc7f45facfb657e9ec614a986 SHA512 68ad5671a6f8d5e9a6e562ba5bfbb1ea2427944bc8dd22fff88bd5b8114271640e9161e6f20fc0c2c6de66ca2db78cf585b9296897490634171898346f71d560 DIST gentoo-kernel-6.4.16-1.amd64.gpkg.tar 81786880 BLAKE2B adbe09acd265ad50d6cc362be262b94b10fcfc517dd5e463007eef455477c1de7b9340ca472a60c28bd7fbcc02f8538c25b036d736e656500bf749a67ba914cb SHA512 cd3c7a1641b500620f3a8770a2994d53161582ac3c5eca72cb64e4e15cbbd40db1d8bf839a5427662574eb8d4124f2c6b2b74dc087e70b6992d2c522939b87a5 DIST gentoo-kernel-6.4.16-1.arm64.gpkg.tar 71290880 BLAKE2B b42a0cf9dc72716eaf9d14137c06d8229e06a4431b50ae269bada18d977c9fad3eef9b7b5181cb8f7b35b88987ab2db17bd85b1742220ebc8d022f50eef066f6 SHA512 789f3bb759b470f4e29735706a73c64df0646c882c6bad3b051dd395faa89ce2c1cafceec34ff28d9c5c4adf6cca4f5eec6b875bf0e398c925431f9086f3e756 DIST gentoo-kernel-6.4.16-1.ppc64le.gpkg.tar 63488000 BLAKE2B e0604a0b4bf8d7aa7a257798148fac11e0c4a072e0a775c57ddfa74681a265a775081b91e64732e45656fa303e817c2afa8f5c281ad2c5ffdc4373674d5917d3 SHA512 4aa5e73de475bd77f5a0e155033945b5770e761433e3cd983fe5efface2b971545439e99d0c048ed3bc21aa825d3eefa4ecf6615bd0099374c50cc0fd9e90243 @@ -52,6 +56,10 @@ DIST gentoo-kernel-6.5.3-1.amd64.gpkg.tar 83578880 BLAKE2B 9413bc88b067e91939378 DIST gentoo-kernel-6.5.3-1.arm64.gpkg.tar 73175040 BLAKE2B c17faa62cb94999d051a5764df7f3e398795dbcd0bfe13b23582a15d2c59188eff00c5d11cd376d9dc1a8c80629746948cfa62c2a337b3a0bb6382482f797ea9 SHA512 4ae0a14d7938ca325680107a094a7d5a58b9139ae28a4916493c5e114c50dbbccaedac3bb1b0012af6ef408ca844fe3c6b7ef52c234eebb92f92b0a1ae44be5e DIST gentoo-kernel-6.5.3-1.ppc64le.gpkg.tar 64460800 BLAKE2B 65ccb9381be1572710ded7a369eb665dcd2ffc9b1058e7133fff7a9cccb4e2e159eb4eb9e7b437fd883b92acbe9b54390ecbaa4ee40e8aea9bb37f86687046bd SHA512 0696d19cfb48b465621f2c10fd27c44ccfae37d5bd80fd84f37255ad76c8d7475700784d77ca0ffa981feefe4bc82b920bc78557745634e74bec4c5ac6b38f41 DIST gentoo-kernel-6.5.3-1.x86.gpkg.tar 67338240 BLAKE2B 30f4105c3aa0fd516eba549705294030bd5757e4467490c6f6b95b4444ed89b5575768a15bb64a61c17a362a51505243254bcbbc806af18709553407d919dac2 SHA512 9fd0760261c40ae3cb9adf75ff457866c11454f72a79f836779a533640b5fa9d568090505be3cb502a00aaed6581b8c387f05a36b72c00ded83c2299c0340754 +DIST gentoo-kernel-6.5.3-r1-1.amd64.gpkg.tar 83630080 BLAKE2B eb83ecca1f1543f979dcd086bec0430c19d0425af069f118d49016a04f603882ed0702d7115f3a1a6c81b828b19277cfa2c71e982f6f504e51060f44041d9dd4 SHA512 8b38bb83cacd6e2d16041fdadc8f85e8d85dc7b971d65edb390170586f5f62d3da44dc4c8864032fc6aa7840fb138bc6c055066653aefe163a90f1708f4fead5 +DIST gentoo-kernel-6.5.3-r1-1.arm64.gpkg.tar 73175040 BLAKE2B 8647a368d033d41ed560abb49e23d1bd7305df88902c368b86d9b150cd0f25478f60cb20b97046dbbebe034862a290402b24df11aa1f8421ed547c2cdb48771e SHA512 12f825fe466cba5bea9336a01e68b08032d7dc8eb5d098238d295d6a3f54e404227a2ba754525881974cbf9996fedaa14c0e65387522f96ca3e6c8e7d8bb54a8 +DIST gentoo-kernel-6.5.3-r1-1.ppc64le.gpkg.tar 64450560 BLAKE2B 8adf4b4e64a5cd52639ebf3f1cc45579540f2fcf5bec806d620d0751258a490a9e48586fe92ff84fd99d443a51eccfe4ab6525c3acb627786c57475659819c72 SHA512 550514639606a16aa7094799380b93a402eac07f57bd752c5a5e33520089fd26d0ac446ddfe02de2a94e9a31b3188666ea8b8fd0b606c51b15711771f3917f63 +DIST gentoo-kernel-6.5.3-r1-1.x86.gpkg.tar 67317760 BLAKE2B 93dd9163c763a75919d1207335b5a0a4f23630996981c66b43ef4593cb068975107e7e2b7d25e0c31a59a9e92adb663a110f1ba62221e6dda45a8464aa0142d3 SHA512 e4ef0d789bf62d0f837ce826d4acfdefed515450aa3d869c3fe2d052158d322fff3038a9cfb9de3f425e5f254a8ebf623b473df27c24a4c88f5e1690e988c565 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 @@ -64,7 +72,9 @@ EBUILD gentoo-kernel-bin-5.15.127.ebuild 3025 BLAKE2B 95e4eb0f4309e4141a863875ec EBUILD gentoo-kernel-bin-5.15.131.ebuild 3029 BLAKE2B 7e344f2c9619826058ab1e7437837bb2307480c9b5be1e52638b4d30cd458ed59f7053e896ab8fb7c02965a1df0f10f2d67fda031e2ee8764460134592585a2b SHA512 eb0c10f46c137cf2a98f606b0bd49fbd43920136bde57d445bc2feefd1d1ec57212b651510b9ad6a7ea37cef2d02e004217e136ed10ca23b39c3791162e5d8f6 EBUILD gentoo-kernel-bin-5.4.254.ebuild 3024 BLAKE2B 1a00a8ccac9f12f20c9f3d39572af89a077c3b3dd424133197f35123ee41804588b9763008011c3ee33f269c49eadefcb4d31c01371685845bcfd9fbd189ff78 SHA512 3fb6a4b6ec491d6bb4ad19c37dc18e40565d7d6ee248563c219a43323c263ff1fccb0863727258c56c7bb6f2397cfe968eb974a1282fa3a685a6ed0c3c5247dc EBUILD gentoo-kernel-bin-5.4.256.ebuild 3028 BLAKE2B 022cdf6c0db736314e0bb413422f2267146a7c22273e2149f9f8e85feff555b01e28ca044e875d82eaf4e7cb139ec530561c0ba6122059f3b0be63cfe6fb99ea SHA512 c465e8d904061fea29ed34e83879ccc2dca6f2469caf78c76b44f1a696d2e21a36826c6b3a87d6b581ee12ccf72bb02bf6cb20624a3108ad595d5a59dc92b880 +EBUILD gentoo-kernel-bin-6.1.53-r1.ebuild 3029 BLAKE2B 7e344f2c9619826058ab1e7437837bb2307480c9b5be1e52638b4d30cd458ed59f7053e896ab8fb7c02965a1df0f10f2d67fda031e2ee8764460134592585a2b SHA512 eb0c10f46c137cf2a98f606b0bd49fbd43920136bde57d445bc2feefd1d1ec57212b651510b9ad6a7ea37cef2d02e004217e136ed10ca23b39c3791162e5d8f6 EBUILD gentoo-kernel-bin-6.1.53.ebuild 3025 BLAKE2B 95e4eb0f4309e4141a863875ec46ea241e6e9e96260bdd3804400e11d32dd2b12bce79c1c66e0abbe6533cc9c9abf0f19eceabe46885b6feeac986287fec0070 SHA512 1f22d7d6843659d872c9ea6bd6eda48f99841e95c12aa723020633cdf30564f43e4aa63e3433f0598930230a03d2c27a1714d2b865a548edfc5725cf9f99176f EBUILD gentoo-kernel-bin-6.4.16.ebuild 3160 BLAKE2B 56befa90a572da973654c27f61d9303eebf75154eb8f381c87acf65b05ce70264690c36ff6d2896ead4d7aa6a26c5bbd9ff5a65ce32521cdee4910fd640cc276 SHA512 9c61b0fd4305f5ec716a3f1998875bb6268d3402466776e35e3413c2d69e255c9851cf15f0dd2f5d75d2f94208480f601f3b4cbaf09815cf63624432d5fef531 +EBUILD gentoo-kernel-bin-6.5.3-r1.ebuild 3160 BLAKE2B c48be30980fa7329a4e268bd0743a3bbab040af1acec4bee93a6e019ff8d5cd0b2b5c4f375a32ca37b64bc5d98b67b77d0b2a7b709305de1b1479f099a8f8fd2 SHA512 6302df75ebd899875b237cc3a151b25166648524974bebae807272cb2a6a62e1ce4a79720aac42bfb7ccff7bad4ca0157b0a048e0536333358d810b9a6bb7529 EBUILD gentoo-kernel-bin-6.5.3.ebuild 3160 BLAKE2B c48be30980fa7329a4e268bd0743a3bbab040af1acec4bee93a6e019ff8d5cd0b2b5c4f375a32ca37b64bc5d98b67b77d0b2a7b709305de1b1479f099a8f8fd2 SHA512 6302df75ebd899875b237cc3a151b25166648524974bebae807272cb2a6a62e1ce4a79720aac42bfb7ccff7bad4ca0157b0a048e0536333358d810b9a6bb7529 MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.53-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.53-r1.ebuild new file mode 100644 index 000000000000..83c6a5e4fa8f --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.53-r1.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.5.3-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.3-r1.ebuild new file mode 100644 index 000000000000..26b296bcb3b6 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.3-r1.ebuild @@ -0,0 +1,132 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_EFI_ZBOOT=1 +KERNEL_IUSE_SECUREBOOT=1 +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) +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="$(tc-getSTRIP)" + 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 + + # Modules were already stripped before signing + dostrip -x /lib/modules +} -- cgit v1.2.3