From f9fff8823e0cd1f6570b01337ac99e5bd49c824a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 26 Dec 2022 02:06:21 +0000 Subject: gentoo auto-resync : 26:12:2022 - 02:06:21 --- sys-kernel/gentoo-kernel-bin/Manifest | 24 ++-- .../gentoo-kernel-bin-5.10.159-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-5.10.159.ebuild | 127 --------------------- .../gentoo-kernel-bin-5.10.160-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-5.10.160.ebuild | 127 --------------------- .../gentoo-kernel-bin-5.10.161-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-5.10.161.ebuild | 127 --------------------- .../gentoo-kernel-bin-5.15.83-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-5.15.83.ebuild | 127 --------------------- .../gentoo-kernel-bin-5.15.84-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-5.15.84.ebuild | 127 --------------------- .../gentoo-kernel-bin-5.15.85-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-5.15.85.ebuild | 127 --------------------- .../gentoo-kernel-bin-5.4.227-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-5.4.227.ebuild | 127 --------------------- .../gentoo-kernel-bin-5.4.228-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-5.4.228.ebuild | 127 --------------------- .../gentoo-kernel-bin-6.0.13-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-6.0.13.ebuild | 127 --------------------- .../gentoo-kernel-bin-6.0.14-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-6.0.14.ebuild | 127 --------------------- .../gentoo-kernel-bin-6.0.15-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-6.0.15.ebuild | 127 --------------------- .../gentoo-kernel-bin-6.1.1-r1.ebuild | 127 +++++++++++++++++++++ .../gentoo-kernel-bin-6.1.1.ebuild | 127 --------------------- 25 files changed, 1536 insertions(+), 1536 deletions(-) create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.159-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.159.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.161-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.161.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.83-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.83.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.84-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.84.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.85-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.85.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.227-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.227.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.228-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.228.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.13-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.13.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.14-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.14.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15.ebuild create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.1-r1.ebuild delete mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.1.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 bb51ed1c185e..46a85ea1185d 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -75,16 +75,16 @@ DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7 DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f DIST linux-6.0.tar.xz 133886176 BLAKE2B c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa SHA512 bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714 DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 -EBUILD gentoo-kernel-bin-5.10.159.ebuild 3008 BLAKE2B 300e9e3a2bb5e48c84d15e794af3528cb36f9af85644efaf5389ae3bda0f9c950a883f07f65d76e18f141505501a6183200ea02522989cd8254cec375f61cc14 SHA512 e2d748d0cba72dc83e86e4b9f970d4bb7ba9f769b8b17ccc55a7721a124f6df8de9a5a24bbb8d24a10628bcb61d6f4906e9dcaf88daf456dc5656c9c1447982f -EBUILD gentoo-kernel-bin-5.10.160.ebuild 3010 BLAKE2B 196eb0cb19cbd99979d6fc8d2d205d87257888ea9a0017a06d1cf70a86417a3e220e320a305b8a708acc27371e82e85102fc88e8c882cba77fef141ac0e690cb SHA512 9e4fb16a50cee00a31cc28f2974fc8dfa4866f6e6050b6ebe6a25009d92d58edd222936e750044770a7d7ddc76b217cecd038ca537f7725c03ff66f53ca9a0a7 -EBUILD gentoo-kernel-bin-5.10.161.ebuild 3006 BLAKE2B 631c52c5a4bfbaa4419baa6be9bf3e49178c0dd194bffd3e04b775340c6e3c1a58e66d0e0c8c1b5088a42e993483259e5e6a8eb8a0633770c3d47673b0e94d7f SHA512 69c6f756fac56169a1abe72b420602e1ea05eac6e0f724584728d2e3fc1ba3d2b4c1450be8d50ece182fc9ae0eb27f5320e18fdf4c2ea629838e0923f66b7022 -EBUILD gentoo-kernel-bin-5.15.83.ebuild 3008 BLAKE2B 4fdf89c9b4429a6e24f89f349ea0c2a90e75d14d99b74515349eaaeb3a89d61901b050c9d71c81c91753eaa6c9609e33645bf6b8a735d1941fe98f4b800c5ce3 SHA512 7b7d93d10e7ca6a71f0f52223ede5ca697e31a17dc455b7ae5349d6eb66c0b877c03cef5b3a8c359f43eb34e12413c6f42e1de0f9759e5e8a2998321a837476c -EBUILD gentoo-kernel-bin-5.15.84.ebuild 3010 BLAKE2B fc2d18deccbc6a8859381f95f1ca104d912400fb937fb7c3ad6698952c9b9c9e33ab7b92ba7ef9bfb3e7e66996bdcebea4c68316245bbd8f7463a170dcc5d2a1 SHA512 b453530eee26d316e86b5a5ae32ca494d18851da1a109e0cb42329fb6b3d7786eddb165766b0b11730a1fd6d86c9eef315db17da85f669e6664cbc253994f425 -EBUILD gentoo-kernel-bin-5.15.85.ebuild 3010 BLAKE2B fc2d18deccbc6a8859381f95f1ca104d912400fb937fb7c3ad6698952c9b9c9e33ab7b92ba7ef9bfb3e7e66996bdcebea4c68316245bbd8f7463a170dcc5d2a1 SHA512 b453530eee26d316e86b5a5ae32ca494d18851da1a109e0cb42329fb6b3d7786eddb165766b0b11730a1fd6d86c9eef315db17da85f669e6664cbc253994f425 -EBUILD gentoo-kernel-bin-5.4.227.ebuild 3008 BLAKE2B 44a7d00adfd07a697f713774eee327f3110ef86906d286a474fdc784db77af2f3806d6b6a4dc53de9033ad3924827dad33ec59dc2bbc273eac55e55b700cfb04 SHA512 c7f7373c82f7689c46cb1ef4b891471d6f585ebd2f09435778869a072c00694ccae4fd25fdc7522dce8477a93b2872113cd88094906f085fb3ae7f5ab4d41481 -EBUILD gentoo-kernel-bin-5.4.228.ebuild 3006 BLAKE2B d649ec6f922ff528e1758626c058bd250f09b2d9168f1f036392a9a55825cac6d3371fbfd9fba9bf3525170967bb0f00ccee0afe3a4415aecf77aa670791b42b SHA512 042b73e99b2baa0661c7593299ff1d4237a1c1f0b1297b685627366fcfa7046df1e24cf677f5b41c3b44080d027930d5fd723754cc112ff1bcca35437a652d7d -EBUILD gentoo-kernel-bin-6.0.13.ebuild 3012 BLAKE2B 358c87191068547f5246083a25f1b187b3efa9068f9715e060677446937641f0c7b84017d26e5d0e316e7dd5f22901df313b781284308d8f8781a190e7b4b9d9 SHA512 3757c8df44562373ea4b62cc6428753ac879baa9166b9dc735dab83e66c3026806b49539a9776b7a8d1fd923c2736ea44e9c63466064a03ac1a478eb4cdc10fc -EBUILD gentoo-kernel-bin-6.0.14.ebuild 3010 BLAKE2B dd1c4ce7874a860abc8ea846ccf014adc88726de2b3c7c86c9ae445ca758fc45e034082c862adb879e54452e43d9a2c2b4c08cd771aefd9cffab573889c2d63e SHA512 2e4ec90133896dd91a50bbca9c7434cb012b67e35d49cf399f31ed833cf41274317f6130199417e4247043f1580a050bf6993d7e2e17ea4e2c7363fb40038eed -EBUILD gentoo-kernel-bin-6.0.15.ebuild 3010 BLAKE2B dd1c4ce7874a860abc8ea846ccf014adc88726de2b3c7c86c9ae445ca758fc45e034082c862adb879e54452e43d9a2c2b4c08cd771aefd9cffab573889c2d63e SHA512 2e4ec90133896dd91a50bbca9c7434cb012b67e35d49cf399f31ed833cf41274317f6130199417e4247043f1580a050bf6993d7e2e17ea4e2c7363fb40038eed -EBUILD gentoo-kernel-bin-6.1.1.ebuild 3010 BLAKE2B 6bb0a73104e857a1547591c633dcacd9776fb913b31cbff875b20b33ac6a34bcb6884ea5256913c2fd6912c70537ca4918e6915fa8f9c8bc53c49e9c1a6728ba SHA512 6d5749af6255ccfc303e5c2366cb62f42c7dbda120e07bf05a29cc2959d8fd154e40d650e482208450fb8419c0a0d655513a6ba656e7910d2b8670d30cd55495 +EBUILD gentoo-kernel-bin-5.10.159-r1.ebuild 3024 BLAKE2B 6116c893ffb48bce4ded2a503bba3224da234c66e8e2219bf852f435f5cee1c645ffedc12aaeeb799e1649e866647b5580ab87d98d5477a27773bf01f2bd5809 SHA512 4de04b02c2a7814667c762bb5c0d97d76c91bfe57c05c758d6477f278e1459ed2ef045567039ecbd6eb7ed5fde8fa6f1da10806f2aa3b7fde75209e4aa8c62b6 +EBUILD gentoo-kernel-bin-5.10.160-r1.ebuild 3026 BLAKE2B 5bdf78291b4dd9f7b977537520424e0f0da9c46c4a86475ee1d124c547bb5d80e7d6fa8ff2ff603a40b6afcfbeaf7fee0c9b7f7bc80d53fff1ba57f670ee1ef2 SHA512 58d28f84104c659834cb37052fa99517b848b90e9fafa33879c760e3a3d15fcb9334b361aaa7967641a2e7a1c2b8f285464675c106cfaf4aa54bd72eb3ecd7d1 +EBUILD gentoo-kernel-bin-5.10.161-r1.ebuild 3022 BLAKE2B 6f21255ea312415373259e8272f59a2fab017b33d28a1ef86113acdc6778f2974273b63af219ed1003a0c2123fea99fb6c9a09625f9d00704339c2daf5fa836b SHA512 faa03d4a455bdb04c4e24ac62a5656a3411df53e83e6ebd4e4e8a02b9684e915582183184e3cb23029afa5f620d1dee5d3526ce06a215ddf10169cdb12b5769b +EBUILD gentoo-kernel-bin-5.15.83-r1.ebuild 3024 BLAKE2B 9b3e4086c230f8fc1b7b8736e76fdab5dff2bab5fdbe9bb37dd5167ecd6d401ea5cb75a206cc58f8009c4e2e38c0f0c46415f27a6bb881037cd510f922733132 SHA512 4bf2b8a7be17243c3fec22242b708fc0e0b4d85fdae20c70cd8cd7306ac8fd3c1b40b467129eb1f72f17f1df4ad4e16c92bb51ff1b8a44adc82aa7dfd46d1903 +EBUILD gentoo-kernel-bin-5.15.84-r1.ebuild 3026 BLAKE2B de4f4bc8090d417844b2c3acd6b251a12b7a7abfc2e1632f6146d270afaf9295fd91109ba08f9f4227dabae70e83f02bfd8bbe49a9199e83808cd5adedd18a94 SHA512 55144d2ac2b73cac284b48eb301c6ee8302b3f5738cedb6e6a53f2e079dae64f880166b599d8fab490ace2c9238ce43327e8fe9775ade22f422556cdbe722ab3 +EBUILD gentoo-kernel-bin-5.15.85-r1.ebuild 3026 BLAKE2B de4f4bc8090d417844b2c3acd6b251a12b7a7abfc2e1632f6146d270afaf9295fd91109ba08f9f4227dabae70e83f02bfd8bbe49a9199e83808cd5adedd18a94 SHA512 55144d2ac2b73cac284b48eb301c6ee8302b3f5738cedb6e6a53f2e079dae64f880166b599d8fab490ace2c9238ce43327e8fe9775ade22f422556cdbe722ab3 +EBUILD gentoo-kernel-bin-5.4.227-r1.ebuild 3024 BLAKE2B d3bb8ae9aba06a6f1ceae6efaaa7efdae470575d59fb011d647a69307e43cb44da533f7d424ac9072cd5ecee411b46181027b8483ec781e15b69b9b78eb4fb1e SHA512 35620bfb54475010383c0bd19ff6ce343bc112587ce509c8cb778f7e894876d82c457bdfba8384a6fa36392df7dd5e4d6aeac5cf458883a7497b31247fae5b2f +EBUILD gentoo-kernel-bin-5.4.228-r1.ebuild 3022 BLAKE2B 253a58bd91ca83ca4e0317b6a746ac8e9277a0d6329139a1c263df53f026c013e1ecbfcfdcef1c90823ef24e591d9f707c9b6fc55974a7c73c5d74d70bb39fa2 SHA512 367bc272dfcf9f1c8e72d1256e86b80f21ed0405395bf992b3e15ce73b56ad251282074480724de522d572dc125ed86953f75d3a61198c1b9fcfa567d6621bad +EBUILD gentoo-kernel-bin-6.0.13-r1.ebuild 3028 BLAKE2B 1efd8a8fecc5d89c5b783ffccb54a6285966c6d17a896d8abfd2f91c4a74ec42af4251f2c87e890cce842c7bd18d754a5e9e632b1c2ee107c3a13be840de7311 SHA512 838a9d5a2ee1ebbbee4824ab5e2fa5cf3397097346e544622e647886bb9ea19f38086d6d965ebe9eb38c9e77fbc629ba91a25f103bdd851da01471470f3a7504 +EBUILD gentoo-kernel-bin-6.0.14-r1.ebuild 3026 BLAKE2B d6545c6097f7bf334eab6ead5862b3b78c100b8d7df2da40378fd23aafeb09fdc904109b8f57a935712176a698b070cda01c25f9aefe31466be05911b82420ea SHA512 aab580d1b63953709cd9319c25c0adaafc96d0264f79afaeb0d1e34997138b9e51aa85d0fa378182e004ef22850270b0c69a7da00b95e5c3595f7b5d249ed16c +EBUILD gentoo-kernel-bin-6.0.15-r1.ebuild 3026 BLAKE2B d6545c6097f7bf334eab6ead5862b3b78c100b8d7df2da40378fd23aafeb09fdc904109b8f57a935712176a698b070cda01c25f9aefe31466be05911b82420ea SHA512 aab580d1b63953709cd9319c25c0adaafc96d0264f79afaeb0d1e34997138b9e51aa85d0fa378182e004ef22850270b0c69a7da00b95e5c3595f7b5d249ed16c +EBUILD gentoo-kernel-bin-6.1.1-r1.ebuild 3026 BLAKE2B 6fe3b60d2a686f0d72b72de862f980e633716a21809a6c63479244e0751b11ec37bc1e59049fccc82cd81fc0770cbad36b515855c2fd404739d7136b71a14c09 SHA512 03e391465c17e661ac705f6ee8620566055e0a7bbd848fdedbaed73d137fa0416e2f8ebda603013950cc96a837f9d139e0a615ad09ba82f6f565ae4765a4b273 MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.159-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.159-r1.ebuild new file mode 100644 index 000000000000..b20e2174d7ef --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.159-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 9 )) +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}.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-5.10.159.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.159.ebuild deleted file mode 100644 index 8f9a87c041fc..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.159.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 9 )) -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}.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 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-5.10.160-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160-r1.ebuild new file mode 100644 index 000000000000..f1f891eadcf2 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 9 )) +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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-5.10.160.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160.ebuild deleted file mode 100644 index 7d5170bdeef7..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 9 )) -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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz - https://dev.gentoo.org/~alicef/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 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-5.10.161-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.161-r1.ebuild new file mode 100644 index 000000000000..04eab1fbd0cd --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.161-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 9 )) +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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-5.10.161.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.161.ebuild deleted file mode 100644 index 53a4e2a6b96e..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.161.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 9 )) -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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz - https://dev.gentoo.org/~alicef/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 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-5.15.83-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.83-r1.ebuild new file mode 100644 index 000000000000..0fc3adee012c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.83-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 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/~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-5.15.83.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.83.ebuild deleted file mode 100644 index 7745a774a549..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.83.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 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/~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 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-5.15.84-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.84-r1.ebuild new file mode 100644 index 000000000000..173be83892d3 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.84-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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-5.15.84.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.84.ebuild deleted file mode 100644 index cb9e8972e872..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.84.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz - https://dev.gentoo.org/~alicef/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 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-5.15.85-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.85-r1.ebuild new file mode 100644 index 000000000000..173be83892d3 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.85-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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-5.15.85.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.85.ebuild deleted file mode 100644 index cb9e8972e872..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.85.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz - https://dev.gentoo.org/~alicef/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 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-5.4.227-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.227-r1.ebuild new file mode 100644 index 000000000000..ea1c470722eb --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.227-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 5 )) +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}.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-5.4.227.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.227.ebuild deleted file mode 100644 index 9633b9065aaf..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.227.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 5 )) -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}.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 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-5.4.228-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.228-r1.ebuild new file mode 100644 index 000000000000..7a69338d4c27 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.228-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 5 )) +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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-5.4.228.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.228.ebuild deleted file mode 100644 index 7f0646b257c3..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.228.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 5 )) -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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz - https://dev.gentoo.org/~alicef/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 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.0.13-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.13-r1.ebuild new file mode 100644 index 000000000000..00650e13196d --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.13-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 0 )) +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}.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.0.13.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.13.ebuild deleted file mode 100644 index 2f8f3d790587..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.13.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 0 )) -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}.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 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.0.14-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.14-r1.ebuild new file mode 100644 index 000000000000..7634c204448c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.14-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 0 )) +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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.0.14.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.14.ebuild deleted file mode 100644 index 480f0764cb5f..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.14.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 0 )) -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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz - https://dev.gentoo.org/~alicef/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 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.0.15-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15-r1.ebuild new file mode 100644 index 000000000000..7634c204448c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 0 )) +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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.0.15.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15.ebuild deleted file mode 100644 index 480f0764cb5f..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 0 )) -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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz - https://dev.gentoo.org/~alicef/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 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.1.1-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.1-r1.ebuild new file mode 100644 index 000000000000..c8200881ca18 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.1-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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##*.} + 1 )) +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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.1.1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.1.ebuild deleted file mode 100644 index 87c9891fee64..000000000000 --- a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.1.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 2020-2022 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##*.} + 1 )) -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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz - https://dev.gentoo.org/~alicef/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 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