From 1615d14d4de4360b2241ce5cd8a84157cc86cde0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 2 Nov 2023 21:51:21 +0000 Subject: gentoo auto-resync : 02:11:2023 - 21:51:21 --- sys-kernel/gentoo-kernel-bin/Manifest | 14 +++ .../gentoo-kernel-bin-6.1.61.ebuild | 127 ++++++++++++++++++++ .../gentoo-kernel-bin-6.5.10.ebuild | 132 +++++++++++++++++++++ 3 files changed, 273 insertions(+) create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.61.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.10.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 45fbae756dde..89161d41b000 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -16,10 +16,14 @@ DIST genpatches-6.1-66.base.tar.xz 3766288 BLAKE2B 3cf0a62fbfcd492e5c16b4158bcf7 DIST genpatches-6.1-66.extras.tar.xz 3816 BLAKE2B 8b2f2aa2f65d427c4ec39cdb988200d31d360f2ffde6f633838b0c3437c4efe8438e01ccd8e2de57d7f164c32d509e35a8be1ac4818841a7719a3cdce9e47717 SHA512 7f40e6153812cfe74de8ce376d4ae02868b6f246027cbce67e0714a139e60b4aa32743876c180f3b7b07e9b6fd07d2138e21ff5e6ced9571d29bf3e647b615c4 DIST genpatches-6.1-67.base.tar.xz 3816044 BLAKE2B 9116263f1f3cbb472ad09ad785eb643cc4deb16f94936196c1dbb3d500b6e20447d07d434f4fbc59fe8cfc03076da0aa0ec22a3c6d93e09d0dfed6d6fdfe7add SHA512 609935fec85285a34e4fa6032f552230aeb7aed1caa867d34810a25f68c2295e0a8f886e0a093f111b1623ba364cfd6e17b237d670d42c8c539778810a02f681 DIST genpatches-6.1-67.extras.tar.xz 3816 BLAKE2B 6aa8e9614221c2b9d84df9f75e5b8eb530ae8752b406ad698be86a8031b47940f9efb1de9bedfa0e466d0bad32dae60c5c639815785353a49e4b439de79a80ef SHA512 a911476dcfa9767f4adb946bcdcbe475e78f83753a7880a7e3a96aed347f1ec520ba8d75fe4e5565b2aded25965cecd3c7f79fa12009af043f7408200e27189a +DIST genpatches-6.1-68.base.tar.xz 3834732 BLAKE2B 3fc3dd48708491bf32a17cbb8c23e531e2b95e60ebcbe3faa6fbe2c60e610aad9226d1846774ddd2af56e985371780e10a249a50e2ac46d7e482428f67b289d9 SHA512 28b810ad914e12035ef724f7dc4b3cc6226cccad4997804a9e3ba5a4f4a420f5f397eade002dd7a9231efc2b0c1850c40c44bf5daa358c24e42bb50da05141d8 +DIST genpatches-6.1-68.extras.tar.xz 3816 BLAKE2B 86fce6b028ed4c3b713cddfea42f56adf55e105c9defbb8f6a84bfe397f0163ee9759218c2b43bbe9f9f6838623816fd3c31887e5b05ac8e98235f01f750a4dd SHA512 23550c824e7f3a1507d1e124224f0c1f4b7bd3deb07750d392011d374352ee430acb84e55143f3bbaafb67f9ea28a6aabdee77ffe3a78d68691f30fefd4304cb DIST genpatches-6.5-10.base.tar.xz 631564 BLAKE2B 7a9fe483c7a6a040af5a1fc0fd99dd7d575a380240268bb61d68caf95613d53fac46edf6cb18633b6dd2e803c9360d3cc13f0160e6ccaf811ac8420f7dd30771 SHA512 506abb2a66c51e45ad3ebab0c3b921faaa890640c7236eed377aeb27dff9da552088ea8d8192b4f2e142c510c7d565a5c8431444fb39bd82948ec0e696c4b083 DIST genpatches-6.5-10.extras.tar.xz 3704 BLAKE2B 4bfee3cf5f3af32c02f4df2b91437258a4bed38c4cd1fc8f8467020ffe1835ec86dee58a10d2e1775fdd6392c6a28552ea3a90ff5fd36504ed43cb7787ea7e5e SHA512 48589be11fcc969fd3f46475f8aa53047f191c5fec66918e84d178e14f531c209300808f7c2ddb479fb8409a344f205f59b72dd18b6d79d1ca924eab10f81f85 DIST genpatches-6.5-11.base.tar.xz 690272 BLAKE2B b647ad0ef234e1470b72e4cefc091b48bc81b0591fa41d3741d25360d6c92d6b47cafe35a06c5246806072d11ec4839f76bca382f8cf38d0e76ddde9f4fa3bb0 SHA512 53da072920619acf21afa89f3df7b24c27c1798a1244aef3f21f76bcdcb38ad1ad79d07e3aba62b44773af57162c89bb77eb4c19b7056e0806926ec5951d149f DIST genpatches-6.5-11.extras.tar.xz 3704 BLAKE2B 21929f8a381175f9c33ac9df5f17388eb2f99adb00fac7783c612a2712db1d4b2f179b2fa6ac548b77a1d0e4c9c9d88e32cb393531c7e6ca680f9c98a037927a SHA512 f3643139bd6b2b324c477998b69418b80e40ae675dbef9bb34e26f138a10244ffcaf551de7c49623b8aa797ed7b9ba82e680a62b7996ed1bd1f8002b29b09cb4 +DIST genpatches-6.5-12.base.tar.xz 720508 BLAKE2B 429f4fbc3292ab46250bc1716212f369f888ee0219ab19baaf8a7e3634c012bcaa64820639b5650b5346cc93fffb3b00c8ba5ad48c3f0030e5db6102646ca60f SHA512 1b5de16a305f7cddc3125be3786347a037e25b8b53ad05c35c8efd57e624dbd7cf152898c3084847d6c9b77f5bc6df378644434e877434d40ad4fb0d08d6a37d +DIST genpatches-6.5-12.extras.tar.xz 3704 BLAKE2B 3d18f544a455d1184eb9687a5c53c7dd348b12f736313a3bb9d3417e0f4458a8e7f962451ede58f45016af700014fea87cc3336b30ede9f899dd75369eaadc57 SHA512 0a8c8a23d99962e5f0028ef1ee8ba79cd20af0ccf6b08e554405ee964cf542b6758d0e2456612a410d7fdfca5572e4af7c4d1c3b65a9b426412c1b480b2d6475 DIST genpatches-6.5-9.base.tar.xz 574412 BLAKE2B 339dc1d19a323c2143fdd394b324e8d73b6e21b833e48096b6ae312b188bd9f39811fcd7b93f900c6ceb6982eb6ca108b2ec617b8dc98fe2ec255ec3b002e31a SHA512 42873d29784c0d85434d7eee81ef2000a42164e20ef74c875b81ed8df96ec3632261485c38e17ffa41d94df200b69d8d0e663eb8c90ea741234e860aad9026e3 DIST genpatches-6.5-9.extras.tar.xz 3704 BLAKE2B f45e43b281c9ad49870e72a7d4e3790f316076f438a5b45fbc53bf3fc29173675fae1e1b8ec170aa7609e0a87e79afbe033ffe7ee64d1ebdf2c1200fcdcbebca SHA512 888a87e165c64ee71b04b6f103666b4f699f790aadb58314253f63e82b0c245646f29fc3f139da2eb6a08db7c8f40c5239a359e81e3d7ff2b0d60b219f8756a8 DIST gentoo-kernel-5.10.198-1.amd64.gpkg.tar 63139840 BLAKE2B ef7840035ca70fa40147551529e6fea01ec8a0a21b20d92eee53d38f65543c29dea9a1425680becb4944eed2cebc8404baa2d4463e0cd543358e015c10b17ccd SHA512 f5ce69bb2ed049a155b02e0ee6605fb6c62b91f9edb62e1a673a3b12a4d33f6e5ea7ef5e068b6fc909b1480dacfb5c32658be99ac591d6cd4c75a23ea20ee872 @@ -58,6 +62,14 @@ DIST gentoo-kernel-6.1.60-1.amd64.gpkg.tar 72581120 BLAKE2B 3053a4c8707436c3f479 DIST gentoo-kernel-6.1.60-1.arm64.gpkg.tar 65576960 BLAKE2B 77a2d1fe197186620cf9cf6d66eb11e7a1ad72a4ce26783f686f42ddbe18005d38ac98be3ff9369535a9c0c346536325b23cd037e35d24f25a1f58cb26fa828e SHA512 9942ca4c56a3d813f9e38b91b2b1cde6f53e506e7deadcd5f772da008ac658ba5ea0ecce546ce45eadf7008b9dabd8bc09f9c1d046c83ca2632b29a87fe99311 DIST gentoo-kernel-6.1.60-1.ppc64le.gpkg.tar 59842560 BLAKE2B 6da8e5e5e35f3ceb8bf47ddf6053396d920f484b944dccf344ea102b3ff322a6180b5e1c0948dd47bdc57a0e5b5ed10628a47c59434dac736f44dc5fae07e9bb SHA512 2967b93cf94b77a40d5cf190fd0db855ff15e15d18ac63ea3831cc10b865238c62208ceb68def7681e604b5beef20ac860738eb6e8a2c2421a565156cc97ec82 DIST gentoo-kernel-6.1.60-1.x86.gpkg.tar 62095360 BLAKE2B b6fccd8e5495df2cfbdcb56e1a37db2c35b0d7a1773c756a25fa0a04aeda3135d8d76b1bbcaaa4c082035573e7d2da1b219827c0728bd8ba6f31fec78f8a9b73 SHA512 43aa8c618754704f0719cf713b63161a604a8b64730ee2ecae759ea9d6ba2cd2cfd7da552c7d0b7a6210607e86bbc332a1ef62a1aba8046597ab0172bfebae6a +DIST gentoo-kernel-6.1.61-1.amd64.gpkg.tar 72550400 BLAKE2B 76991287a439c0badfcd82f3f726128b6d0d2cf2fbb487e22d7f390c505ed90782360826b9e98b99f29e0a9c820b500b58931c8f0d6fc288a23511c572061113 SHA512 a9d92ef405fd646563e24f73fb679e0f7bb348240edeabf766f40f7e4836271395ab3de46547c1904a25c7ed1af0131b00b588841f6f17063afb2401bb7238d0 +DIST gentoo-kernel-6.1.61-1.arm64.gpkg.tar 65576960 BLAKE2B f1f10277e976c3643be5fa8e834ea7a9defee191984a0fdb2d5fc9b592c40e7e597a98b19c0948f26c30ff129bcfbfea85a09ea26c384c85454022cf6482c202 SHA512 031b405d4342ed4ef7d00fb94cd38d0afb3f7a0ace156b52b4c87241f6e1802b0befbb4790026c5e981d9e661fc257b3eb7eca7ed3db8e746a513394d80b6656 +DIST gentoo-kernel-6.1.61-1.ppc64le.gpkg.tar 59852800 BLAKE2B ec8d57bfd304e65b57e78332fc89ff1d4333f35c27beb52d1acbcbfafe3066b791302f7ca1f92d2c51f4ee6387e0d5a414eedd266fb0d6517d6c116046bf7593 SHA512 ac93acded9264150d228ed84f4594096f1ea23e9fd83fce744f7f92bea225887945f1a1349053a1ced83e240b95d80ca5a81e376586e343a033cb4ff6eac80e9 +DIST gentoo-kernel-6.1.61-1.x86.gpkg.tar 62115840 BLAKE2B 8db48c54d9b9dbd15b6b7104a687083e954346456d74544af4653d297274cfa14fcfbac5279b07a0cef9296e31a23870b8e15fe1b89d308ebbe77394200aa230 SHA512 7d84d461ad9215cd54789a8258c291cb99361c4d991e7ff57e42b802f1966f918c1ed94e070f4078eb577b831d03c103e29251003a64fe9891d34b266a82954c +DIST gentoo-kernel-6.5.10-1.amd64.gpkg.tar 83722240 BLAKE2B cc31076b25edf689f7976a679fc5fdfb25d7f21c18562f32c47bb2d852b922dc50a4ab5d813725fdb64e2d06ab55ea22643cde733fac0d9379ed58b187a3d93b SHA512 7d689b10af6b471048e172be41d090e35774ba9b7cab5fd79cda489cd6224b47b16497cb73f840cdd4de8577096b734abddcc89f990f32d17473968a326db0fc +DIST gentoo-kernel-6.5.10-1.arm64.gpkg.tar 73635840 BLAKE2B d7b0dd04cfed53281d679e6687d581d0d12c9096da1d36ecdbc38f83287a18b55bfa335fb8dabb623bb356df76321a61db147aa2a499a40072adffa210bc0a25 SHA512 ec9b958d660768dabdd26c633ed39b37f6264231849f7bd86d65a60938f496f69b0cb2cb1afe9d3a95987b8ca5c495507f5ca9d6e6df9f95ac87ccf46e0bd914 +DIST gentoo-kernel-6.5.10-1.ppc64le.gpkg.tar 64532480 BLAKE2B 5c6e81f5ee141dd958671aca5aaa10314198b3fc38d025f36263c1d1086e09b723b3c96688c2175ffc94f8e3a93316a47b2b8d185499e6fea31a9aeb36fce24c SHA512 ababeaa3f298d5503c6db664c67fbc73e32e0efca4cf14c00399808e86c0a3346b6304eb36264541d5a9ccc7e84091f63348d296442c09abce8f74951e360d55 +DIST gentoo-kernel-6.5.10-1.x86.gpkg.tar 67563520 BLAKE2B 9ffa4f434169c7672a202b6e4890cae9c68c212a8f3d584309ee1a29cdd66f27e36d5c73e66800473d3c9c42fd9df25346d22d9a933b2852e266ce6be9298525 SHA512 ebc3fae801e529c6262bc7d1eee12af3191038dcf6a1934367b253820e5e63956ded88aa5b6acf4bc0b2d72b8368eed7206485b64dbbce6449582ca25e4ec0c3 DIST gentoo-kernel-6.5.7-1.amd64.gpkg.tar 83537920 BLAKE2B 90f9ab1b3214bfbfbad8450488c52e60d2534f9ff4eafcaf5d3c219b2d48b39590c3b5456ee10db41038cf0cab6d6468b4e8c53f714098d1611511ff5ee1cf69 SHA512 0ca65fb868f87843fab41942d7783a385151adf2ef203b17a9ae7753f85392812588cde1481b86febffe371ba71d0e6482cfdda12b0d4dc607025375a1db0e4a DIST gentoo-kernel-6.5.7-1.arm64.gpkg.tar 73390080 BLAKE2B cc4e26bc1a73405e4039c943cb0ba73bf215694cf5936e0f20bc9356c9dc3adf042901c9db771cfb586ccc6f524fa444539fc49019c77b4ac2ee0cd29dd97ebb SHA512 4a55ef7726e114f180627d3c0b1d7077812f7920a7bfc726e28e44d810f2a9af1bff74a8c0ff73d396247ea865c0045c49fbf054961e620127f12d483a9630ce DIST gentoo-kernel-6.5.7-1.ppc64le.gpkg.tar 64430080 BLAKE2B a79c67c1bef8d40eba08a9afde1919276eece3748ba35940609c2380c09926751bcfcfb6c415f869183e39e82758f9ec55feb401a40f5040c707ff1c879c6497 SHA512 9934976e2d009e72c63efeee9deba67fcef7a2e624d9660cdaa812a0479144931efe0663aa5e07124e0105277f8930a6bb9ae3f2fc90fddddb9069da71c51055 @@ -83,6 +95,8 @@ EBUILD gentoo-kernel-bin-6.1.57.ebuild 3025 BLAKE2B c020a8ed2bcad22f892c23eb542f EBUILD gentoo-kernel-bin-6.1.58.ebuild 3029 BLAKE2B 677551e644b14acdc03a67e7d72b73bcf4da98f6790f27f4ccbc1fb1e8a6dec38ba14dd99c5353dc33ad922e5fa82a6fcac6b8a619c1b3a91484f2bfa4fabdce SHA512 e8b83bbbad0b4babc82c9726bcaf7ffc998f28ef7be82389086c22124123fe27c46e6b4a6e11f1d46402312d6389137ad33c889e424ab90e273d8556f828950f EBUILD gentoo-kernel-bin-6.1.59.ebuild 3029 BLAKE2B 677551e644b14acdc03a67e7d72b73bcf4da98f6790f27f4ccbc1fb1e8a6dec38ba14dd99c5353dc33ad922e5fa82a6fcac6b8a619c1b3a91484f2bfa4fabdce SHA512 e8b83bbbad0b4babc82c9726bcaf7ffc998f28ef7be82389086c22124123fe27c46e6b4a6e11f1d46402312d6389137ad33c889e424ab90e273d8556f828950f EBUILD gentoo-kernel-bin-6.1.60.ebuild 3029 BLAKE2B 677551e644b14acdc03a67e7d72b73bcf4da98f6790f27f4ccbc1fb1e8a6dec38ba14dd99c5353dc33ad922e5fa82a6fcac6b8a619c1b3a91484f2bfa4fabdce SHA512 e8b83bbbad0b4babc82c9726bcaf7ffc998f28ef7be82389086c22124123fe27c46e6b4a6e11f1d46402312d6389137ad33c889e424ab90e273d8556f828950f +EBUILD gentoo-kernel-bin-6.1.61.ebuild 3029 BLAKE2B 677551e644b14acdc03a67e7d72b73bcf4da98f6790f27f4ccbc1fb1e8a6dec38ba14dd99c5353dc33ad922e5fa82a6fcac6b8a619c1b3a91484f2bfa4fabdce SHA512 e8b83bbbad0b4babc82c9726bcaf7ffc998f28ef7be82389086c22124123fe27c46e6b4a6e11f1d46402312d6389137ad33c889e424ab90e273d8556f828950f +EBUILD gentoo-kernel-bin-6.5.10.ebuild 3160 BLAKE2B 56befa90a572da973654c27f61d9303eebf75154eb8f381c87acf65b05ce70264690c36ff6d2896ead4d7aa6a26c5bbd9ff5a65ce32521cdee4910fd640cc276 SHA512 9c61b0fd4305f5ec716a3f1998875bb6268d3402466776e35e3413c2d69e255c9851cf15f0dd2f5d75d2f94208480f601f3b4cbaf09815cf63624432d5fef531 EBUILD gentoo-kernel-bin-6.5.7.ebuild 3160 BLAKE2B 56befa90a572da973654c27f61d9303eebf75154eb8f381c87acf65b05ce70264690c36ff6d2896ead4d7aa6a26c5bbd9ff5a65ce32521cdee4910fd640cc276 SHA512 9c61b0fd4305f5ec716a3f1998875bb6268d3402466776e35e3413c2d69e255c9851cf15f0dd2f5d75d2f94208480f601f3b4cbaf09815cf63624432d5fef531 EBUILD gentoo-kernel-bin-6.5.8.ebuild 3160 BLAKE2B 56befa90a572da973654c27f61d9303eebf75154eb8f381c87acf65b05ce70264690c36ff6d2896ead4d7aa6a26c5bbd9ff5a65ce32521cdee4910fd640cc276 SHA512 9c61b0fd4305f5ec716a3f1998875bb6268d3402466776e35e3413c2d69e255c9851cf15f0dd2f5d75d2f94208480f601f3b4cbaf09815cf63624432d5fef531 EBUILD gentoo-kernel-bin-6.5.9.ebuild 3160 BLAKE2B 56befa90a572da973654c27f61d9303eebf75154eb8f381c87acf65b05ce70264690c36ff6d2896ead4d7aa6a26c5bbd9ff5a65ce32521cdee4910fd640cc276 SHA512 9c61b0fd4305f5ec716a3f1998875bb6268d3402466776e35e3413c2d69e255c9851cf15f0dd2f5d75d2f94208480f601f3b4cbaf09815cf63624432d5fef531 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.61.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.61.ebuild new file mode 100644 index 000000000000..d2845437114c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.61.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##*.} + 7 )) +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.10.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.10.ebuild new file mode 100644 index 000000000000..c378c0fde329 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.5.10.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##*.} + 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="$(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