summaryrefslogtreecommitdiff
path: root/sys-kernel/gentoo-kernel-bin
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest14
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.23.ebuild127
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.10.ebuild127
3 files changed, 268 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 5502dd527454..752593a917f1 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -50,10 +50,14 @@ DIST genpatches-6.1-25.base.tar.xz 1200876 BLAKE2B 7050f6e95a28f5886cce9b53823f6
DIST genpatches-6.1-25.extras.tar.xz 3812 BLAKE2B f73698c57031c9d7f5edd9ba2b865e32064c38b528649a8144f856bacf35ae3570d1fc936ee25a88bd52fd0765fff05bec42686b8b3fc5566df187bd57d59be5 SHA512 ac2bdccbc6bd1de82cbdfe4edac978e068445b8e064bcc6a833b04f15b86592304c19651884dc0769719ade1b220c8c0f704beca240ce24ab370621ad6849aee
DIST genpatches-6.1-26.base.tar.xz 1261204 BLAKE2B c8e9b6f12aa7611fbef190dbe5eed519ba31db4f3a4a59171cd3b896dea5dde47acaced603aaf71fda200cdbc6d068943a58ca2b90c259445a39fdbedd19b8ba SHA512 648a85fe97e4d9754796cddc432611cbe62ca34747f86e088c541fcda75590445dfb4edffbff5d8358b7822c0bd60fcbe48a96a5c1aa9e0d5e168664e80ad8a5
DIST genpatches-6.1-26.extras.tar.xz 3808 BLAKE2B 061dc90cf89ea3876aee7cf9533f33538134e186c6e7daa6dc45ca0efc671822d9b3c3b8868b54978800da24cd550e5433ef866bdaeeaaf326fc765c66a69f7b SHA512 fbd23f38483227af5149cec04cbc70d76f962a15517e85782d0d15e4f55be4d4946ce774a8eaf697483b5c1e047ae83a29988202d782ae9038b6d946d23515fc
+DIST genpatches-6.1-27.base.tar.xz 1321772 BLAKE2B 8d46e2a7c0023fdca7f30edf56f1504235dfb9f175393dbc4494f58c9fcb4402f0e744bf8f855baf66f3e71531efbf1ed9b2aac7a0143292c336efeaef665eda SHA512 4fc05627f050986dcae332bfae4c582d308f195393ae8cf00c1f32a73a42be0c7178eb5b7e0a4fdd996b203702535523e33b65972540b3a97da3dc1662c49f36
+DIST genpatches-6.1-27.extras.tar.xz 3812 BLAKE2B bd1f13817906296ceeb943a211abfab4dfec495734ca97031ac901c0b8a644e558d161d843e2e09810f2d39643adaf687ad2c7b5fad78167b7bbcedceeda0e94 SHA512 4d6d2bb3a722a1c82b324ab4924a1c2a6b6ea6afecff19f1ebaeb93c542efeb176130f938d7a613c4e11ef809ccd3abe0b4df8c358ce297b5662b36c3a06dc25
DIST genpatches-6.2-10.base.tar.xz 477872 BLAKE2B e95784495c97ccdb838e9a9d206c372545b3b06e5bd58c29c30d14a6fd615fae205934c665ce018b58b0f53534e5d440240079489da5c26de64913c50456281a SHA512 6f3730dc20c6a700f403fd8a01e0cf0b5d871e10c415a808ce91c53fb43e0c636c9e2767eddbc61d52137675a2a620d0efc7c5b48b06906ccbdfbbac8c927bb1
DIST genpatches-6.2-10.extras.tar.xz 3812 BLAKE2B f4a8c6c516e523bdd18ea881469ea19d8b5ab77b989ff79a71690cd321ae8c8f323801bb25f0861e1f648cd4162bdfff3a0858137fcfc20db6a2414088c8b994 SHA512 098b6c26dff1e420314cc9bf3e716d3c946b7f3ee8f2117744dd050d9a1cb266e4622d25b5d61990902dbec4e98ed46b991b10f15e43697ee61ffccbbf88f485
DIST genpatches-6.2-11.base.tar.xz 543376 BLAKE2B d034518061bff5104d3659da0cccdb7c9a17cb1c158ba123192def3b5b9e7ac49a4cdc3a4f040bf1c2c785941a84a17b2aa051d0f6ae5e52b5f589233f1796ce SHA512 6a6bb723a981b9fe935763e496c50316349e5b2d3d2dda8638b5500a9b6b398009c038eb1a1806c39fd4057f72b95074e38d649c04a33cd22b7bc6a0b21e1797
DIST genpatches-6.2-11.extras.tar.xz 3812 BLAKE2B 73b6bd3e03d9cdfcd854ff29fe3184cc3c69003fa00955bc38ad756a488d35075b3db976784fb393b07afb98b99857a3ef09746d0849f2c6cc1c5d38dff52304 SHA512 e56b74f01db62f21cd4075283cb108f415035ea3775a67421adeede42bae42b88e463a900c19b4ace394926c901272a7658b85ce13e2a6c76c1b820ecbe9f462
+DIST genpatches-6.2-12.base.tar.xz 611100 BLAKE2B 9e3e50edbd85e9909351304b292de87b74f8adee2a99a2d5c6f858ee195e8df08772f1b1167899b52964b3d7a2595628d0e0e6c7e6dcc79f53b88434123ca308 SHA512 9923a3d4fa2f2310954b9d803784192b0367c286880c15af34e63c660ee593373a51d23561be0d1bbec15d39f1b57b345497f5cae3c73535c1caa8e62b8f43c4
+DIST genpatches-6.2-12.extras.tar.xz 3808 BLAKE2B 65df0f1a93ba2eda0ac31002f723d5b730c6af33dc60dd8a6f942a6a0276feafdd12463017164c5b782c031748829d812079290533268f8df497a8b10e1ae4a1 SHA512 f91ff719f6cde159026bdc4a76432bd195933d34dd3e7cb3ef0a2dcf18ad6786e2a4f8bab423b1b1d19ace3513c02e048a491f4ca76f37bd211d5579361bef6b
DIST genpatches-6.2-8.base.tar.xz 378352 BLAKE2B bfdf83b6ed486ad759f6021e48fad9b980a87ba5c54c0f06dbb2af3dccc79b41c7065d5a3a11933d761da759d9b33b314c456b458c9c65f49de75dd2cd4402ee SHA512 48521d82fbb2475b7a477bcd87dbba073f6c72cfde784adb77e9b92c44bc1fae188179199aee9face7bf53538cc5f2cae491173da686a54182579d69585b54e6
DIST genpatches-6.2-8.extras.tar.xz 3808 BLAKE2B 3bb072914898f6f80f3ceef2ac92d44b3dba7aba6232febd7f7ad48232a2d76c3de4414a0822d0c7d45f632f02441e640a0911fa38a24ca88373807e04806ed0 SHA512 a4c3ca924859b487463b20fd470c2f157e404c0380cc8721d9a9c787519b1471c88f72daf57398d0c8582ec966bd9939c2082ad3b3cd71f93b761bf4443f3a35
DIST genpatches-6.2-9.base.tar.xz 419680 BLAKE2B 9c206118605a2da947feb5b7e4b5c0a022a8f88936af354679ea50fba6f7b99b27794693ea18b7511feb5c46ef9d7cfaa55a1d426d6181e977c73e8c41a5343e SHA512 ccc911b481597853d5ce05fb8c2e2436c1d67a30f567ceb219cc724f5ffc311b7e6a3c13c66ed964ca9d314ab9f00bcd27ea7f078260956b003c59de903c6e6d
@@ -162,6 +166,14 @@ DIST gentoo-kernel-6.1.22-1.amd64.gpkg.tar 76646400 BLAKE2B 2040d4241a9492c8c586
DIST gentoo-kernel-6.1.22-1.arm64.gpkg.tar 69273600 BLAKE2B 776cff9335239ef9d404f0aa0a99719df5ec57354acafb91f611b51c2ece31cdfd1ba17542eb3e669fa7876901ee42716f75e1f61296f00cff9e7c3764903f17 SHA512 d1bab7cc31b7157da02d5c8fb79e22971e88126e083163177baf7a5e40fb75f601e7290e88fbeea0215d953785f94a4138a379aa9e4cc67ed340d063b1ac0f8c
DIST gentoo-kernel-6.1.22-1.ppc64le.gpkg.tar 62699520 BLAKE2B 524c2e5d5b6c7aa83323f8e9a0c69a7fbbbfe1ce29cecee64ba9d05f46bf6a6e75aff0fa8d0ac13b62cd2f7c588ba6a64aaaca882a3785f241c96bdf2ad2203a SHA512 c9db157e2f0f62a848cbb05bf2b2ccc8b643e73ed3c5f623cd2533124b198a8bdf05eb4dd9cd3b959df9cdfd6d11ddb7a4f9a1b7c1618265869fb9bf061bd29a
DIST gentoo-kernel-6.1.22-1.x86.gpkg.tar 65873920 BLAKE2B e89deab35138f65dd28cc22482f36cc1894d146a911f2e6eb8e157f3681f5bdc91847102341738dd280bfa608e3a4b0cdca57e6cb6c7533742a09831f29c1718 SHA512 7a3ecc5d23a24b900eb1a18f3cbf4154dc8787a353f8b603edcb77d09e44d63e7fe4c1c7b4c9b6e866a9d86e032331633e1f2c3beb53b528abeca11b1db2a7ec
+DIST gentoo-kernel-6.1.23-1.amd64.gpkg.tar 76625920 BLAKE2B 2167bece1946b047e13170a4448e34c3e808689626c9327e34e861c1ee40e7721411c426e707931721babbd5590def8caa94f544e6cb2578d54197e407c82ea5 SHA512 23a694416aad36d98a4c4a3c67f0a0ac9d37b34a761053b05e0d0c4b8e46344f2c4870477d88f887ba7ce7572023ded9d7e306e8a5539b724898d83c0994d0e7
+DIST gentoo-kernel-6.1.23-1.arm64.gpkg.tar 69273600 BLAKE2B a69fa5b8c40159de133e0b931743cdbb7686ab47c481b52d202dd0ee226660c7be17af0389975b7db24a3357ca8c7dbf2e866ae45fec4f96fb89c29fba5ac2e2 SHA512 c7a5aafb6bb7fdab15b0ca4219b44177bb1bf73b2bc425d94a23a1256af464799efd1f27f06334389e9f55e7ce096335345a6d642b955f9349122cf869d283bd
+DIST gentoo-kernel-6.1.23-1.ppc64le.gpkg.tar 62709760 BLAKE2B 88edb3495634f4cfbaf4cd6837aba07cc62c72dbedf1d5e21a7b873ecc2406c892a17949acff5153122019b3cd8bce169636126f7a9bcfa9a1fbb0f7e59720a4 SHA512 e6c0b7af40413346e54e2be0f6d6871650f0203a4e2fe74bf0d061acf06dfe01ce38e6d6b315ecab9f0cbb761f275a5ee3f795295919e68508c958b97ecde7ec
+DIST gentoo-kernel-6.1.23-1.x86.gpkg.tar 65873920 BLAKE2B ccc1ed02d61a00b65085fd2dbabd5e0a9dfacf1c0d80f5584cb2639dfb889e69ea5c644222bde21adbcef20cd44056a5f45f2cd30f87f8208f34a5cc95b6dde0 SHA512 25fc406483917d20240df9b1d7e83c3301da61daf23693453bf1951f0c903d80ed3234dbbc07b59ac2d9690f67abd01350f25d8a4225e1bda655fb5db30a281a
+DIST gentoo-kernel-6.2.10-1.amd64.gpkg.tar 82636800 BLAKE2B 6440affd0e251a896be87495f30e9646922a94184b0729e0126bbda082745de40284b2f0a84415918e12417e8825bf9d65ccdaf2d7160dc75672c532dc84b73e SHA512 e47a997c2146339cd02794a2b653bfbbc423bfb20e5ce2cb50278229cebced5f4dbf2e68c8d6201719154b57e43a5150017107274f14726b10c4602b53a66951
+DIST gentoo-kernel-6.2.10-1.arm64.gpkg.tar 71792640 BLAKE2B 63a0e205036ef45b1d661e8789cf311ac6de4c105e86d9bba93e062e2a8e8b0e15c7944b57c3230d584a870bc64400bee44a91b5e945c9b8f2ce37eff1148798 SHA512 055e64da90d7b97358656898aa9f718382da3006220ea96e4a9c769ff8c057926b17d35770d5145e83538d6cfe5a39fd6549a1d415e3516efe2cde71937adebe
+DIST gentoo-kernel-6.2.10-1.ppc64le.gpkg.tar 63907840 BLAKE2B b34e7d2d1ad6f95f04c492ddf3ff13be45c38ab53cff33dfa9d7d9685594d565f8e9a7346bb5116bc0065633738bb711c2bd052a2e88617a7f632b534bf7e0c2 SHA512 1d0288d6d838d3fa8c9802f2c9e5d519e6f464f537a90af54c195c16e7163aeddd34abdb8e3a36b50d34e5af762dd14d5aa6ed0de44459457fe712242aaaed74
+DIST gentoo-kernel-6.2.10-1.x86.gpkg.tar 66334720 BLAKE2B d491386bf142d410c96d1fc0b93fc08d1535390a71c8d8e734752056ae58a0d58dcb1807cf035e5f773ddaf4d4b66e6f6ebde6d054dd6f9a54673c5a2237f5ba SHA512 1240d9b52eec0180d58c244fdcf46ccc6ccf8da5bec32dbb0c9177e1a1277332f96cbba148d2347a11c67f306dd457ea9766b88a0b25099e791b49ba13f39134
DIST gentoo-kernel-6.2.6-1.amd64.gpkg.tar 82411520 BLAKE2B 81b3141ffff9af51265d94e5fba03365f0ad203e00b1cf5d609caf6c7fc04717cc8d4530cfbd0db5cf811473c5e4fc4ae6af51e54bac46d4a55d5aa965baf826 SHA512 c5ad329e56bf1151effed1289a65646f83e116f545934a08757358451f94462177e8c0a7eaefed86ef9ff3ae8ab1e842f77174ebf4d92f4e9fa0c6ee407ba8c4
DIST gentoo-kernel-6.2.6-1.arm64.gpkg.tar 71628800 BLAKE2B 12bf704c287aa5854d6952fd1945325174b9353bc8a5235d557fc22af6d0601836a3f86895d8ad3aa956594664628555583fdd54c8f0a7bf9367ebc8ca09ab46 SHA512 313a4122005a9e77509e9ff7bce97f32b31c3baebf6fea0e1c52ea131ed44242392b237b33dc9334f8307185c959a6bae4f22c673ab5d212b2f21fe693627d77
DIST gentoo-kernel-6.2.6-1.ppc64le.gpkg.tar 63744000 BLAKE2B 81b079534ee172c8710c0177b595bbca8a9d5d48b7297ea6e3111ddfd7d55b4887591a1848a9f831414c317465337131e5fc12d7f9570b8f31c16c137bc566b9 SHA512 d8e7d7dbc1243054fd7e5a3501e74b93f49ebe5577501a41f329f87d8cd743e78c5a7894eb746bb5f3bf1efff1825ab81840e720a01ecc21c7e87cda9deeee7e
@@ -209,6 +221,8 @@ EBUILD gentoo-kernel-bin-6.1.19.ebuild 3022 BLAKE2B 0c5e2db2ba2ed3a113cccf888f07
EBUILD gentoo-kernel-bin-6.1.20.ebuild 3028 BLAKE2B c8314539c6ea447c8645bc304bfcf6cfa99398ad38f6106dc2fa6c9a9a759ccd288646b95f77a2e9a3e9ec2ab045ffd1544a70d9060096a0e04a91ecff46ad42 SHA512 22fbd6a7597f0a6b489e6e6cace828fa7df95cbffe48a6c79b7a4d568c2e79f7ffa7d8bc717fa2746015b0e4da295f446c6d7f20bc679fadf7d9ee6574921e2d
EBUILD gentoo-kernel-bin-6.1.21.ebuild 3026 BLAKE2B a9dc3db24e35841fbd584d8bff4a61be0f104f6d0eac7ca7d2e5aa26c6d78312c794b1a23e14ee109302d0cada226fef2892953370450e04ee33f3f992121351 SHA512 c9f3722f7bbd7e9e1b11da56166918ad0bc333d41eac75d645e2417e7144c4cc4410717bb663e6e0e1c1b16d5d9b25ac0a743cb0864d16378821638aa47c572e
EBUILD gentoo-kernel-bin-6.1.22.ebuild 3027 BLAKE2B 9338d58f460bd58d546fa50b1d00f753a35750a616a29c8315ca623c1ded1398b4073b6fc22d8680ee7c745dcd400d51dac9757d9096534a1e12b7c96b9945e5 SHA512 e7c29a692b3333b68690cee2d57ea0e6c1772672b8d75519b09902037e36c716d30309bd6480cfc9b852932145fc67f81840528c34a11031f3193d695d6ca65d
+EBUILD gentoo-kernel-bin-6.1.23.ebuild 3028 BLAKE2B c8314539c6ea447c8645bc304bfcf6cfa99398ad38f6106dc2fa6c9a9a759ccd288646b95f77a2e9a3e9ec2ab045ffd1544a70d9060096a0e04a91ecff46ad42 SHA512 22fbd6a7597f0a6b489e6e6cace828fa7df95cbffe48a6c79b7a4d568c2e79f7ffa7d8bc717fa2746015b0e4da295f446c6d7f20bc679fadf7d9ee6574921e2d
+EBUILD gentoo-kernel-bin-6.2.10.ebuild 3028 BLAKE2B f1a8609dc0df691418f250273a84d7d645ed2c84f3ec70d4bdf494938b2305053949c31dc1ca1020d602de2ecc66a5bf0a231205ecd5c1fc500d80577cab7071 SHA512 c01314ba4cdad6a38de547bf178cd75d2c3cd5b8ee732bf60facda3d1ebdfef371fc1bea1603111fc96e36426996ff247150751f6a23f67dc1eaa688910f2f56
EBUILD gentoo-kernel-bin-6.2.6.ebuild 3026 BLAKE2B ccdc93b658f86586a658b0d74e948109e2d43b09e7af261eabb0ffb49111becb2ced35741408acfb42f4e5c89018c3e666705893592402bb87c9b23bf52e5d42 SHA512 126e399c4fe32e1439bb59a87afc89b559419cfc4878bb1e5be1678f251234d406262c7ba54e28b1f4ab56cb70384dcbe209c50bc5a10b5a5ecdb79f98342fb8
EBUILD gentoo-kernel-bin-6.2.7.ebuild 3028 BLAKE2B f1a8609dc0df691418f250273a84d7d645ed2c84f3ec70d4bdf494938b2305053949c31dc1ca1020d602de2ecc66a5bf0a231205ecd5c1fc500d80577cab7071 SHA512 c01314ba4cdad6a38de547bf178cd75d2c3cd5b8ee732bf60facda3d1ebdfef371fc1bea1603111fc96e36426996ff247150751f6a23f67dc1eaa688910f2f56
EBUILD gentoo-kernel-bin-6.2.8.ebuild 3028 BLAKE2B f1a8609dc0df691418f250273a84d7d645ed2c84f3ec70d4bdf494938b2305053949c31dc1ca1020d602de2ecc66a5bf0a231205ecd5c1fc500d80577cab7071 SHA512 c01314ba4cdad6a38de547bf178cd75d2c3cd5b8ee732bf60facda3d1ebdfef371fc1bea1603111fc96e36426996ff247150751f6a23f67dc1eaa688910f2f56
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.23.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.23.ebuild
new file mode 100644
index 000000000000..27016e1b991a
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.23.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 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-6.2.10.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.10.ebuild
new file mode 100644
index 000000000000..ed76d510db0b
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.10.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 ))
+BINPKG=${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
+}