summaryrefslogtreecommitdiff
path: root/sys-kernel/gentoo-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest9
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.15.109.ebuild134
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-6.1.26.ebuild140
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-6.2.13.ebuild140
4 files changed, 423 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index c71ae2c6b9e3..2c8bd9dd4ab8 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.15-112.base.tar.xz 4370104 BLAKE2B 578389e95be1b135fffdbcd5980
DIST genpatches-5.15-112.extras.tar.xz 3932 BLAKE2B f76085492bf8b1c1bd9092174460be8ef5e22921f1f7a6282eff9cece01203ca68d0259b94a184161bfabddef1a7e5f1eb29b0da5eb85cc35853e767a2239216 SHA512 3e8ea63b9011f782b11e1df144414d9e3f53f24a391829342c872dd4f5b0a3c128dd792f95feab7aca08adf6a08d88e11ec2e2d61e0b0302546f0a55f29b78dc
DIST genpatches-5.15-113.base.tar.xz 4409644 BLAKE2B 13570da5dea58b83b150817c0b121a796e5dc4e6416bb4e297ee2a180afa69e67e841787cb6baeeb59484fdf5d7d84603113103ffdf9e8e658da1e6f0a7e20b9 SHA512 6bbb567ccc12527598b56946ed20c060b40de4bd229ed146aedb5ab9f252a6d604529f87019198411ec2bf9cc5f3b87a376d5f65955ef30fb83297d4f701f918
DIST genpatches-5.15-113.extras.tar.xz 3932 BLAKE2B debd8f36bb718d8c92d5301d00efcfb42c057d22238d010bd17504dfae697b6427411e6a12e628155b25a98b235b95cf94428bb115fbfd0fa5a024ed85a53b7a SHA512 3336827f6273f4c0a39693ca7be1bd11c025031f529c4122014a205253f8ad6c247c51d696037304dff3014dedf82c493f8832d6e86b5d72b6c5b99972acfdc6
+DIST genpatches-5.15-114.base.tar.xz 4428092 BLAKE2B d48a687c2ee6e7127bec22dda70b965bf137c4096da374a9e83349d1cc80f44a184a839504c151b7ad59f0c7363c4579bd5df38d0685d24e7e527849d9047e99 SHA512 f5fa405303ed93c4e94a38f5375bd2efc915c1449cbfcb3b04701bcb40b50c50c8e0999e39cc07d9816f4938d2ab2e18763ae0a0473525e3889ac33ccc84f7ee
+DIST genpatches-5.15-114.extras.tar.xz 3932 BLAKE2B 17aa4f2062511ba4e8b73a3449fe6ca4a1edb6cd80ff3037501f0dd7496db9282554cb45857752436e5c1de194e30988a84122698e8a6c27fb2e80edfe20845b SHA512 0bad9b065dd20cfc5436d7f449c0c79ca997be93db9fd1d3d7f1ce3929d7f73fa027a8c20475f5de770513211fca68cd2d0bca8c7fd8ba0daab15234c61e2ceb
DIST genpatches-5.4-245.base.tar.xz 5632788 BLAKE2B bbd772e16968cdd010c71002af87787eececfaeb0ba02d2ccb9a18d046c4c7b05eabc62cdfa2ea05943533ea961a7724deb75b42ce006ce349056ba73a9f1b27 SHA512 45373b2cc4da5286a2bf3149cb7ca18aaf475b13e64471506815ff4665aae7e73534f68f13a350b8616631ed6677ca65aee0dccaee436339e24786aed022b09e
DIST genpatches-5.4-245.extras.tar.xz 1816 BLAKE2B fc61841df1540f85577ea31a34b0b352e20dd54b02582e0379d46d93c7ba8b92faa0dc988dd906a8c250c8c325959e326a64188e97b4cb02d393ed8b88f2d03e SHA512 cc468754c82833aaad28e830ab4bce06ca0d2422d91a603149bbabcb012b9d4861f91226dac924407573d0a46df0f03479811be448b2c37971e3e8d757c6f89c
DIST genpatches-5.4-246.base.tar.xz 5659072 BLAKE2B 4b3f836c7e9f7f4d1cac0c735bbbb7751c0c165c826cbf549033c9e9fb85be3ccf45d480b0c8d80f7d980daaa1fb62265b600e24dee320673434333bec891e0c SHA512 029102ba3170b99836ddf5e4a9a7101826eae3dcced431a7049e4c025ca6057f694c66f67a20d5b08a124275ed91aac3a0e1060ca2946fea54d68b251e61b478
@@ -30,12 +32,16 @@ DIST genpatches-6.1-28.base.tar.xz 1412456 BLAKE2B 126c74e7558efbfb104e97e993a70
DIST genpatches-6.1-28.extras.tar.xz 3808 BLAKE2B 3bd49fb256420883a267b2513cc9e6928a107b0142c82d9abd20114f733bfcbd474eeb19a7ef833da27ba625db28806ec25a1dd945f5d94f5bd5f729e445a57d SHA512 06c84adf52e36357fd01e8e1989ba8b8cb08bef052da05d261df3e80aac6d2d10a3c39583fad6d92936e19d8c7484786a4d11f64f2dc3fb5f8e1ee90106d6367
DIST genpatches-6.1-29.base.tar.xz 1445804 BLAKE2B fb801efa1f48c9ff3362db22c218faf203dbc4171ee77f4539022c8f86ccbee65bb93c36e9796411dc997531dcb0b6c3cd2420a1b19ab5219fe92bf15ea3926a SHA512 c1797b202639b831fc601b6690fac85b91c1dd5dbb1520b243a5a2ed9bacc0b25f6614289b08cc5338ac8a66f8832a68a07b24ef327281c2e3c27e532a430d41
DIST genpatches-6.1-29.extras.tar.xz 3812 BLAKE2B d77b52859028d028d6f33f7bdb26589ced57caf84c6ad5c0716f6fa978ff6a1c16518bc4ab06e76281ac486d7a5476878e408288b3ab4c55f8daa0a46a907c31 SHA512 3eee3d165bde6fc820307dc7483f228c7774237df8b5ddb0e5089b0f76fd3061a0223f2b1743f38f9facfb41a78deef0256ed4a9514431471265bb86ab64631d
+DIST genpatches-6.1-30.base.tar.xz 1467496 BLAKE2B 7e442668319addb39f4812669463c312c9cda5095c1086732da3ba39eb9836985e53afeba31f471d6cd2774d6028e421a254721bcae10ef89d6d38f3856debde SHA512 90a3309cc2e6cad1a971c864839e6acdedb10986fbbfb89799d1327fd4c9a541f4a46aa4d5a898046d1e0a0a648547717e522ee31622ded87e48ec4057a49dc0
+DIST genpatches-6.1-30.extras.tar.xz 3812 BLAKE2B 8797213e32516d6f5cd88061574201951f5803f9e26e0662eae391704521c9530c47bcf2498a469b3e8f0696a1fa1a329fa097e983476ae4aaf38af465c1593e SHA512 58f4e9d6791b3e9903703349f4cb5456fe2e4d871cdf6f7c3dcf0338982c55c82c1da80b65a768d8efd2d992386c176821f4858aedaefcfc4b293c55a7aa8a1a
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-13.base.tar.xz 700552 BLAKE2B 53187881831a5ee8ac1581d78d89b56d5e6cbd45a1267f294312fbd648818530f029280b6face5c1c7f7c6d2c13c5e3fc6d1747f4abea8b2065f960a42a45d2e SHA512 2ca287f97bb3c01291eb5faa1de40827d014547e2cbb5063e77597e027f58672a262bcc51f1f2111cb5621f75b59c61a3cfa40f30fe8bc923136f8de3dd3e1ca
DIST genpatches-6.2-13.extras.tar.xz 3812 BLAKE2B 2e0620c2c03f6775a4ee7d29aeace0ed2474edf371bdea0aff7ec8b11db0804641ba4d2cb1993fdd7936ad6075c1b7de0bca6c055327b25f17a74d4f3a9d5d4c SHA512 5a146e403f04c1b8fec69ff2824f4d0b446fea895126839aacc511b47b4eadcfcf61ced441e3886ad4fc018379b029305d72a99d34d98ef1fdf486e28e888ce2
DIST genpatches-6.2-14.base.tar.xz 737376 BLAKE2B a31157486ed656f479c36a1d728627ba1361656e8a2d8a2dcaee0ee59e6edd6c046ad7799d2458e42990d53ea9893e49f26447a380b0c5bb02f8033e8ed3fc1b SHA512 126b365b3d5dd435e3ce8eac2b030bdeb227c3047d9b7182a289adc3746fd35f6454f08fa9ac323b83544d2ed614d9d1c1da569c74d8c61c50b14ab358ce4115
DIST genpatches-6.2-14.extras.tar.xz 3812 BLAKE2B 8ed801102acaade5ee6191264cab8a982a707e6b8419094e044b411a7c042689457c1351299b9ca0676c7223bad8e87b241938059fb1f3fb664be3d8ec31ef70 SHA512 f8ee31a4456482e23609797d87822da87940f97925fab08ff8828746fc93ba5023f4b1d4f21dfd76931ac37ac2465accc4e999b631bce6e16c83bad7689432b7
+DIST genpatches-6.2-15.base.tar.xz 763032 BLAKE2B b933b63ddc6d19f47ba58d5a5884ffc63f533f9008b22788276d0b096f3f13ab9eeadb82deb1d37de1ac77aef082f2f10f9eded0461d31ad17165712e696d175 SHA512 6f3bb8fb4dcee4539ebf58d99b4c8b42618366b684c202ff4fe60ee3e8581175ac0337290c1ac24e9e3b552145c760ed7a65f405665c437d76f4922efd810fc9
+DIST genpatches-6.2-15.extras.tar.xz 3808 BLAKE2B 6134125180afd914169eb329f5d9ec8f3f9fbd3ff61a0266200defdae573a62b39ba557c2a815229344ac762786715a6193ce3cb9c3ed08d07a87d83427ab107 SHA512 857e513619ab77e79461a337c02e9fa9fbb63ee9a837eef438b1e5af3c8c856867c738b0b28f21a8035a5e1b963eb8c13507223ad6a251f5320da67aeaeb595d
DIST gentoo-kernel-config-g7.tar.gz 4625 BLAKE2B 72ba0d038ee34ca5eb26d43bd373735aef3a50d02b414993ea05485e49d83d46df98a6cb0f6f3170a8ec0c99b557432fd9a11cbb92ff7c2837625a7f4469831e SHA512 2d74a8ca9f5402b4290ed93cd3ddba04a7f2ff42c8d8d3f2cbbe22fc20daa0fca119368daa8af39b7a26b1b99e4e3187c3c5d95886a651675ad94ff98d686628
DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52
DIST kernel-aarch64-fedora.config.5.15.19 242615 BLAKE2B 94e59440681535e38137b71814e1ae53f57a347f62cf31e0c1c8571ae43d9ae9be9957743c8cbc9ec74850c964eaabefe6799a28bc311ea7b99ee31391b47fb1 SHA512 fb77d3b73a215f97d70cd6d8c96ed20e497786b99ed7d7a7f2ed60cc1251289c1a4c7e058c41b5efac62e4a9b4b3d917dbdb11585955bba2b6584981430f4ddb
@@ -70,6 +76,7 @@ EBUILD gentoo-kernel-5.15.105.ebuild 3656 BLAKE2B 13b7a3cae43f584535dd213e2c592e
EBUILD gentoo-kernel-5.15.106.ebuild 3660 BLAKE2B 8ecd2e65821a4d181f8c42e1676386820c59bdfa3d27b26f62114727e12dc2d58636d245f17954f05990dbadbfbddfb9c487731827f5eb311505c67b25152a52 SHA512 632bfbc9a13b6a9597765f0ce1c1d8f4d007f9ac64ec008f727fb374dd30677f93adfc452f9119b27dd2c2427b567214a68e1ef620b5f702f221e636b0965a16
EBUILD gentoo-kernel-5.15.107.ebuild 3660 BLAKE2B 8ecd2e65821a4d181f8c42e1676386820c59bdfa3d27b26f62114727e12dc2d58636d245f17954f05990dbadbfbddfb9c487731827f5eb311505c67b25152a52 SHA512 632bfbc9a13b6a9597765f0ce1c1d8f4d007f9ac64ec008f727fb374dd30677f93adfc452f9119b27dd2c2427b567214a68e1ef620b5f702f221e636b0965a16
EBUILD gentoo-kernel-5.15.108.ebuild 3658 BLAKE2B f75ed2248ad071310367166b470e31ccce350a24a754a6708a9539cb6dc28368f3e6b50d605d0de851a51843a5744b327b47156247d044165ce37f7da5de7391 SHA512 32898982d5ccd08f32196632a12b3205a506b9c811957ec99a68af6687c1108d6b320ef1a2dff519d2c4b14e5a82a547b8c922489d3cb95bf846ea06dbcc5c8b
+EBUILD gentoo-kernel-5.15.109.ebuild 3660 BLAKE2B 8ecd2e65821a4d181f8c42e1676386820c59bdfa3d27b26f62114727e12dc2d58636d245f17954f05990dbadbfbddfb9c487731827f5eb311505c67b25152a52 SHA512 632bfbc9a13b6a9597765f0ce1c1d8f4d007f9ac64ec008f727fb374dd30677f93adfc452f9119b27dd2c2427b567214a68e1ef620b5f702f221e636b0965a16
EBUILD gentoo-kernel-5.4.239.ebuild 2860 BLAKE2B 5f017fbc8c3bcb8d44ea0b10d7a39c94a27aeb4c929623aa01c55a6a3fd0395b5566f83afc6c7d371cb4c056b6983ad4c4c8a6bd50a10ab11b0d25661dd31936 SHA512 fb84ba255572375f44ccec2851511063b8637af83c1b596f09bf138d396dde86b094ab192513189ac2d93ae755d6d90d2b3a905848cd6551520d80d1273f1c58
EBUILD gentoo-kernel-5.4.240.ebuild 2864 BLAKE2B 83995466e85824d4eef208e788440e7ab0555aa2cba564731a89a2ef96106d384ce003be479034925570069c854ef563c4f924d8623fd96f6f2145cb3bc1a937 SHA512 14d09e440ba2e4b25f9f397a68bdf7132956cf87651ccf16a34f123aa8ef01b29005974c8d0c0e8b4681adf015677c1c3a9e0e46932d46c481ca8a1f0270c8ce
EBUILD gentoo-kernel-5.4.241.ebuild 2862 BLAKE2B ba15a271702b36add1a144d12c51d568e2da4db8f259bfa2c7a058414613bba4dcc8b03cdf09838462af8f5aa143c1c2985de4c2e6ad382bc4426a7b1fc39edc SHA512 0879a0d0b1d862d6f783cd9cdd2cd7c479d6afa374d2a3f49209685f79f55efd2a3d4f4c73933dc835c98e481b294d48b56c77d3a85786a4043de7d052fd42df
@@ -78,7 +85,9 @@ EBUILD gentoo-kernel-6.1.22.ebuild 3915 BLAKE2B 65c1243585a25cca287d834c0b8c34b6
EBUILD gentoo-kernel-6.1.23.ebuild 3919 BLAKE2B 64c9b54b79a6af1830e09c699540230a9592e6a0f1c1740616bb67558a21630ac9ab836cb15d0353f777523bf610e2f0c1c0e16955db7ee9343c85ddcb6100f8 SHA512 8bdf517026f34b3cc94e47a37a4624024a01482d51c734188ee06512b1ab9f4c7b1aced63df074956fe17c56f31290f802f9a8e0d435bd95df776866250494f9
EBUILD gentoo-kernel-6.1.24.ebuild 3919 BLAKE2B 64c9b54b79a6af1830e09c699540230a9592e6a0f1c1740616bb67558a21630ac9ab836cb15d0353f777523bf610e2f0c1c0e16955db7ee9343c85ddcb6100f8 SHA512 8bdf517026f34b3cc94e47a37a4624024a01482d51c734188ee06512b1ab9f4c7b1aced63df074956fe17c56f31290f802f9a8e0d435bd95df776866250494f9
EBUILD gentoo-kernel-6.1.25.ebuild 3917 BLAKE2B 5d89fb9d7feef73da0ed4d4ea853e70d7ceebe0c6a1c9355af4c4a8837b941cf5860894332d826615aa4d170c1d80fa4e3715adb6b7e98187346190991da51e7 SHA512 8a795adc34f40474c6770271da74966a64a01b088e0fa70e476548e1c1a451bdfd812d7fae0124f8fab1874a5e254939cede84262c4fee2e9dd1652201ee4a9c
+EBUILD gentoo-kernel-6.1.26.ebuild 3919 BLAKE2B 64c9b54b79a6af1830e09c699540230a9592e6a0f1c1740616bb67558a21630ac9ab836cb15d0353f777523bf610e2f0c1c0e16955db7ee9343c85ddcb6100f8 SHA512 8bdf517026f34b3cc94e47a37a4624024a01482d51c734188ee06512b1ab9f4c7b1aced63df074956fe17c56f31290f802f9a8e0d435bd95df776866250494f9
EBUILD gentoo-kernel-6.2.10.ebuild 3919 BLAKE2B cb715dc703a28905e5b51200455eeedcf9ff322e5cd2963485588c9ded95c5a11e1ebd0bec9cfb0ecf8b6e608e9f87ab6393e6abe458f695d382bfb6f244c9f5 SHA512 b5748a70552464cc6f1b724bf3a226f1f2ba661b33b87c8e382e9d54e3a94dba245aebafb7e52cc984c78beb56ef9c9c8359914970ae0873360aa29e2d13f016
EBUILD gentoo-kernel-6.2.11.ebuild 3919 BLAKE2B cb715dc703a28905e5b51200455eeedcf9ff322e5cd2963485588c9ded95c5a11e1ebd0bec9cfb0ecf8b6e608e9f87ab6393e6abe458f695d382bfb6f244c9f5 SHA512 b5748a70552464cc6f1b724bf3a226f1f2ba661b33b87c8e382e9d54e3a94dba245aebafb7e52cc984c78beb56ef9c9c8359914970ae0873360aa29e2d13f016
EBUILD gentoo-kernel-6.2.12.ebuild 3917 BLAKE2B 9ca428aae28734a9832d73319352195208cd1be3f4101a835cb784f07da4fe281e7c8082e9a9c5d371e2bacff667678e96f386f5eeb25ae37db77d3cc9c7beef SHA512 677d39bf0ff3392bb78efb8a257e9da5fb29d007fbbf0f2967384cd9a086fecfc626777ca575f3fd4a1a6497464cd94e58c6488eb45be5ecd2f1b1713d569b17
+EBUILD gentoo-kernel-6.2.13.ebuild 3919 BLAKE2B cb715dc703a28905e5b51200455eeedcf9ff322e5cd2963485588c9ded95c5a11e1ebd0bec9cfb0ecf8b6e608e9f87ab6393e6abe458f695d382bfb6f244c9f5 SHA512 b5748a70552464cc6f1b724bf3a226f1f2ba661b33b87c8e382e9d54e3a94dba245aebafb7e52cc984c78beb56ef9c9c8359914970ae0873360aa29e2d13f016
MISC metadata.xml 465 BLAKE2B ea1260a1638588a48d9dd776e9eabd9730a181af8416ba778c936fa2e80a2360be146d3cc80599e50e0a72ac709eb9538184aac87cb96528e445ed450e34f4af SHA512 c7b7b1a45fb7082b8d8d66cf5a387cc4f7207cd9488d1d5e1d6900f1e4147aa9290b5522a94d941a885f1599b5df2482b529e40912d2b2cff400ecd4b1704c41
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.109.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.109.ebuild
new file mode 100644
index 000000000000..2749381783b5
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.109.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 5 ))
+CONFIG_VER=5.15.19
+CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
+GENTOO_CONFIG_VER=g7
+
+DESCRIPTION="Linux kernel built with Gentoo patches"
+HOMEPAGE="
+ https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
+ 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
+ https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ amd64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( savedconfig )"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+BDEPEND="
+ debug? ( dev-util/pahole )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+QA_FLAGS_IGNORED="
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so
+ usr/src/linux-.*/vmlinux
+ usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
+"
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ default
+
+ local biendian=false
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm)
+ return
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ hppa)
+ return
+ ;;
+ ppc)
+ # assume powermac/powerbook defconfig
+ # we still package.use.force savedconfig
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local myversion="-gentoo-dist"
+ use hardened && myversion+="-hardened"
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
+
+ local merge_configs=(
+ "${T}"/version.config
+ "${dist_conf_path}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${dist_conf_path}"/no-debug.config
+ )
+ if use hardened; then
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config )
+
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
+
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
+ fi
+ fi
+
+ # this covers ppc64 and aarch64_be only for now
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then
+ merge_configs+=( "${dist_conf_path}/big-endian.config" )
+ fi
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.26.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.26.ebuild
new file mode 100644
index 000000000000..dd5577ddd24b
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.26.ebuild
@@ -0,0 +1,140 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.1.7-gentoo
+GENTOO_CONFIG_VER=g7
+
+DESCRIPTION="Linux kernel built with Gentoo patches"
+HOMEPAGE="
+ https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
+ 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
+ https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ amd64? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( savedconfig )
+ hppa? ( savedconfig )
+ riscv? ( savedconfig )"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+BDEPEND="
+ debug? ( dev-util/pahole )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+QA_FLAGS_IGNORED="
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so
+ usr/src/linux-.*/vmlinux
+ usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
+"
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ default
+
+ local biendian=false
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm)
+ return
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ hppa)
+ return
+ ;;
+ ppc)
+ # assume powermac/powerbook defconfig
+ # we still package.use.force savedconfig
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ riscv)
+ return
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local myversion="-gentoo-dist"
+ use hardened && myversion+="-hardened"
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
+
+ local merge_configs=(
+ "${T}"/version.config
+ "${dist_conf_path}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${dist_conf_path}"/no-debug.config
+ )
+ if use hardened; then
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config )
+
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
+
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
+ fi
+ fi
+
+ # this covers ppc64 and aarch64_be only for now
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then
+ merge_configs+=( "${dist_conf_path}/big-endian.config" )
+ fi
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.2.13.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.2.13.ebuild
new file mode 100644
index 000000000000..31aa7cb503a0
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.2.13.ebuild
@@ -0,0 +1,140 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.2.6-gentoo
+GENTOO_CONFIG_VER=g7
+
+DESCRIPTION="Linux kernel built with Gentoo patches"
+HOMEPAGE="
+ https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
+ 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
+ https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ amd64? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( savedconfig )
+ hppa? ( savedconfig )
+ riscv? ( savedconfig )"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+BDEPEND="
+ debug? ( dev-util/pahole )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+QA_FLAGS_IGNORED="
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so
+ usr/src/linux-.*/vmlinux
+ usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
+"
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ default
+
+ local biendian=false
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm)
+ return
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ hppa)
+ return
+ ;;
+ ppc)
+ # assume powermac/powerbook defconfig
+ # we still package.use.force savedconfig
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ riscv)
+ return
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local myversion="-gentoo-dist"
+ use hardened && myversion+="-hardened"
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
+
+ local merge_configs=(
+ "${T}"/version.config
+ "${dist_conf_path}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${dist_conf_path}"/no-debug.config
+ )
+ if use hardened; then
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config )
+
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
+
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
+ fi
+ fi
+
+ # this covers ppc64 and aarch64_be only for now
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then
+ merge_configs+=( "${dist_conf_path}/big-endian.config" )
+ fi
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}