summaryrefslogtreecommitdiff
path: root/sys-kernel/gentoo-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-15 12:22:30 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-15 12:22:30 +0100
commit3ad1879f00b279af69d6b9cd3ef97a2a7496d734 (patch)
tree497e5c46d6f6695b96866bc46abe1a2470a880b5 /sys-kernel/gentoo-kernel
parent792e307954fd3b5b12c968741d76ea7cfe5206e4 (diff)
gentoo auto-resync : 15:08:2024 - 12:22:30
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest9
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-6.1.105.ebuild146
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-6.10.5.ebuild153
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-6.6.46.ebuild153
4 files changed, 461 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 3e889fdc1681..8733ff91cfe3 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -14,12 +14,16 @@ DIST genpatches-6.1-113.base.tar.xz 5796104 BLAKE2B 0b6ca23a1a97810646b3424764e7
DIST genpatches-6.1-113.extras.tar.xz 4056 BLAKE2B eb8f6f49888245bc0f9b174f326a19658871dd3d2c34fef83514469b14d8a7ea84c0efc17f988143324779b571251881732d906975902ae77210eb7a20aec938 SHA512 09b36640d1c31ec865031810254ff2613e0945634b8afb54dfa9c4c22924b1e37f53559e9a7bca9307c2d0c15b0cccfbc588fb795b7eeb38d0f33e050ab53de6
DIST genpatches-6.1-114.base.tar.xz 5814096 BLAKE2B 676bdc7fe3d68811434a210499f256d02ae7550ce9924175c540cb918e001f3360f1be25d88424d54fe4e1fb8918b07cc17862ae12bd714c38a165607842ac95 SHA512 5076776da85531ca7294150059d87df890da88e05da9eb308938131eaa86c1ad3a542f5afc9259ada433caf001ea8c13620ffabef11d1ada08af83c0699405a0
DIST genpatches-6.1-114.extras.tar.xz 4060 BLAKE2B 649cafba566d627d5a302874710ff22c6d102e5a93aa4516815ae07fcc0e7b965c0b4b4c8850e22ccdd4ac0f7e447d2a5a59edeedb0f89ac4eb5e68df94a4f3e SHA512 07126cc655b3690ed7ff7399e385ce4dfada1e0e1a16f2e80fe5f0f0bef3ce4bec48f9527b928646a600353537e362b23242fb40a3a8bc5ad69ad99daffdab56
+DIST genpatches-6.1-115.base.tar.xz 5849032 BLAKE2B f506bede128cceac85af1219dd60f46753f80c2d2e7e23c1940c5e7114ab4ec489f94e839c24fa5fd8ff0f2ff72c60b313d66fe95a480026851cfd30b05ad6d6 SHA512 b91b4cdb568e4eee159ac1cf36e18afeb384cd96402dbeac53d6af2d03f1cf496a23a73400487d32f0808cf1dd01929e5e031cf5c97a8f027d4bf6e93860b726
+DIST genpatches-6.1-115.extras.tar.xz 4060 BLAKE2B a7c40e52a42d0a1d7438bdeb658a427251fc3df9d9e5e7be3f6ecde3242a286d686adc356234b5e0fe0a7c7403d5f4b422661570d001fac0f590247bbe519f6a SHA512 97706920ff2f3e965f499917fea7a9013c191083114635147c759f1277c63006cdbb59c60bab40064d43a5d8cded27c17ee1f56536f766ca839fb045c428e810
DIST genpatches-6.10-4.base.tar.xz 15672 BLAKE2B 3dfb069409ca8c1cc8022daaeda3f45443c4e11ab1b086d8178ae4bd7e9a77fdbd8016484324248370bfa4b92e1a10cfa67d40592fafcd8540cc917c60b52ea1 SHA512 ea2f80b065c59b485446c8acc174b93a688b9e6d5de8cd9bf307a43811f6087368b528647a2371636b22dc082735b57e470e9c5d1092972c3890a9c628db723c
DIST genpatches-6.10-4.extras.tar.xz 4056 BLAKE2B b1cc5a0d37760aac34837b9f7b26240d92afa816b5456a334deaaff8e911cba25f15c5e168bcba86b80d9fbe006a4b07cf4aa963e68a92e5152033cbcb080be0 SHA512 765b58ae1ce61678dce39b27e9212844cfd991e222384c7650355a374a236918f622549d49d5d483bfbc6dfaa74120b66976e85bbfdb6b54b0e871f1d5d5ec60
DIST genpatches-6.10-6.base.tar.xz 257104 BLAKE2B 13309e86f5b16ff79797736ac91214698afb07ebc167eb22bbc354432f64e26dc3c19e0e4bccaf4fac7f0c858b7739317db3ffec9eef596eda5c2a45e785bac3 SHA512 55c009415c1b03c02a5e0251c8a12adf9eeba0fa7010cde100735880332127bda25bbbc59f9105c091fbc5bd67d7bbcc4fe02fbf4de7bee645bc679649ca3a67
DIST genpatches-6.10-6.extras.tar.xz 4056 BLAKE2B 746ea837c1ba5ed7a4385b2f60be08986ad43f0c2eadebbda940d4cc2f7eabdef830459c55c183a68b63be318af661a8bffa25bc5da37628efb1f59987724c8e SHA512 63929e552c0e648245f8b7af72478bebf3a19be2f9aeda2d37e68b02611a69bb171338228c1c1d46b352236f63c3b514e24ef4f0260e0477d487d02ffd99ddcf
DIST genpatches-6.10-7.base.tar.xz 309388 BLAKE2B 7c1b7e7ef111b090d54c616d2e4df14d2f914c0e5b5a947c27781c237de9ce53d42c4cb9c6b55b3e0711485a0f28bcdd484babb0ecd2d3e0d508712f3e5e8979 SHA512 828c4638cf3b29e2513bdc418cce2ac567b593a9c2b710c564c49193790e5268e2be5a37d341f3b2aa08a59d36f59019021d3d5fc5a2ec7fd4f45b643d686801
DIST genpatches-6.10-7.extras.tar.xz 4060 BLAKE2B b07e59e37eca5c1a3fabd0d062c67f35f404244f93ae10b423d6849ff4d141fd184619d93551014ddc02db0c3379b8b2c486f71ecc798c1a53c20ab5a5a6a426 SHA512 0938b6a622b8b9e6e251fdf7689d972e1aa0a78ebd1cfabb7686298286f87bf9f0e30fe01f64205f775d90e870cb2cc3eefa73b49100a82ae01a6399376d6e94
+DIST genpatches-6.10-8.base.tar.xz 391536 BLAKE2B 636997da732776bccbfd9dc0543a452bd38a42876bfa46b4ec97034880fab320017de72c50b87ee2e7813d1231babed5b2649e65f603dd65dc4280f119ba94e5 SHA512 f2b23a7a244c8cead4b5644d3c7b34bd1ac890e8822f673a663f44902bcbf85b00ddc3dee25664636f3ccc6893bcc89358fbe7733d89c8b2f681c4e6b6076da2
+DIST genpatches-6.10-8.extras.tar.xz 4060 BLAKE2B 62f1c87268953d69bc08bb9a601d8b446c31c5d76a50d0c3f67d8048b24e1fa5327fe5ec8cfcad95bc83a39dfe7daec856a23775e9f797241cca30fe8935c13e SHA512 a2925de9fba3d5bfcefa81a01ddc919e8dda835a433b952deb455a1c7065f4272cb26e363408b2fa92ca9b2039fb596a4b99395546b04b3ea96129176f5613e1
DIST genpatches-6.6-48.base.tar.xz 2633356 BLAKE2B 3ece4f33cce7380d247fe1f3182e2a516a8e63ce1952e30593f228afd4f11b67d838a0374698b1c3f48992ce04f4b55fcc258c8a41bf2821e01b6c4bd4829d07 SHA512 2a514a91d3e7b8e51330f6852edab7d8481dfbfc84fad4415141dc3d0c68865f19724480a2403e86e080d368004d26669f365de233b6dbe9f664946dc168e853
DIST genpatches-6.6-48.extras.tar.xz 4052 BLAKE2B a5aa357ab175db9a16bb4eaae879d8439634ea41e525b9aac80e51ee51305399aa5f7597f126017ab856649d06a90f2e38e50663f258585793a429f20192c28f SHA512 9dfe341e12629b049ed97ebcec3aff60907c5e4e4cfc6f0ad1eeed2f6b7c66535c95d486b3252cade4f92b7beec76fe2343a71af415fd3160374be5b99076197
DIST genpatches-6.6-50.base.tar.xz 2671516 BLAKE2B 356a9a17f69416423c37c801e715dd4b03d1ebf02411a3e637e3790b4adba44db6c04f51f19a6da4ba420332cd5af1221692dcfc2ee1101825a5c8a8885c2e44 SHA512 e7a74df4659bdd54bf0bdb4aad8172bb1374aa563a19d28cf9643d034b59aeb55343ff5048d3aea42ddcd7561f0f723f951ab1f00c05e5ad88d20e70b7c3069e
@@ -28,6 +32,8 @@ DIST genpatches-6.6-51.base.tar.xz 2817576 BLAKE2B 42dbf8663f53bc7196c57c7cb9302
DIST genpatches-6.6-51.extras.tar.xz 4060 BLAKE2B a9e7008c67de6095d6c97bd6fbe9f7359e71d0b40aeb11a0ff14a0cca4feea199a3895bd9ac086d3f011b5c35a98f46d5856b8d27ca7438b8979203ff9164155 SHA512 fa649b918f1bcb7dbe4670a30dbbb47bbf8d57da73724463bc8fb5664c527f082a02f06ac96ff6a538469fe73fe0978f97bcf69b64a1a8d488387ff5a06844f6
DIST genpatches-6.6-52.base.tar.xz 2852888 BLAKE2B 1f393bb3b90106ebab46858e2b7c2b3c0ddcff3238ee3bac594ced79e09fdcab47596859004e2aa5ce3ec9bb2acfb33d9afb9a9350de1c549cae37589f0f4755 SHA512 ce0adae3031e902dcacedddf799667a71ae3bfd5186bc435e30f266e2ce850f51e73f0ddc3d4ab2c62a3b485a55623ec00c4a57c98524d1681a1d4b4c9c2dee6
DIST genpatches-6.6-52.extras.tar.xz 4060 BLAKE2B ba934440bce51a7d2497cefd4f98bc48bb4e1005e038bfce6d8a13660ffb9f3e3d21fb260293b5717722811c600eede8e4a1c5f2261d42da7178005ea95ec9fb SHA512 74fb01d8e49647b1f1ce134958218ec47eaf7983c55c01724a266ab29813c5878bf98701ba4af80ed1a6349d6799e7c1ed64ebe7a47584d79b38f66f91a9ce97
+DIST genpatches-6.6-53.base.tar.xz 2894996 BLAKE2B 68c68a4f3ef4ad60204cd06f86a3cb54810427d93ffa55d7cf08265f759cc9d789ade864b19964cb5c5ed0cb48cd8fc309590741bf9a02f97e226a7bff8b80ff SHA512 c328a28a3954b993a82024cda27720ac6667ba48224bd40f08e3d9a197173bdfecaa686fdde2cd96353b7fd38137091eeb6d9889849971d21b21ae91eeb6069f
+DIST genpatches-6.6-53.extras.tar.xz 4056 BLAKE2B fcc3c11e40145badde05428b03da9323a440357525d6f0f08112dfa6c2c4f170ddbb121f6d38503923eac0c1841ce697d0cca0654784b39b048a40303e8a11ba SHA512 8fe3053597ff48c9f4669faabcb9165e1f64454c2f5993a80a04ad124eb113361369cd2607ee40bdbfc0dcced95ff57381beca9b0ff7982d14dccbf3048144a9
DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6
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
@@ -66,11 +72,14 @@ EBUILD gentoo-kernel-6.1.100.ebuild 3976 BLAKE2B cf780012c64b7ca54e75bbe3d54d5be
EBUILD gentoo-kernel-6.1.102.ebuild 3982 BLAKE2B 8ab54c510fc9618ab64e00fb63528c79efde6855c3b11289029cabce93b38634c117a5594c13d746a2eb82b09e11b4a56a25de657cc99e0da33663fe820ef56e SHA512 b4b1a3b2a69c712d5ea271bff175b530d0804f2f71bd1e5cb08dab235e401eb90af918c1107eaff1fe8f8bffddae29dc570c72b59550180eca43fdaf1b1450b8
EBUILD gentoo-kernel-6.1.103.ebuild 3982 BLAKE2B 8ab54c510fc9618ab64e00fb63528c79efde6855c3b11289029cabce93b38634c117a5594c13d746a2eb82b09e11b4a56a25de657cc99e0da33663fe820ef56e SHA512 b4b1a3b2a69c712d5ea271bff175b530d0804f2f71bd1e5cb08dab235e401eb90af918c1107eaff1fe8f8bffddae29dc570c72b59550180eca43fdaf1b1450b8
EBUILD gentoo-kernel-6.1.104.ebuild 3982 BLAKE2B 8ab54c510fc9618ab64e00fb63528c79efde6855c3b11289029cabce93b38634c117a5594c13d746a2eb82b09e11b4a56a25de657cc99e0da33663fe820ef56e SHA512 b4b1a3b2a69c712d5ea271bff175b530d0804f2f71bd1e5cb08dab235e401eb90af918c1107eaff1fe8f8bffddae29dc570c72b59550180eca43fdaf1b1450b8
+EBUILD gentoo-kernel-6.1.105.ebuild 3982 BLAKE2B 8ab54c510fc9618ab64e00fb63528c79efde6855c3b11289029cabce93b38634c117a5594c13d746a2eb82b09e11b4a56a25de657cc99e0da33663fe820ef56e SHA512 b4b1a3b2a69c712d5ea271bff175b530d0804f2f71bd1e5cb08dab235e401eb90af918c1107eaff1fe8f8bffddae29dc570c72b59550180eca43fdaf1b1450b8
EBUILD gentoo-kernel-6.10.2.ebuild 4127 BLAKE2B e67cb86cef519f31cd1d233248d2d1c9519237224e47af1cf8919f6ff27e07ecf1bee8e65c97b309a391137d37090a330eeb62113383a570cf9a1c49c21d37d8 SHA512 9427c0b83849f7d6e0938bec1063d8cb64517a9e0fb6b212babfad6cc6cf2fe86f8b137599fa06861fadba3a9dc5e4a915c01af2ff29828fe5b465570928323f
EBUILD gentoo-kernel-6.10.3.ebuild 4127 BLAKE2B fae5a47d40d28b4fdcf1f7fd7d8dfb4398077775ca057a586d0bcd95316d58d15d5192321aff586a5322fbb2626a1da9596f12488e3f41210ae522194079f0ab SHA512 40e8e3e82a19a48b1604e6573e87d6399d2a8aa73f2ff2c7377856a68b8d2d7d4151e1b55365d474ef78ecbd37c191690ac956614c9f05021adb50de31eb1390
EBUILD gentoo-kernel-6.10.4.ebuild 4127 BLAKE2B fae5a47d40d28b4fdcf1f7fd7d8dfb4398077775ca057a586d0bcd95316d58d15d5192321aff586a5322fbb2626a1da9596f12488e3f41210ae522194079f0ab SHA512 40e8e3e82a19a48b1604e6573e87d6399d2a8aa73f2ff2c7377856a68b8d2d7d4151e1b55365d474ef78ecbd37c191690ac956614c9f05021adb50de31eb1390
+EBUILD gentoo-kernel-6.10.5.ebuild 4127 BLAKE2B fae5a47d40d28b4fdcf1f7fd7d8dfb4398077775ca057a586d0bcd95316d58d15d5192321aff586a5322fbb2626a1da9596f12488e3f41210ae522194079f0ab SHA512 40e8e3e82a19a48b1604e6573e87d6399d2a8aa73f2ff2c7377856a68b8d2d7d4151e1b55365d474ef78ecbd37c191690ac956614c9f05021adb50de31eb1390
EBUILD gentoo-kernel-6.6.41.ebuild 4123 BLAKE2B 1b07caa2c6ae459256d88d61ab40759cecc46991f858a40eca936547c658316b21595416775fbe421bb04d98c78974510626d7bca309e63e9d76e2e93998a69c SHA512 8b35589963315760b14a1465da5d47f13fbb588dcc801aff14ae4d262ea485eadb9d8312cf5b320120b49c650bbbf7f367e3ae70b9252f9bb10a373c7a7b3208
EBUILD gentoo-kernel-6.6.43.ebuild 4127 BLAKE2B 3a567cc665e12d3a63fdd2034447898740f9129c99ed259f98369540e1767763ab3dca748502e90e59481b273ee6c0e31ad85c8302b49f06d8fee8e46c62f3d1 SHA512 66232fef54017a33e1adfa6b166484947486fa75bc82540696a4c3aa2368daf7d2964c968ad604498505f6218e7773a76998f51e85897eb51622f12906a5f701
EBUILD gentoo-kernel-6.6.44.ebuild 4127 BLAKE2B 3a567cc665e12d3a63fdd2034447898740f9129c99ed259f98369540e1767763ab3dca748502e90e59481b273ee6c0e31ad85c8302b49f06d8fee8e46c62f3d1 SHA512 66232fef54017a33e1adfa6b166484947486fa75bc82540696a4c3aa2368daf7d2964c968ad604498505f6218e7773a76998f51e85897eb51622f12906a5f701
EBUILD gentoo-kernel-6.6.45.ebuild 4127 BLAKE2B 3a567cc665e12d3a63fdd2034447898740f9129c99ed259f98369540e1767763ab3dca748502e90e59481b273ee6c0e31ad85c8302b49f06d8fee8e46c62f3d1 SHA512 66232fef54017a33e1adfa6b166484947486fa75bc82540696a4c3aa2368daf7d2964c968ad604498505f6218e7773a76998f51e85897eb51622f12906a5f701
+EBUILD gentoo-kernel-6.6.46.ebuild 4127 BLAKE2B 3a567cc665e12d3a63fdd2034447898740f9129c99ed259f98369540e1767763ab3dca748502e90e59481b273ee6c0e31ad85c8302b49f06d8fee8e46c62f3d1 SHA512 66232fef54017a33e1adfa6b166484947486fa75bc82540696a4c3aa2368daf7d2964c968ad604498505f6218e7773a76998f51e85897eb51622f12906a5f701
MISC metadata.xml 681 BLAKE2B c773ebc6132d1c1a2466655e2441e7bfd7be7979e5912d3a27dd1c81b59614fd7a9a9a6f865075071126337eee6435e4c2b57356cec46f47966c4bdbb131ff3f SHA512 caabebdfd4cb3db2a69406cd1dfd9638c828bc1602d3f972350a7e84db1a2caeb563c6750c0998756c66f949953a1508a395b4b4139e88fbe9a20a70ab3a5ad5
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.105.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.105.ebuild
new file mode 100644
index 000000000000..dcba4a9c42af
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.105.ebuild
@@ -0,0 +1,146 @@
+# Copyright 2020-2024 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##*.} + 10 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.1.102-gentoo
+GENTOO_CONFIG_VER=g13
+
+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 ~sparc ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ hppa? ( savedconfig )
+ riscv? ( savedconfig )
+ sparc? ( 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
+ ;;
+ sparc)
+ 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.10.5.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.10.5.ebuild
new file mode 100644
index 000000000000..2bcdbee61cf0
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.10.5.ebuild
@@ -0,0 +1,153 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KERNEL_IUSE_GENERIC_UKI=1
+KERNEL_IUSE_MODULES_SIGN=1
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.10.1-gentoo
+GENTOO_CONFIG_VER=g13
+
+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}
+
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ hppa? ( savedconfig )
+ riscv? ( savedconfig )
+ sparc? ( 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
+ ;;
+ loong)
+ 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
+ ;;
+ sparc)
+ 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
+
+ use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.46.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.46.ebuild
new file mode 100644
index 000000000000..4f603a059b70
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.46.ebuild
@@ -0,0 +1,153 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KERNEL_IUSE_GENERIC_UKI=1
+KERNEL_IUSE_MODULES_SIGN=1
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.6.12-gentoo
+GENTOO_CONFIG_VER=g13
+
+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}
+
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ hppa? ( savedconfig )
+ riscv? ( savedconfig )
+ sparc? ( 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
+ ;;
+ loong)
+ 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
+ ;;
+ sparc)
+ 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
+
+ use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}