diff options
Diffstat (limited to 'sys-kernel')
32 files changed, 4101 insertions, 6 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 544670e68bb5..582d5dad7f03 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -2,52 +2,95 @@ DIST gentoo-kernel-5.10.253_p1-1.amd64.gpkg.tar 66170880 BLAKE2B b11385ddaab1f1b DIST gentoo-kernel-5.10.253_p1-1.arm64.gpkg.tar 60149760 BLAKE2B 6953aa05efb7a306683ee0cb59b3c292b7f0a3392d36a9e46ecbbabe2711fd83363a7bde980c3f39fb9c1daca44ed12dad2cdd2b081497b660254277694804a9 SHA512 facef8118eb78ec150afd1781804b91fbabfaa568cf5b334e3e34116e48f10c44f8357ce17559f598456f1ab039a0fa8ea6e5e96585e6450bb74ce52405fca12 DIST gentoo-kernel-5.10.253_p1-1.ppc64le.gpkg.tar 55592960 BLAKE2B cccafdb34e85d8cd195fcc0ce84d256690563d7008dfc3adaa5d21dc0cc72bfd40806c3160c532a97fa45921803442ead8de01307124aa2b98c2c87a859028fa SHA512 552b2f548aab109ac0082e83d57c1c57bd2ceee76099cafe6a714a9b0c31d7363cb54741727fe192e360b4089b4698c9787c5037b5fbfacd5ddcfb75479984a1 DIST gentoo-kernel-5.10.253_p1-1.x86.gpkg.tar 56135680 BLAKE2B 4e3cd4ffb968cecf134e9e1f9664e5f3eb9217a5ef540b2e08d71136c2aed473c44a807da133e7ca60623ffd3943e31487cc5cff2efd61778da75cb92734ab66 SHA512 09f2da39a9f4fc366c0e9968589a0586c233a5d63e93491cc730cc91cbd244524323da765047572a0e9277bf80e2122964018c10d2da4f3b83575db32e0e22a5 +DIST gentoo-kernel-5.10.254-1.amd64.gpkg.tar 66181120 BLAKE2B 96a098f11ac6ae6406d0e4c5b6caf1b18f4c9e05c29cc2e9ace1b44248e00e9ba6501cd538e2c2dcf3359b5cebd3a4c3fcf7d40771334622f95165bec7e3a57e SHA512 e926a8c57a089ff8fdcf63df21b46c202e981a8cbcb2a0f984106aa89b074956ef7df71bad758c6714b58eb9f3420505831016722144907936c9de52a24ef5ac +DIST gentoo-kernel-5.10.254-1.arm64.gpkg.tar 60149760 BLAKE2B 3dccdee21cfc5e86228ff7093777668f70894d7484b2b9c72eabc4f93f22bc35aafc833491493fcae4e56afc609eda45182b844d32b813ec8822656ba88a07d1 SHA512 0eca9b19d413444107e44ef137f3b6a6803173b2128304ff6ffce3dce009976d994a7cdc82b8a7f565d35271ae043d26b23cc210abc2f2c839b034a5530c8b5a +DIST gentoo-kernel-5.10.254-1.ppc64le.gpkg.tar 55592960 BLAKE2B 4e491c5d95e1e3151b69686b309cc1f06dceea5ac70e39df17b5a4898f9a97558f4b43cf6dbe7bf2bb0bbd7c13d29cf319ccb9b9ecb6af119c4b8bf5bc298623 SHA512 387c7a34cad4d1039b080abc65dd7ff2dd10b6f73ab1da6801990f6c4c963f0c8e055048af07e90cb5e5b332529b920422ca184d175db67a0837670d8320521a +DIST gentoo-kernel-5.10.254-1.x86.gpkg.tar 56135680 BLAKE2B 73a8c23102cbda6ba95baed4444692de9662651b1f12ee1d6f1682fb10a4ac1e5a5c65ae230c8368ad5a903c912704eee8befbc7937145c102fbb97a6c9e8613 SHA512 2727f8aec41c308edd8ad861faf89a3f2ee8870cdc71ae593c1f90b8e24d6c256850e6d9d7c5bc897fd0d056d95d8d1855fc9b6aebec2395334e005c809c487d DIST gentoo-kernel-5.15.203_p1-1.amd64.gpkg.tar 71393280 BLAKE2B 1f8a965b7f19a63fba7950bf7cae7e3d7ffc69a98633173c9019eebc43e317bfdce024c1b5d89463d8ac6498dd4aac5c2d0703f41feb22008e8a7e41b6f19f5b SHA512 3203e9970808a0ee8a7bcdf74dc5016724e68147ab48db9d9945baedfa4f642f3d6fccdb1976fd38ec845fdf02e21fba65c3d54faabdc4464246e7cf84ba9a70 DIST gentoo-kernel-5.15.203_p1-1.arm64.gpkg.tar 65996800 BLAKE2B 116d5497dfab29167c78f8ab25a8c9db443639a7544ea847402a92bd1ad4fcb9b149d0ff18c3aea5cce02c32a58337b0dabbdec5e3732dadb71c9e16b91ab321 SHA512 7b62f61516210b15160705c678058f5ac909bc973c5e7134ffe3c16c2707259cea32404e2979e128ee89a6089fa6ceb004c177d13a34de2933af12e64d77ef9b DIST gentoo-kernel-5.15.203_p1-1.ppc64le.gpkg.tar 59566080 BLAKE2B d93878ee7179495640d6e39c1cbc09bf54ae9f03b8fc7ae22af901098fc14a341cf2be91a9022cee59379f3cec4338093e39f98d2791cffb71999d51e49c89aa SHA512 e90574fce1255022136834ab3c2771695f8d67e04e7667e53160453d9efbb8b5f38b7ad17ada62a57a04d2cf5a2a962de3681c9cf39e1a5d58c2001e033d52af DIST gentoo-kernel-5.15.203_p1-1.x86.gpkg.tar 61235200 BLAKE2B 754524dfad41219354a760f4d960a4e90de85161cffc8fef651bec7eb977c96b9e44722cede41d59bda60d8ab316987af4adb329f6d1b4f8c949d411d8feff25 SHA512 374a9268ac9b34b3526443623ae12a3d4c13ed3ac78c23480d1713f3f8e7d169921f3b9081300e7c3e11147895d686e4f2396fec69993599377b58578f57a5cf +DIST gentoo-kernel-5.15.204-1.amd64.gpkg.tar 71403520 BLAKE2B a78fea01459b70db180aad903f9aa9651006c51f1d5c9eaff97d49c34d76e05fdbdd918e9984f3e9e9d5466691dc20240a2d571c9eef027a7b40547b3cc7eba7 SHA512 6498ca81d82fa8ce864297045f4716b17d2cb4840cd06f468720fa261f06c18505c8743bb2038de5f3d0536712ce3f32df04d53e822195f60e7fcd91f5bf4998 +DIST gentoo-kernel-5.15.204-1.arm64.gpkg.tar 65996800 BLAKE2B 2b900d15a2c28733f0e2fd854156d64af39a8fb4e852f5b39da5ad062c35829ab15638cb92b08c82301d48bccf8cc12670f23aeb12daf0316d7afaffb8e1d86f SHA512 8ab33e258dec9e15012cf8e5c64100a9d782fc59f972b0efc4c5bc84a0a8be961a32f2472f3b5ddec647651695e278a92520858f4541bfeedf314aa32d71a47e +DIST gentoo-kernel-5.15.204-1.ppc64le.gpkg.tar 59576320 BLAKE2B 407136ce44ae0ac28ade0b895220c94defce9f459719b7a548c52e748a921b177788cb0e8de262a90090b109766d5ff99004298741b0edc3b6b806b625e3d83c SHA512 c850f960996e5b326fb265ec9fbe1030bc6134ba7dafa92ee56fc5f9f767b1a8ab0e8d41894ef513b6933fd27d803deac4b9f96fb49aadf72e007fc2a7883db9 +DIST gentoo-kernel-5.15.204-1.x86.gpkg.tar 61235200 BLAKE2B e5ef45a0bd91da7141a01eabd14085920cc6bca8242b52fad1a6d72d31ecf373f698ce34f2c63b9b2779ba1d727c52513455b2072de6a8dd7e7b9ae4726f33ba SHA512 d2042246695697ebfd059583c5334b145f1a0f9ce3d1abd4af3df85613a2121b1db35abf8d24a079aa8a9e1b5b5e0a352a72255940acea2418faf4f43743d077 DIST gentoo-kernel-6.1.169_p1-1.amd64.gpkg.tar 75786240 BLAKE2B 969c975b0cbdb935172e6fa72edbff191d38554f3ee50db860cf445a3922a8fc2098ed34781ead8fc4c78130a24ccb0c4803dc93e0ac03ff690897e4e41f04de SHA512 7dd3db0da745c9a1c199999cd6ced00040d5c96e1ba9b8c54529ed56ac4e282360b891d670a1644996d1dfc71d889889a1b585e28ba7941d0b224f192a6e8d0d DIST gentoo-kernel-6.1.169_p1-1.arm64.gpkg.tar 69335040 BLAKE2B c91def062a3d1dfdbfa93f96b5771fae9373424e5a20a91a0208cfbb14f4f03af0ba650078bf7cace12f2468bfdf6e95367bb6344137f73011d392ec7bd357e8 SHA512 ea140afca8271789abf6df17dea181f3ec448dce6ebe8fdc59bb8e18b29ef191841eca7fb79d15588bc9162c0911bfcf354fbacdeafe4c0e9f0ce6cac6998f10 DIST gentoo-kernel-6.1.169_p1-1.ppc64le.gpkg.tar 62812160 BLAKE2B a7d4fbf677930ecc7c7ead125cb4702499452b145fa81b71f35ef07673caafe7a5cfd9950fde153a70cd5379f995653cbeda6823203d941466897f7ddfb16e57 SHA512 b64ce923453d7bfe9baeddacbe6431f3cc0d5f3b42371eb6d0e6be2e9967954628cdfb6fb2b23d82a69d19af8876b5ff4ef456587882839b9d26388c8da6ccc8 DIST gentoo-kernel-6.1.169_p1-1.x86.gpkg.tar 65003520 BLAKE2B da809b1554c5ff9118a5665b0ce79b6aa39a3fcc7a7b591164df48d0e69f5fdfce8f3ce3e78a1df6321bb72d7a7e3483c78f85abd0efad2d70161151bcf86ebd SHA512 230227e4bd0fcc0c869710255f1a3a79ec9ff8c6049b6a31fb5a195f61c372c63e4907a706d9c4038d0458712db4ad98d84b942b8f9ca03d7790ff8a29066117 +DIST gentoo-kernel-6.1.170-1.amd64.gpkg.tar 75796480 BLAKE2B fbc4fca21c80bc2145f2aa07ed7495fc80710fee00804a7ca6cd541accd827381dc1e2a1f91c9c650e0c42af803153e1c9e7371d20715305a3e11bb21a46e074 SHA512 5a588f5bafd80acb390265e7382dd4529ee1ef6d9904d9aee4bacd037de037eebdb8c8abc512c2a35cdcf36a49e2408db8505778a4fa7a376d3c2904cb75f9be +DIST gentoo-kernel-6.1.170-1.arm64.gpkg.tar 69345280 BLAKE2B 0406e75d642bffbfaa4675e23d64165a9e7779f0d64357c6f818c79996154064a361525f76257e8f21a0180349f76a3712ac28846b3d6fa86910f0155cfe4357 SHA512 e9c0e27fefae9368519aa871ed09abb6a7e9d789275ace49931d22734f7db945375ce0cfcb73c98415071a08ecf5fdab60bc7c78f4f8b82d45aaedcf77058997 +DIST gentoo-kernel-6.1.170-1.ppc64le.gpkg.tar 62812160 BLAKE2B 1f29e4dfed5a44521d0b17d440e7b8aeaec37d58d97afbce97314b828206f5e290d46c1912c3e13f4498e639797090b9448d25607a2e132e4ac9f12b6ad96cfe SHA512 92c9bf11fce132fb36829e9e73b37ada17acd6b493d2ae93e39e3ed6e51f5e0daa6bd4efbe5531124f412afbbdf351dd037d816c224f52a16b8b5b8a4efd835c +DIST gentoo-kernel-6.1.170-1.x86.gpkg.tar 64993280 BLAKE2B f12dbd15ec5625345ad661f0f8e29906d645e735dc94ae8dc769bbd6dbce4c1c4fc0b41c98244d6d023ad85d37d9cddc1faae9dbfe7ea13d756d8d1faab31332 SHA512 2745af77ab734131726c70c2b9812c700d9b6b9213031b64c3ea528b3ae67a52cdf8d052d1099da0edb67b7df883921d0a12b8ea7e627ca910a7e484a0d31bdf DIST gentoo-kernel-6.12.84_p1-1.amd64.gpkg.tar 326184960 BLAKE2B 623fbc86df375429cc968144d3ca44568d1f295c070ab70aab781db6af352fb9bd10b4d2e9b0f868cab60dfac792f37b729ba9bd2a108826c4ae25ad51cd0171 SHA512 73e52e182dd4de3db428d460f6e605506e87ce302f8949f62965db4ca48a1d958ccd1a8481648afc2769ec49b6150200432bb008f373945e3d5d47a4144e18e3 DIST gentoo-kernel-6.12.84_p1-1.arm64.gpkg.tar 295915520 BLAKE2B f77b4079fb2800692c5365a8787a0284af75113f4cf4dc27b0c123e3be1e8f3ab9cd07c67282099d6f6aa758294b229077e5e6b472516bccb67e67556fb86a78 SHA512 e16c207dee48507d093a20f8594be5ffc612a5501cba75ec67d414b78fce29adb7694e7a52b44d3a11e3eb6f98f5474d564e5b128d487c5010ed0aeae9a9dea0 DIST gentoo-kernel-6.12.84_p1-1.ppc64le.gpkg.tar 74158080 BLAKE2B f46dece5ab16a4d3609c4a5e8f669c3fa528433ed933ea27ce1479e327df5d3be7f6d4b6d879d32eca62aea44ba8a949502721991b6b78d90fe60e3fa4866fcf SHA512 176ab6db1bf6cae3c22ffec79fb1047f450bde664d6febf0042ef0ab5b4af09f5d8edcc5fb64bf1d770f8e963b8801a1e83d540e6aaafe65d40f52af579d82fb DIST gentoo-kernel-6.12.84_p1-1.x86.gpkg.tar 77936640 BLAKE2B 3c75d1d85d389131753bd5fb48198712973e9f32143a0b763c8967eec6b4f03170bbdfe83fc299f5112f052db97e516bd3494d5b79ce2c640dde1f423e710593 SHA512 d573f39318af202bdff9810cf7d1ce3e9d141b825433fdaabb539d36f9051cf43e0c8920c87e331f873825931e8f5e872f038b9d33625a9fea94653ae70e9c8a +DIST gentoo-kernel-6.12.85-1.amd64.gpkg.tar 326082560 BLAKE2B 479c9164c64e950d9fede43025ba247699e98fc3024119c0e918a89c400a4a915dde21765cfff8a0a565283de18657c477ff2af1392152bda98450d0a12cef35 SHA512 1fcb0309188a78cbdbd40210e0df74aaaaa598b171ec1314d05c932241295cece47950d13d6ffbd1d7c3884f7f81ac2dfe180716ff0fa2d83844b0d6c1937457 +DIST gentoo-kernel-6.12.85-1.arm64.gpkg.tar 295884800 BLAKE2B 579f141e167da9750789e8e10933f486cf1ac8299019bded57ca19e23a287000208defcfc52fcf86d879f3f87859fec63772f25b4e334063a029983b7d07ceee SHA512 2de9dddf66702342e858c8f81e774cd31f95af3a43ead1df57870d5e49bdd0b5f3470b2aa8810e86079ecebcfa39557c6eaa4dcba2746ab02cf98955dd544def +DIST gentoo-kernel-6.12.85-1.ppc64le.gpkg.tar 74178560 BLAKE2B 0353f814ad86295b8f7f5000f470a7080a4fa3b4e7e5a35c07c06a08c987644358ae2b86bcf9aa078951ef05d82ad5c6c83ae9ce8db03a1812e42dd5ea58945a SHA512 743726589b33ffd03891ba44e2e2ad367e4c27816792a0f4031a0228f8433e1b4dcb0d9a817fd148ee25244ee253b5c262b48611ca5dd1cd898fd4fbc89be740 +DIST gentoo-kernel-6.12.85-1.x86.gpkg.tar 77905920 BLAKE2B 5ac8643c41178113c2f877b4f3dfa843655fb71606ab05cb2fdb12a68315014d6ba5340a2b97bc386878c49cc472468c13d4f58eedbee002d961ac89d75246b2 SHA512 603abe11a5607a8b454b7942c5c2f60a515dcdb8050c8039a55ae65fc3f9a67642209f8058ce6cca195745f54566ba7580feb6e965438dc287a0638abc449e7c DIST gentoo-kernel-6.18.25-1.amd64.gpkg.tar 477143040 BLAKE2B 32670ebbacfd8834322d8da35bf9c78de1735397b333f22529ce19073707fc168d80ac93c4488fc2eada00968cd379fb0666d3267337e3c56b22f037ebf67a5e SHA512 7180af1d5e6afcac7f10fe08f8bb0a1e7afa5ee6605de3e367a5b2d1724004ab5509ef902817b2ddafafb5802baf7966e0b6e4539d8d2273ddfc4cb4d484690c DIST gentoo-kernel-6.18.25-1.arm64.gpkg.tar 451133440 BLAKE2B 34c9327a75df3e4440bb7ea3161591613cd213e6b9dc0326b9535bdf93d323fd88ee297dc46c660a572d0b412d75bdde06008ad89b07b2057ad81713f20b1d8e SHA512 ec7af3b841e4afb9f9c555312d78796657bd8da1d04063619772a35f1e440bc14ee55dc1d775d114b0f3244f36e17ab22ce73fe7b155abecd72a0dbe99f34fa2 DIST gentoo-kernel-6.18.25-1.ppc64le.gpkg.tar 77158400 BLAKE2B b440e426d161fc686408bbd8b686693872ffbcb51a177834a5d0280b77206748129fde6dab999b9aef96641e793085afb555233082f195975d6ab935822620a8 SHA512 20f71ad03ec2d356b55992e367870337154e24b869ba642bd549920300c55ffe633e2450c2da0d0209df859ccba3c4592fc769c3f7ffa6740e0f31ce968a5a7a DIST gentoo-kernel-6.18.25-1.x86.gpkg.tar 83568640 BLAKE2B 814ff5bda5624d71a19d791a4d17b7e5de1433d7a89521e4ad077a9156cf01d68226f0afb5b2f0052d5f79f19691c8ffd69d793b5eb024a41a8866b54f83a527 SHA512 4d66fccbf55fd668267b25c4a946ae885778a5e34e5826a640b5b6f2bd13131c59f679392c088fc7b07dd906d8d4bcbf9c0deda3be4eeb4fe62707c1ace3cd16 +DIST gentoo-kernel-6.18.26-1.amd64.gpkg.tar 464660480 BLAKE2B 6b563a054688250d9e165c3296bd5438291de3ec1b4e3d0920c5978e37b67c0fe13cf5edcab87584364e2406dbacaebcc236c6a61b20ce9c7e413c7e4ab8cce1 SHA512 1d33d513bca5939c0d4f9f3316f7712ce5c501cca041b51d39f0429e780d13bcee679b4a46020f5d8925c0b9e88e7d8355c3906ecaf527bf8c9794d2febbb450 +DIST gentoo-kernel-6.18.26-1.arm64.gpkg.tar 451072000 BLAKE2B e28107d7e3d5a520f5666f64d4397d26212ba95144b5b8d3a1cecba475aad93577926a20e34086b7e6c7d85c58cf674325bf5f5ecb93e94bcf7cf500d5951a03 SHA512 1e44d7c4dc07edfccff7cc81e7718d3a72a490dd5a644dfa918e8e81c87ce3a4f9c34bd70a2ad6a7e126210e554b6ca090a36ffbbe1c3f65670e5f6be664edb5 +DIST gentoo-kernel-6.18.26-1.ppc64le.gpkg.tar 77168640 BLAKE2B ff0b5ef40cca5534d0ea973ea9fcb86e9358d5f328fa88a971601dcf81ecaa397558e27c52abad6db795f47a63eebd4fe3f73dab08bc8b6e68d7f9434dcbfe13 SHA512 1592410d18c84b25161ba047cc54964754b55d9415af42b551095936c3ee05894e23508cae1b2cb776ea0fe45d09f158d3c0476a5a54a2b8acb2ef636f5faee9 +DIST gentoo-kernel-6.18.26-1.x86.gpkg.tar 83568640 BLAKE2B b5b82d194c757fa44a38fa27dddc0143ca716391db764c202a9b5699672344798d5c9277745c6d14228fb1ea458646aeb423c8ae0093e70fc942fa062cda31ab SHA512 0c9590c855026a6326047f4a56c0bc9d6de9d1154aeb9674baa7b90dfe09f06ba1a1976442902a773f182f82adac7f32a8a71a60bc971e79159503bf344939d6 DIST gentoo-kernel-6.6.136_p1-1.amd64.gpkg.tar 290017280 BLAKE2B 70f6b2b6377031ef42be94dfe5a35303828e77df80ed4c1d08eac5afe945972be7c20e5eafb9794dcb44bf63f8346fe830de72cbcccecfd2ad587b5ee74e9d78 SHA512 a0b1ab25b98b67698f211e2ed98bc13d953b20352ce29d7909f218e4b485407fc1bce3dd93bf8b3fbedd5ce2574bb3abdba3267f7c53e007f17e8f0aaf355987 DIST gentoo-kernel-6.6.136_p1-1.arm64.gpkg.tar 260362240 BLAKE2B 8982dfd2f13020cdfe6f689ab7ebefec551329a360209c8a6f21ae2982de5dffb89bb847e57889146c63b9f4134ba822410f99534b013b892bb0db30742f279e SHA512 7bb0f41ffd2b0f4d108b3fb369788dc937f12088f2461137782e1f100dd6ea488e485a75cead84e97f27fd5863e3eef9eaa60e4e8e1f1fbabbf7fb73c6bb15c0 DIST gentoo-kernel-6.6.136_p1-1.ppc64le.gpkg.tar 65495040 BLAKE2B 90a9c58719c90c35a687fda0728e147c8ff805e26934b91cb7965f31c32a89d0cfcd1c67adc1acb6e2d7d3746a52f1a617085da9fb52d89495bf8161655315f1 SHA512 e38a382c95a530c9b98a882d438621e8b4c2ae34ddcef48c8fa11f8718fbf39048c87a2d0c443ec6537ff2a32b45a624e2d650c8929088f54b9b71c38df6ad5f DIST gentoo-kernel-6.6.136_p1-1.x86.gpkg.tar 68812800 BLAKE2B 686e54cf2a8e02d4deae622ecac65895842858cc90001b2cc791e959606dfaf0b090cfea0d83c1fe719ba326c6c93bf1d89bf122688a4e5e2825773730146c36 SHA512 f76845dc15289ca3f4496b9f4a370be98d1b979b204c34c9ffa7515efa4aa5b7f54fd6dff5b6defa63c918b753efe0f2f51dc1ae3a2fad7b61eea2074bbf0e25 +DIST gentoo-kernel-6.6.137-1.amd64.gpkg.tar 290017280 BLAKE2B e82b918f40968fae062cc9cd5a866b50b3ccdd0f67b827e24bd45249fd623e09d97ee51688b94c17e7d18d061d341448f85aede080d9d5ace1a613c0c8c80a87 SHA512 305034b99f2cb77e87d9a671f0f4acfedc768787e91c9cfe41abc8be5c9e128881431069f443795f2776c0b8cd28f4731fbce95e45033e3403f85fae1ba2c2ae +DIST gentoo-kernel-6.6.137-1.arm64.gpkg.tar 260321280 BLAKE2B 835879dab5fd1e180c4290a0852c61cc34a1ed4c83b317722c5f715c344b64aaf12e8e7913ff0f3e39aaf907b53f5000e4d93b864bdfe96d4b5cff8fa297c6bf SHA512 44323f8b54bea7448d6d46e3ace6f899a13a47bb95e4747a37e0d52bd96dd2088857b24c442a486de05e3267a0a47436cb0caf486d10f01373642374094ee291 +DIST gentoo-kernel-6.6.137-1.ppc64le.gpkg.tar 65495040 BLAKE2B 3b8aa0f975ac34fc87d1f29a36d61c15ec5385e010b78a5385d279a887efe7a8abc674be1acc6c2d664043f10aa6acf07678f5931a18672ff74e20009af5c153 SHA512 02000d1cdd5ec9245a2284fcad936437d5fe404a48ce48ab361dbc0eb21dd613062fa0351d2e810051cba9ab921af3c4fbde2e2192410d6e68d08377e079c716 +DIST gentoo-kernel-6.6.137-1.x86.gpkg.tar 68812800 BLAKE2B f9b852d82971c9ccd855b78a7559516ce4c5f4a00772b65800541fb2364aa9e3696cdc681285c49a38c14c130fb9cf37e7094e518c7cf4ebcf48488b1b609f24 SHA512 a9ef37a2d755b726a3b2b98350f0166cf6a79208e7ec24a9e3a8e3220ceae9a474b821fdb9eb3bcc7f7719b729f37d36716a335d984500a316f34d9b8120d9d8 DIST gentoo-kernel-7.0.2-1.amd64.gpkg.tar 369377280 BLAKE2B 920869e54ff504a25ed93ca3366efa80ff7f3c9c5a76d10fbcd98ba06c6020783e376c20acc5384570718a5a8fdd4cc9a69c5af43b7a02e27283cd542bb414ff SHA512 4f763f890327ae16268e95997ad0d6aa17f9cbb134c7845b4734b24fef8edd4903221ef7e92f7974f0f1594203122d2b099d17482a080ea78c50bb4ddd8483ef DIST gentoo-kernel-7.0.2-1.arm64.gpkg.tar 326082560 BLAKE2B ba6fb32b79f62e9ff866869127c1f0b86824866eb171f1ea40eb5a88b2fa8455b88cdd9189fb42e2460c29e32528078abcb77b570d65e95179f8f32c836c3b1d SHA512 8e0e94b5b768de45034b6d9d6ea2ff9ae06554c11bd4b23d770952980bf7eae127afd397e8e3862530d1c2447d3a07e638c60bbb3576ea4a234953a9694bd528 DIST gentoo-kernel-7.0.2-1.ppc64le.gpkg.tar 78602240 BLAKE2B 8c0c20751b8b8c975e96704d0e4e45fefcd676cd6d1d76c9f48d0a1355af1cfc473caaf991ca1b3c9239f0be500d15a36830bedbec902a971ef2869753d412ee SHA512 cb3e115ed69f546bc270399f2028f19cae2003080a55e211999a6887bef5c8e066c41ce28bb1b8c4941a095ea429e74153f7766d2e0532870d6012f01cd78469 DIST gentoo-kernel-7.0.2-1.x86.gpkg.tar 85350400 BLAKE2B 796f22d6dc8d3f4e4bb5738bfb4d3f5227a27b3e8ebedf81f4f1648966ca9b6f112035e78131919df8d4ba7dca3650c709a016eac40e9073f6f83eca0cfaee0e SHA512 d1083609e85771b2bec2b499a0b3364cfe3f5b06bc0c2592c9dc89f7429a9c04a6f799f73f011c6520d6fa7e12c1e89876b71fd5cef5fd0c03750cc527846896 +DIST gentoo-kernel-7.0.3-1.amd64.gpkg.tar 354242560 BLAKE2B dd546352403afbbd80c39c40704ebd8fe7697ee383f08dd69bb1c1aa1f9e65fba1a31343724251d4be605bfa40b7ae0b353282a8a20b93e38f4beebdb6c9813e SHA512 375c149e4aa8872b3d7d106c345e5831d680efe3fe21bfb7bf554c74f22d6c277a59d70149cb085afe9126d8e83242addc125251ffbd820e0df51225d8e3d8bf +DIST gentoo-kernel-7.0.3-1.arm64.gpkg.tar 326082560 BLAKE2B 473b3d154565324a7994f094edef97237bfb13f3bc1058caa7e618a5dda5dcd941c5d140f30a3b2a66ed202bfd05c662f8ae02e8d2f3b725aeb70c964e48d07f SHA512 444921871fbc9a7b2412d90fb9da68c4430ae616bec22f55be65da61540ba7b6e6fc7dd79d9bddc348d2435a3516585d36a2a87257af5dc00a3ec8fac52204ce +DIST gentoo-kernel-7.0.3-1.ppc64le.gpkg.tar 78602240 BLAKE2B 8ef45089eed6b0753d07a4bb5d253a202c25eb432633e470abe7ececdd2b31fcebff0a98e75f49f6858ea9fdccd8bdaf25c2509df2e7135b485c2d8b8352d6f9 SHA512 e5032bb1977f581edb5e95acd8d287ff64c9ac76f287a2bc21e0fd8212e9be92782837e70666b6cc5460f6cea95da80fb18c8231b372ab9d11ef08acd7b85ae7 +DIST gentoo-kernel-7.0.3-1.x86.gpkg.tar 85340160 BLAKE2B 58f611e6dd225e5ba0349ccbe426d5d2c23681f89ddce9cf53d5adcc79d3a1547ed34ecda883162e2f40d8e07fac764bdacb2a43a78ba54ad36a464eb228edfc SHA512 d451b99733280a52ae429b6c6d8ef3a2b4e8332d4c2b063bd57917e6f26e703bc097edc7f07eacd14c8c73f9a27e58288b85292e06c49115c4f33c4147b56760 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-5.x-sha256sums-20260418.asc 375956 BLAKE2B d2592f053f0350997180479283fb5c57e119fad665fc28c982392b0655736827221eb21f892e628e8e2ce61b55be6d0ecbdf3c9e6d37c8b3ff29c330c28cc239 SHA512 4746bb154801314b1df39830445b6ecb59cf278da5799df0b0eaf383fba20b6a26dd3174cedd5f54f23e66b97980520b634714e480b61a0a7283734a7667b890 +DIST linux-5.x-sha256sums-20260501.asc 376643 BLAKE2B caa9720318371bf63a3b7f39edf0c13820c39fa08577c9d2457cf9616a58fc91b790cdc0ee53bcbfd13cdf937e73d2116651c6e7b7b4a650f00e90cfa842c29d SHA512 f4fbf987bb71ddf789f0aa788b9902b3a5fedc50741eb4110d3875e757f9b603c0eddee6fb2afe909ef35eeb2b3f179a1a55b3811b897a2285cd49e8de9f1202 DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 DIST linux-6.12.tar.xz 147906904 BLAKE2B b2ec2fc69218cacabbbe49f78384a5d259ca581b717617c12b000b16f4a4c59ee348ea886b37147f5f70fb9a7a01c1e2c8f19021078f6b23f5bc62d1c48d5e5e SHA512 a37b1823df7b4f72542f689b65882634740ba0401a42fdcf6601d9efd2e132e5a7650e70450ba76f6cd1f13ca31180f2ccee9d54fe4df89bc0000ade4380a548 DIST linux-6.18.tar.xz 154309096 BLAKE2B b94b7b9bf18aca0c3e50baf79b009a1448fc6cd9c3ee019f641cc247dcf53a4abef4274ee0608ad8cd4943af69854363a95d26e117ff23620bb07dccb158859f SHA512 88599ffdec96d150c1feb9b261ba93bb0301a9d0e1ad6bef7aeab1f5372cbfc57d8b43c7e902bd8f76921d1dbd8189663c142ea869e51d0e2b483b150ee00fe0 DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35 DIST linux-6.x-sha256sums-20260418.asc 216540 BLAKE2B 37655901ab474fec6a525ab7f8f3153688d2341fffb9c787f14f3ef8ec1783c8b5091624f3eb65bb02675e0c5e6f579e473e838ff8904f1d403aa3708a88c7cb SHA512 480d377ca47501687fa28d1ea196957f036fbfceb16eb98599c77784ce9295a3235ac9cb93315c3e91afd1c9c6a0c700f313e7c3d1c100c78854ceebc3c20e8c DIST linux-6.x-sha256sums-20260427.asc 218586 BLAKE2B aba99f133ff56ebaaf4fe0774bd907e28aa1dc5b69992ff52eecb70a8e12890ca0f5009be43f446ea8c6ab9fd198efd12e3aedf5c07488da891fd91532007112 SHA512 a6d7be4d0f5c046be8d614228a6a51c4f8cd71ac5683a3088cd1c0f52530893efbcc76fb3decac823e31c05307b774d72c83d09c6b90667d88e93374ac964b8e +DIST linux-6.x-sha256sums-20260501.asc 219947 BLAKE2B 064b01f35878749efcf2bd0bc99a577ffc380e51dd94bd02c7f1fc8aa02013772c079013b4a8339fd53271bfe7e6ff41ae862e8b60d0e0d531ea90f347a79dac SHA512 ac341e368e27ad2c44d638e3c37076dfe9bb95740a7cc8a74747585ef19e4a803d638e9cbff80732237efc3768f4b88ab8e3cb104188fca5a9bc0acdd87cf60a DIST linux-7.0.tar.xz 157143652 BLAKE2B 3d9795083c8938f80f480de0d10bfd9c525640e59d5c7f22983de3f12ee42c84c31be902cafb05579ddb1c32bac5ed06b0d4953f9705450be185bd2d9ab08f89 SHA512 8c85b708342f8f09ca25b2234b22e93b62b144a9ef919fbb21827f52fa47498e778c79db1559524dd7fb360f95b2ce174171443c1859656c281be41d2b6c5a0b DIST linux-7.x-sha256sums-20260427.asc 1876 BLAKE2B f423b97f3c241abe3cdd757f6bda34cd900c4140b371a5a7abb692dc3e404689266e162c177c66e8eee991ce5c3b7bb681d8b8cbf1c2005aaaf7291cba9efe7c SHA512 90be7186a920260a6553d08bcf6bd0ca142988134ff2d8277773624d18d0c92e048a2c620965185b35b4567708aafe610d58ef899eb306f2d4b1e2bd481253e4 +DIST linux-7.x-sha256sums-20260501.asc 2206 BLAKE2B 24d86e0f6338498e8b5f74cb0886692ae0003c30a70e6f6654588064df9ec4f569071982e141bedba1b2e7c6728e73dede5e2ce2764554c62db7587b5fc1e86a SHA512 cf08970476eb1cfedc9cf75ff73fdcf8bfbb79d1a49ead4a07e0bee8659a6fa3c8c369b33251c75b030ec34cfc2c4077b25fe07c1022c2e6a1db4026c7768189 +DIST linux-gentoo-patches-5.10.248.tar.xz 24128 BLAKE2B ee1ac9dab33c96fe5020ad8bc9c657bb72a0171aeaf3ed4fe479f4b923f92be514c55144dc80753b5df2db82c75209280f7a2867b19fd76a55ea67e9809516ec SHA512 26e5521954929c8ac396ffaf786edea7118435347e2b43ae7b7cc5abccb0f26eca0277b6914dc709687c5fdc9247735e8419b491c11ff80e8ec7d519ee6edccb DIST linux-gentoo-patches-5.10.253_p1.tar.xz 24704 BLAKE2B 2b1620a63023d1ebde93e3ab44194f9d378708a8a4dbacce18648215ab5d6567c21bf399c04c09fbafe0a9e475d9d65edbdb0a05b1c5c2073d054c70e7f1516a SHA512 8022e1527332cedb9fc39584785789dab59c8e0e80030ea0f7a0b5cbbaf7d71bab82d03b5c94166ff1a54e57996a2961f764c6cc4481ede8f52a558fd304c1dc +DIST linux-gentoo-patches-5.15.201.tar.xz 10200 BLAKE2B 204f35185fde21708cd37bb513d59df3fd43d0e7adb2cb2a987efd6700711830832d26cf563d77542d8a29f6728025f9bac9caab870dd2686fa50a5d1d3c4030 SHA512 b26ea3d9bdf7cfc17f82258cbcc7b6f5f276d6a9e1fd7ae7a8f4f212a3814bb1e826fd201a1bb092a4f0e65fa5da3f1c000b9b54cbe012e8c52445b234f303ff DIST linux-gentoo-patches-5.15.203_p1.tar.xz 10784 BLAKE2B 4d2d478c0680afc2ffcb975020608042daa609c8734c890a6c36fd6c3b85bac14247cd649069d7f36766f440732a1c698748894cb2c96d3b045090ba0fcd6bd0 SHA512 12da526c37372f36a400e3942433e3267e15e5c6e4c5e1fb335cb7c39b7b828f4db5b109dfb24f79690ba0aac170e2b5893b101b51e7b546d506fb5d2c9873ef +DIST linux-gentoo-patches-6.1.164.tar.xz 28932 BLAKE2B a49ad3d5c7a22728e4519cb2cd3c43eb9ef13561a789b68888024f90e58df7d6a8a154b0edbd85259501ff539479ce9aca92474a022196914ca13833605b8c8d SHA512 08fd9f8c78cc69d5f01f184f247bbd3f403ebeb3bbe7e8450f53963bd0c550050dbaa596bb5465bc668ce1697f70ffe3eae43178bcb353119443a1d598f3f41d DIST linux-gentoo-patches-6.1.169_p1.tar.xz 29504 BLAKE2B bf9c9a55c628c6905bf0e9a819d706054d1772c193ab386fc22bf64e2eb6395b7524aff836fb300a88a5306165d92311da884126fcb046932c2695921113b578 SHA512 6aec10c3cc58f06736d4c246093bb16bcc375d1d027d78386af167e792cd7e16f48cef3040eef701a8bc1600223db4cc3cfbbb0fefb80a963bd1b0049edb03d1 +DIST linux-gentoo-patches-6.12.75.tar.xz 20180 BLAKE2B 436ae2c1b00442e961c1bdb14f658bb14c02e1a73f9ea0b2125fcc6614d5f8ebb630cd22dcf5bc26fc3d5b2cca75fe88903f31e0c44cb76379596ba415e30f65 SHA512 6d1a953bc1b123da4dabbf393ff0dca83556accac535f2d6683e104297413f10e9dbb393ff76f316c7fe892849d0ea73834976c7637872151443586584ce0123 DIST linux-gentoo-patches-6.12.84_p1.tar.xz 20748 BLAKE2B f29bf79bf2d8502d6274f4935e44fba2951c7ba2af65cf68a630085f9ba07615e5b4ec294b2f4f69f2694b6a6a2c658609e8b411d4a89c42823d27ead9dfdf1e SHA512 ec2a9a76a3ae652b6cabe2118a978d5a3ddbbaea7522e28b97c8341b93ecefea964e28593fbf31f084a5597c85590950e1b6f3b049a7f879971cc9dc83fe38df DIST linux-gentoo-patches-6.18.16.tar.xz 10832 BLAKE2B 3bd240cfc5f62689dcae40cdb08c447bb4cf275395bbaba72ed2b9a63dc3b37446245d7dff88f639ca80e5b66f1a53f73d88af832c2655c16249f919c9896199 SHA512 a57c0a62b14701e8a776ed5f8eec45798edc8f79e089c4a22976a091c693c3f03e9cf26f2a592bd92f4ebacf100cce55523a99c3a3197eeeefcdbf995f3bf55a +DIST linux-gentoo-patches-6.6.134.tar.xz 42820 BLAKE2B 14164c31817dbc4bd6c421ddd0b87bf16e9f8fd493f082b17e5780277ff9d0cef4d827ba2cb10db47142b0f528f924721fa6ff057f30b7e2ab916767b069836d SHA512 97177a8e8254b8a5fa2b6f380f36a27219015fb8d026f3080331bce9f8d289666dd7388f3cc70b017d3c61acbdeb887b25556d66aed2947a917f217ad80b5312 DIST linux-gentoo-patches-6.6.136_p1.tar.xz 43372 BLAKE2B 3d152e481dc8f9a6ff4d8bcf5cf7bbe9eca44fc69e26f5424ab75431f8956898df6dccdeec906e8274c81c81ee90a5e4d6248526ee1e98738157ee0cd4ed2007 SHA512 a9079127241744c5fb0c6b5ad508e81c9196b7c97091162635b4d1cfc60a8ff826e26ffafe3bf056cea3c56f8cc5ff0cdbba31eee90da7659ac88c7e1c3d80b3 DIST linux-gentoo-patches-7.0.1.tar.xz 9556 BLAKE2B 3b665b8912767095caceadc826fedc836b62dcd490f04f0ae4bdc64e8ee84403d0f70b973f1afec1a627028b6ea6f179aeedcafe70102a59e07152054d09f2af SHA512 59a43b5c6e11315393ca4549a6d8e53863399ee3d1f478daeb970652c37f18d99dc6827a190118dffee84ea86f3a63362e3aa062ac5ac499d7340c59170ed654 DIST patch-5.10.253.xz 7248732 BLAKE2B ea684b60dfb1c3b28f5f530d46e8933fa4ff3f4ea1a6498b9cfe8c995621f27d824fe8b40686494549981ac6e30c809cd626eef6a9536f44c929e91d28c5e2f1 SHA512 f195170a0e6f924aa114f66fb72fccf19bec43c4b69d15dd94052f6e00bcfd671a30d47cc1b86617d9bb6943e05df22d6df0a32dbfd5effb65b98f1c4fd99ae3 +DIST patch-5.10.254.xz 7254948 BLAKE2B c409ba9cdc2f8280c8b947a1901980db9ed886f7aa2baad24524333a5bb855a60ae05747b745a830beaadc8500177b6b736dc0fd7266f556d9c141600a90e24e SHA512 1859322a2f1b7a40bafe6c8c386b44ec92801f7c42b4c917fa5e755b3ecee50e53a48ed004546369d0c6ce656e5a5802d6ad10fef86f47fa5881919abb176e40 DIST patch-5.15.203.xz 7676312 BLAKE2B 3a0e051b3c93864baab5c7f4757c6b147b17a75a1347e65f4c37bb83c268ab2d6f1c1258e7195b777f588f86b02e69416b96831d9284da8e9d3e52ccc153d5e5 SHA512 fb4dd6a04e408a3cd12963427e1b9acef6ecabb3feaf3e4721588c428d26e6c184b1c673b35f4ddda0d669a27d013c6c6e906289493546df82960d409581e903 +DIST patch-5.15.204.xz 7681224 BLAKE2B 5f876404ff1acf25e2553dbb62658d1ab205207811296f0119fae04aca751484e93c0146d019199b406af7a9d79a589bec8b0290730cf2367fd3fa823d74226d SHA512 f0a9ad08dbfc324a8e063fa7c656557ad46dec323f986df01bb722259cfd325b39551c9c2c485ca3b1a2447bdc9c589384992742728a9523bf2aa152d988eeb5 DIST patch-6.1.169.xz 7317628 BLAKE2B c9ca4999f7433c27ebbb3d2592227e8097353ec084e1c58c328f3a887a2b0543c7c8d5ae1a140c13ee3d3861a958ebf29a21b6e935b44c28a322f6e3fc491855 SHA512 23aad9a93157c55907e168d5a492c4c9749833b90e051e590281b3cb075b17ef5227f79694008fdc3470ab78a13054c416f9c71f6dd9a205fcafa8645e1eae8f +DIST patch-6.1.170.xz 7323812 BLAKE2B e7004a8059c8f9011884aa2b2a7718e9bc67f9820cd407f263bec9cbb4bcc4d5791ee55a99e406b4b6c17424acb1087cd67b5c841c10f0f38833b2bb28920f27 SHA512 baf0666cc180492e347392db6ad363acdf6b05515be073363432ab7af0ba7308f28728e38bd42b7699c083aa9548a789b1e2186098f411eb0a25451ab6db20a2 DIST patch-6.12.84.xz 4372924 BLAKE2B 6d812556ee681bd0a22e66d79d7cf8e8f0bf6658cfbf5e4c82cf605503b1a0f715243d08ace6cf0346b77ddbddb100b30df075f4a9a8cdd15730555baa56c26f SHA512 ae0699ef647758fac5170bced18a1bf685758e1af2851597c36dfc2d43c386547c7127cd6aefaee0e78720e8d6c72a8dc1834a7506eaed6ef59909ee6813fec8 +DIST patch-6.12.85.xz 4377956 BLAKE2B a4ce6472229c01003884ece108f60f2e9458d7fae38ebc47e7b598e1245e7a396fbc01aca3a7d310825b1f39acbe588b6865311d3ac7b4f48d2f404a728c942e SHA512 6b7c0c220ca26b900462b21641f8615f7c84dc25cc79527c8d32e9ac5742bb89851d30a69e1f1b1bfdb5bd353153c31ae523538eca1cead8cc12261a47f4a18b DIST patch-6.18.25.xz 1538348 BLAKE2B b707adfc3d23d74ae882a0b4d15ce7b46e5c1011bcc35e8aa7b3a1c42f1a661ee84d2d91cf31801a3ceb2824cfcb6a050523c7e2aaac6045243df39477f01f0b SHA512 6c467d343470c645e3fce8b146c1d1f77d1ff1fac7d302681645e43a5e79d7f82a14d16a0760ab0feb9c1a22b0df2992cd1af7a6e76b21eb5e967f23b6b742d3 +DIST patch-6.18.26.xz 1538696 BLAKE2B 327bc85624fd2d2e6c72f42037d1b02ada8b486ff0736ef440cabbf320c1cb52e4685647a47f04507ddf933df36ea7ffbcbc8dacb32b208844d7554ed8d81a4c SHA512 e983f3c6d9ca2fe1ab878d0f7897fe398befd1819239e416e123679427c92f64f708567c2361c82d8b210c0db500088781079dd60b68584fe5fa939ceea91444 DIST patch-6.6.136.xz 5905416 BLAKE2B eb486ebe595b66977c961fe5807882fd7896231d7be2a78584fa5a38b96642c77ce5c32bd8f5c3ba0c93651df7779d8dc53ff58b55440f39fd9f23d7e428601a SHA512 ecd8132ad994ed07d0dc2acf07dd980eec3c54eae038b1e84ce9b953b911fcefa1559619f0fbf376be9671039f283d6f71a2f4dcc1623f20cb9cfdf6b7593688 +DIST patch-6.6.137.xz 5911268 BLAKE2B f8bfecebcca3d65ea687a656df5648b6260c0e7ab886c0223638e8f312383f714495d2bb7ddd91addd4dfba5c5a190bc0275733e7c214d021f7594cce4904945 SHA512 f1f66711068eb3e14189612f73d4e755291be75111e9578047d7f4334b2b3d7b3c104e9c55b71298d56334461d4e4a1a95f12f54967a09cae10533e98aaa98e4 DIST patch-7.0.2.xz 42396 BLAKE2B caa1d23581d32716ad853a1e43425a9277ed8e8a08e007f84107fddd8fa73e9a45dab01c35fb3a43d0ae2a80a11905e54f7a7c8ceed86c8f3eb74d283d4dfc7a SHA512 dac9f93fe01474b905211679618ad13c1a72c98a1b560be1545ed075448aa4a39b2d8ad437179af69a7b43f5fed67709cc7f51401b90c92c8f7af8843e39bd54 +DIST patch-7.0.3.xz 42876 BLAKE2B b725833b4848023b0832f52c7e3f0d8f9bac54b0f16bcc0015e357d4456aee6658a034d10a617109fdd47c74e1487f7f51da2f9cd49d70072878240ea11f2849 SHA512 79fa83dd31cb700f05a563e2b018741b61c6f77bafce9f6f2c1f8f7e29ab71ae88ef82dcfe662ec11cb1195a2472e989febddc4db134c23755804f1421481424 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.254.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.254.ebuild new file mode 100644 index 000000000000..d36aaf0765c4 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.254.ebuild @@ -0,0 +1,179 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-5.10.248 +BINPKG=${P/-bin}-1 +SHA256SUM_DATE=20260501 + +DESCRIPTION="Pre-built Linux kernel 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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + amd64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/ppc64le/$(ver_cut 1-2)/${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/x86/$(ver_cut 1-2)/${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + virtual/libelf + app-alternatives/yacc + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" + +KV_LOCALVERSION='-gentoo-dist' +KV_FULL=${PV/_p/-p}${KV_LOCALVERSION} + +QA_PREBUILT='*' + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + unpacker +} + +src_prepare() { + local patch + cd "${BASE_P}" || die + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # we built -bins without them + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + WERROR=0 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + fi + + mkdir modprep || die + cp "${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" modprep/ || die + emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KV_FULL}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KV_FULL}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" +} + +src_install() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + 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-${KV_FULL}"/ || die +} diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.204.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.204.ebuild new file mode 100644 index 000000000000..645008fdf375 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.204.ebuild @@ -0,0 +1,179 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-5.15.201 +BINPKG=${P/-bin}-1 +SHA256SUM_DATE=20260501 + +DESCRIPTION="Pre-built Linux kernel 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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + amd64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/ppc64le/$(ver_cut 1-2)/${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/x86/$(ver_cut 1-2)/${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + virtual/libelf + app-alternatives/yacc + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" + +KV_LOCALVERSION='-gentoo-dist' +KV_FULL=${PV/_p/-p}${KV_LOCALVERSION} + +QA_PREBUILT='*' + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + unpacker +} + +src_prepare() { + local patch + cd "${BASE_P}" || die + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # we built -bins without them + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + WERROR=0 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + fi + + mkdir modprep || die + cp "${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" modprep/ || die + emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KV_FULL}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KV_FULL}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" +} + +src_install() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + 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-${KV_FULL}"/ || die +} diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.170.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.170.ebuild new file mode 100644 index 000000000000..a51b2c6e929a --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.170.ebuild @@ -0,0 +1,179 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.1.164 +BINPKG=${P/-bin}-1 +SHA256SUM_DATE=20260501 + +DESCRIPTION="Pre-built Linux kernel 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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + amd64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/ppc64le/$(ver_cut 1-2)/${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/x86/$(ver_cut 1-2)/${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + virtual/libelf + app-alternatives/yacc + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" + +KV_LOCALVERSION='-gentoo-dist' +KV_FULL=${PV/_p/-p}${KV_LOCALVERSION} + +QA_PREBUILT='*' + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + unpacker +} + +src_prepare() { + local patch + cd "${BASE_P}" || die + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # we built -bins without them + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + WERROR=0 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + fi + + mkdir modprep || die + cp "${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" modprep/ || die + emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KV_FULL}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KV_FULL}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" +} + +src_install() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + 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-${KV_FULL}"/ || die +} diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.12.85.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.12.85.ebuild new file mode 100644 index 000000000000..2232e5d91010 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.12.85.ebuild @@ -0,0 +1,233 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-install toolchain-funcs unpacker verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.12.75 +BINPKG=${P/-bin}-1 +SHA256SUM_DATE=20260501 + +DESCRIPTION="Pre-built Linux kernel 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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + amd64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/ppc64le/$(ver_cut 1-2)/${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/x86/$(ver_cut 1-2)/${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + dev-util/pahole + virtual/libelf + app-alternatives/yacc + amd64? ( app-crypt/sbsigntools ) + arm64? ( app-crypt/sbsigntools ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" + +KV_LOCALVERSION='-gentoo-dist' +KV_FULL=${PV/_p/-p}${KV_LOCALVERSION} + +QA_PREBUILT='*' + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + unpacker +} + +src_prepare() { + local patch + cd "${BASE_P}" || die + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # we built -bins without them + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + WERROR=0 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + elif use arm64 && use generic-uki; then + die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build" + fi + + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + + # Override user variable with the cert used during build + openssl x509 \ + -inform DER -in "${kernel_dir}/certs/signing_key.x509" \ + -outform PEM -out "${T}/cert.pem" || + die "Failed to convert pcrpkey to PEM format" + export SECUREBOOT_SIGN_CERT=${T}/cert.pem + + if [[ -s ${uki} ]]; then + # We need to extract the plain image for the test phase + # and USE=-generic-uki. + kernel-install_extract_from_uki linux "${uki}" "${image}" + fi + + mkdir modprep || die + cp "${kernel_dir}/.config" modprep/ || die + emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + kernel-install_test "${KV_FULL}" \ + "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KV_FULL}" \ + "${WORKDIR}/${kernel_dir}/.config" +} + +src_install() { + local rel_kernel_dir=/usr/src/linux-${KV_FULL} + local kernel_dir="${BINPKG}/image${rel_kernel_dir}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # Keep the kernel image type we don't want out of install tree + # Replace back with placeholder + if use generic-uki; then + > "${image}" || die + else + > "${uki}" || die + fi + fi + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + 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}${rel_kernel_dir}"/ || die + + # Update timestamps on all modules to ensure cleanup works correctly + # when switching USE=modules-compress. + find "${ED}/lib" -name '*.ko' -exec touch {} + || die + + # Modules were already stripped before signing + dostrip -x /lib/modules + kernel-install_compress_modules + + # Mirror the logic from kernel-build_src_install, for architectures + # where USE=debug is used. + if use ppc64; then + dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)" + elif use debug && { use amd64 || use arm64; }; then + dostrip -x "${rel_kernel_dir}/vmlinux" + dostrip -x "${rel_kernel_dir}/vmlinux.ctfa" + fi +} diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.18.26.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.18.26.ebuild new file mode 100644 index 000000000000..3f90bb2c1a7c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.18.26.ebuild @@ -0,0 +1,233 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-install toolchain-funcs unpacker verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.18.16 +BINPKG=${P/-bin}-1 +SHA256SUM_DATE=20260501 + +DESCRIPTION="Pre-built Linux kernel 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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + amd64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/ppc64le/$(ver_cut 1-2)/${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/x86/$(ver_cut 1-2)/${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PATCH_PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + dev-util/pahole + virtual/libelf + app-alternatives/yacc + amd64? ( app-crypt/sbsigntools ) + arm64? ( app-crypt/sbsigntools ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" + +KV_LOCALVERSION='-gentoo-dist' +KV_FULL=${PV/_p/-p}${KV_LOCALVERSION} + +QA_PREBUILT='*' + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + unpacker +} + +src_prepare() { + local patch + cd "${BASE_P}" || die + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # we built -bins without them + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + WERROR=0 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + elif use arm64 && use generic-uki; then + die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build" + fi + + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + + # Override user variable with the cert used during build + openssl x509 \ + -inform DER -in "${kernel_dir}/certs/signing_key.x509" \ + -outform PEM -out "${T}/cert.pem" || + die "Failed to convert pcrpkey to PEM format" + export SECUREBOOT_SIGN_CERT=${T}/cert.pem + + if [[ -s ${uki} ]]; then + # We need to extract the plain image for the test phase + # and USE=-generic-uki. + kernel-install_extract_from_uki linux "${uki}" "${image}" + fi + + mkdir modprep || die + cp "${kernel_dir}/.config" modprep/ || die + emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + kernel-install_test "${KV_FULL}" \ + "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KV_FULL}" \ + "${WORKDIR}/${kernel_dir}/.config" +} + +src_install() { + local rel_kernel_dir=/usr/src/linux-${KV_FULL} + local kernel_dir="${BINPKG}/image${rel_kernel_dir}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # Keep the kernel image type we don't want out of install tree + # Replace back with placeholder + if use generic-uki; then + > "${image}" || die + else + > "${uki}" || die + fi + fi + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + 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}${rel_kernel_dir}"/ || die + + # Update timestamps on all modules to ensure cleanup works correctly + # when switching USE=modules-compress. + find "${ED}/lib" -name '*.ko' -exec touch {} + || die + + # Modules were already stripped before signing + dostrip -x /lib/modules + kernel-install_compress_modules + + # Mirror the logic from kernel-build_src_install, for architectures + # where USE=debug is used. + if use ppc64; then + dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)" + elif use debug && { use amd64 || use arm64; }; then + dostrip -x "${rel_kernel_dir}/vmlinux" + dostrip -x "${rel_kernel_dir}/vmlinux.ctfa" + fi +} diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.137.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.137.ebuild new file mode 100644 index 000000000000..bd1f6d0382ff --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.137.ebuild @@ -0,0 +1,233 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-install toolchain-funcs unpacker verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.6.134 +BINPKG=${P/-bin}-1 +SHA256SUM_DATE=20260501 + +DESCRIPTION="Pre-built Linux kernel 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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + amd64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/ppc64le/$(ver_cut 1-2)/${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/x86/$(ver_cut 1-2)/${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + dev-util/pahole + virtual/libelf + app-alternatives/yacc + amd64? ( app-crypt/sbsigntools ) + arm64? ( app-crypt/sbsigntools ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" + +KV_LOCALVERSION='-gentoo-dist' +KV_FULL=${PV/_p/-p}${KV_LOCALVERSION} + +QA_PREBUILT='*' + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + unpacker +} + +src_prepare() { + local patch + cd "${BASE_P}" || die + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # we built -bins without them + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + WERROR=0 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + elif use arm64 && use generic-uki; then + die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build" + fi + + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + + # Override user variable with the cert used during build + openssl x509 \ + -inform DER -in "${kernel_dir}/certs/signing_key.x509" \ + -outform PEM -out "${T}/cert.pem" || + die "Failed to convert pcrpkey to PEM format" + export SECUREBOOT_SIGN_CERT=${T}/cert.pem + + if [[ -s ${uki} ]]; then + # We need to extract the plain image for the test phase + # and USE=-generic-uki. + kernel-install_extract_from_uki linux "${uki}" "${image}" + fi + + mkdir modprep || die + cp "${kernel_dir}/.config" modprep/ || die + emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + kernel-install_test "${KV_FULL}" \ + "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KV_FULL}" \ + "${WORKDIR}/${kernel_dir}/.config" +} + +src_install() { + local rel_kernel_dir=/usr/src/linux-${KV_FULL} + local kernel_dir="${BINPKG}/image${rel_kernel_dir}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # Keep the kernel image type we don't want out of install tree + # Replace back with placeholder + if use generic-uki; then + > "${image}" || die + else + > "${uki}" || die + fi + fi + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + 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}${rel_kernel_dir}"/ || die + + # Update timestamps on all modules to ensure cleanup works correctly + # when switching USE=modules-compress. + find "${ED}/lib" -name '*.ko' -exec touch {} + || die + + # Modules were already stripped before signing + dostrip -x /lib/modules + kernel-install_compress_modules + + # Mirror the logic from kernel-build_src_install, for architectures + # where USE=debug is used. + if use ppc64; then + dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)" + elif use debug && { use amd64 || use arm64; }; then + dostrip -x "${rel_kernel_dir}/vmlinux" + dostrip -x "${rel_kernel_dir}/vmlinux.ctfa" + fi +} diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-7.0.3.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-7.0.3.ebuild new file mode 100644 index 000000000000..807e3071001a --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-7.0.3.ebuild @@ -0,0 +1,234 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-install toolchain-funcs unpacker verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-7.0.1 +BINPKG=${P/-bin}-1 +SHA256SUM_DATE=20260501 + +DESCRIPTION="Pre-built Linux kernel 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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + amd64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/amd64/$(ver_cut 1-2)/${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/arm64/$(ver_cut 1-2)/${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/ppc64le/$(ver_cut 1-2)/${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://distfiles.gentoo.org/pub/proj/dist-kernel/binpkg/x86/$(ver_cut 1-2)/${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PATCH_PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + app-alternatives/yacc + dev-util/pahole + sys-libs/binutils-libs + virtual/libelf + amd64? ( app-crypt/sbsigntools ) + arm64? ( app-crypt/sbsigntools ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" + +KV_LOCALVERSION='-gentoo-dist' +KV_FULL=${PV/_p/-p}${KV_LOCALVERSION} + +QA_PREBUILT='*' + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + unpacker +} + +src_prepare() { + local patch + cd "${BASE_P}" || die + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # we built -bins without them + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + WERROR=0 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + elif use arm64 && use generic-uki; then + die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build" + fi + + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + + # Override user variable with the cert used during build + openssl x509 \ + -inform DER -in "${kernel_dir}/certs/signing_key.x509" \ + -outform PEM -out "${T}/cert.pem" || + die "Failed to convert pcrpkey to PEM format" + export SECUREBOOT_SIGN_CERT=${T}/cert.pem + + if [[ -s ${uki} ]]; then + # We need to extract the plain image for the test phase + # and USE=-generic-uki. + kernel-install_extract_from_uki linux "${uki}" "${image}" + fi + + mkdir modprep || die + cp "${kernel_dir}/.config" modprep/ || die + emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}" + kernel-install_test "${KV_FULL}" \ + "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KV_FULL}" \ + "${WORKDIR}/${kernel_dir}/.config" +} + +src_install() { + local rel_kernel_dir=/usr/src/linux-${KV_FULL} + local kernel_dir="${BINPKG}/image${rel_kernel_dir}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # Keep the kernel image type we don't want out of install tree + # Replace back with placeholder + if use generic-uki; then + > "${image}" || die + else + > "${uki}" || die + fi + fi + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + 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}${rel_kernel_dir}"/ || die + + # Update timestamps on all modules to ensure cleanup works correctly + # when switching USE=modules-compress. + find "${ED}/lib" -name '*.ko' -exec touch {} + || die + + # Modules were already stripped before signing + dostrip -x /lib/modules + kernel-install_compress_modules + + # Mirror the logic from kernel-build_src_install, for architectures + # where USE=debug is used. + if use ppc64; then + dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)" + elif use debug && { use amd64 || use arm64; }; then + dostrip -x "${rel_kernel_dir}/vmlinux" + dostrip -x "${rel_kernel_dir}/vmlinux.ctfa" + fi +} diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 960606ea1848..a2f427cea95c 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -30,25 +30,40 @@ DIST kernel-x86_64-fedora.config.7.0.1-gentoo 263757 BLAKE2B 36f31fc745ba244c962 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-5.x-sha256sums-20260418.asc 375956 BLAKE2B d2592f053f0350997180479283fb5c57e119fad665fc28c982392b0655736827221eb21f892e628e8e2ce61b55be6d0ecbdf3c9e6d37c8b3ff29c330c28cc239 SHA512 4746bb154801314b1df39830445b6ecb59cf278da5799df0b0eaf383fba20b6a26dd3174cedd5f54f23e66b97980520b634714e480b61a0a7283734a7667b890 +DIST linux-5.x-sha256sums-20260430.asc 376643 BLAKE2B caa9720318371bf63a3b7f39edf0c13820c39fa08577c9d2457cf9616a58fc91b790cdc0ee53bcbfd13cdf937e73d2116651c6e7b7b4a650f00e90cfa842c29d SHA512 f4fbf987bb71ddf789f0aa788b9902b3a5fedc50741eb4110d3875e757f9b603c0eddee6fb2afe909ef35eeb2b3f179a1a55b3811b897a2285cd49e8de9f1202 DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 DIST linux-6.12.tar.xz 147906904 BLAKE2B b2ec2fc69218cacabbbe49f78384a5d259ca581b717617c12b000b16f4a4c59ee348ea886b37147f5f70fb9a7a01c1e2c8f19021078f6b23f5bc62d1c48d5e5e SHA512 a37b1823df7b4f72542f689b65882634740ba0401a42fdcf6601d9efd2e132e5a7650e70450ba76f6cd1f13ca31180f2ccee9d54fe4df89bc0000ade4380a548 DIST linux-6.18.tar.xz 154309096 BLAKE2B b94b7b9bf18aca0c3e50baf79b009a1448fc6cd9c3ee019f641cc247dcf53a4abef4274ee0608ad8cd4943af69854363a95d26e117ff23620bb07dccb158859f SHA512 88599ffdec96d150c1feb9b261ba93bb0301a9d0e1ad6bef7aeab1f5372cbfc57d8b43c7e902bd8f76921d1dbd8189663c142ea869e51d0e2b483b150ee00fe0 DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35 DIST linux-6.x-sha256sums-20260418.asc 216540 BLAKE2B 37655901ab474fec6a525ab7f8f3153688d2341fffb9c787f14f3ef8ec1783c8b5091624f3eb65bb02675e0c5e6f579e473e838ff8904f1d403aa3708a88c7cb SHA512 480d377ca47501687fa28d1ea196957f036fbfceb16eb98599c77784ce9295a3235ac9cb93315c3e91afd1c9c6a0c700f313e7c3d1c100c78854ceebc3c20e8c DIST linux-6.x-sha256sums-20260427.asc 218586 BLAKE2B aba99f133ff56ebaaf4fe0774bd907e28aa1dc5b69992ff52eecb70a8e12890ca0f5009be43f446ea8c6ab9fd198efd12e3aedf5c07488da891fd91532007112 SHA512 a6d7be4d0f5c046be8d614228a6a51c4f8cd71ac5683a3088cd1c0f52530893efbcc76fb3decac823e31c05307b774d72c83d09c6b90667d88e93374ac964b8e +DIST linux-6.x-sha256sums-20260430.asc 219947 BLAKE2B 064b01f35878749efcf2bd0bc99a577ffc380e51dd94bd02c7f1fc8aa02013772c079013b4a8339fd53271bfe7e6ff41ae862e8b60d0e0d531ea90f347a79dac SHA512 ac341e368e27ad2c44d638e3c37076dfe9bb95740a7cc8a74747585ef19e4a803d638e9cbff80732237efc3768f4b88ab8e3cb104188fca5a9bc0acdd87cf60a DIST linux-7.0.tar.xz 157143652 BLAKE2B 3d9795083c8938f80f480de0d10bfd9c525640e59d5c7f22983de3f12ee42c84c31be902cafb05579ddb1c32bac5ed06b0d4953f9705450be185bd2d9ab08f89 SHA512 8c85b708342f8f09ca25b2234b22e93b62b144a9ef919fbb21827f52fa47498e778c79db1559524dd7fb360f95b2ce174171443c1859656c281be41d2b6c5a0b DIST linux-7.x-sha256sums-20260427.asc 1876 BLAKE2B f423b97f3c241abe3cdd757f6bda34cd900c4140b371a5a7abb692dc3e404689266e162c177c66e8eee991ce5c3b7bb681d8b8cbf1c2005aaaf7291cba9efe7c SHA512 90be7186a920260a6553d08bcf6bd0ca142988134ff2d8277773624d18d0c92e048a2c620965185b35b4567708aafe610d58ef899eb306f2d4b1e2bd481253e4 +DIST linux-7.x-sha256sums-20260430.asc 2206 BLAKE2B 24d86e0f6338498e8b5f74cb0886692ae0003c30a70e6f6654588064df9ec4f569071982e141bedba1b2e7c6728e73dede5e2ce2764554c62db7587b5fc1e86a SHA512 cf08970476eb1cfedc9cf75ff73fdcf8bfbb79d1a49ead4a07e0bee8659a6fa3c8c369b33251c75b030ec34cfc2c4077b25fe07c1022c2e6a1db4026c7768189 +DIST linux-gentoo-patches-5.10.248.tar.xz 24128 BLAKE2B ee1ac9dab33c96fe5020ad8bc9c657bb72a0171aeaf3ed4fe479f4b923f92be514c55144dc80753b5df2db82c75209280f7a2867b19fd76a55ea67e9809516ec SHA512 26e5521954929c8ac396ffaf786edea7118435347e2b43ae7b7cc5abccb0f26eca0277b6914dc709687c5fdc9247735e8419b491c11ff80e8ec7d519ee6edccb DIST linux-gentoo-patches-5.10.253_p1.tar.xz 24704 BLAKE2B 2b1620a63023d1ebde93e3ab44194f9d378708a8a4dbacce18648215ab5d6567c21bf399c04c09fbafe0a9e475d9d65edbdb0a05b1c5c2073d054c70e7f1516a SHA512 8022e1527332cedb9fc39584785789dab59c8e0e80030ea0f7a0b5cbbaf7d71bab82d03b5c94166ff1a54e57996a2961f764c6cc4481ede8f52a558fd304c1dc +DIST linux-gentoo-patches-5.15.201.tar.xz 10200 BLAKE2B 204f35185fde21708cd37bb513d59df3fd43d0e7adb2cb2a987efd6700711830832d26cf563d77542d8a29f6728025f9bac9caab870dd2686fa50a5d1d3c4030 SHA512 b26ea3d9bdf7cfc17f82258cbcc7b6f5f276d6a9e1fd7ae7a8f4f212a3814bb1e826fd201a1bb092a4f0e65fa5da3f1c000b9b54cbe012e8c52445b234f303ff DIST linux-gentoo-patches-5.15.203_p1.tar.xz 10784 BLAKE2B 4d2d478c0680afc2ffcb975020608042daa609c8734c890a6c36fd6c3b85bac14247cd649069d7f36766f440732a1c698748894cb2c96d3b045090ba0fcd6bd0 SHA512 12da526c37372f36a400e3942433e3267e15e5c6e4c5e1fb335cb7c39b7b828f4db5b109dfb24f79690ba0aac170e2b5893b101b51e7b546d506fb5d2c9873ef +DIST linux-gentoo-patches-6.1.164.tar.xz 28932 BLAKE2B a49ad3d5c7a22728e4519cb2cd3c43eb9ef13561a789b68888024f90e58df7d6a8a154b0edbd85259501ff539479ce9aca92474a022196914ca13833605b8c8d SHA512 08fd9f8c78cc69d5f01f184f247bbd3f403ebeb3bbe7e8450f53963bd0c550050dbaa596bb5465bc668ce1697f70ffe3eae43178bcb353119443a1d598f3f41d DIST linux-gentoo-patches-6.1.169_p1.tar.xz 29504 BLAKE2B bf9c9a55c628c6905bf0e9a819d706054d1772c193ab386fc22bf64e2eb6395b7524aff836fb300a88a5306165d92311da884126fcb046932c2695921113b578 SHA512 6aec10c3cc58f06736d4c246093bb16bcc375d1d027d78386af167e792cd7e16f48cef3040eef701a8bc1600223db4cc3cfbbb0fefb80a963bd1b0049edb03d1 +DIST linux-gentoo-patches-6.12.75.tar.xz 20180 BLAKE2B 436ae2c1b00442e961c1bdb14f658bb14c02e1a73f9ea0b2125fcc6614d5f8ebb630cd22dcf5bc26fc3d5b2cca75fe88903f31e0c44cb76379596ba415e30f65 SHA512 6d1a953bc1b123da4dabbf393ff0dca83556accac535f2d6683e104297413f10e9dbb393ff76f316c7fe892849d0ea73834976c7637872151443586584ce0123 DIST linux-gentoo-patches-6.12.84_p1.tar.xz 20748 BLAKE2B f29bf79bf2d8502d6274f4935e44fba2951c7ba2af65cf68a630085f9ba07615e5b4ec294b2f4f69f2694b6a6a2c658609e8b411d4a89c42823d27ead9dfdf1e SHA512 ec2a9a76a3ae652b6cabe2118a978d5a3ddbbaea7522e28b97c8341b93ecefea964e28593fbf31f084a5597c85590950e1b6f3b049a7f879971cc9dc83fe38df DIST linux-gentoo-patches-6.18.16.tar.xz 10832 BLAKE2B 3bd240cfc5f62689dcae40cdb08c447bb4cf275395bbaba72ed2b9a63dc3b37446245d7dff88f639ca80e5b66f1a53f73d88af832c2655c16249f919c9896199 SHA512 a57c0a62b14701e8a776ed5f8eec45798edc8f79e089c4a22976a091c693c3f03e9cf26f2a592bd92f4ebacf100cce55523a99c3a3197eeeefcdbf995f3bf55a +DIST linux-gentoo-patches-6.6.134.tar.xz 42820 BLAKE2B 14164c31817dbc4bd6c421ddd0b87bf16e9f8fd493f082b17e5780277ff9d0cef4d827ba2cb10db47142b0f528f924721fa6ff057f30b7e2ab916767b069836d SHA512 97177a8e8254b8a5fa2b6f380f36a27219015fb8d026f3080331bce9f8d289666dd7388f3cc70b017d3c61acbdeb887b25556d66aed2947a917f217ad80b5312 DIST linux-gentoo-patches-6.6.136_p1.tar.xz 43372 BLAKE2B 3d152e481dc8f9a6ff4d8bcf5cf7bbe9eca44fc69e26f5424ab75431f8956898df6dccdeec906e8274c81c81ee90a5e4d6248526ee1e98738157ee0cd4ed2007 SHA512 a9079127241744c5fb0c6b5ad508e81c9196b7c97091162635b4d1cfc60a8ff826e26ffafe3bf056cea3c56f8cc5ff0cdbba31eee90da7659ac88c7e1c3d80b3 DIST linux-gentoo-patches-7.0.1.tar.xz 9556 BLAKE2B 3b665b8912767095caceadc826fedc836b62dcd490f04f0ae4bdc64e8ee84403d0f70b973f1afec1a627028b6ea6f179aeedcafe70102a59e07152054d09f2af SHA512 59a43b5c6e11315393ca4549a6d8e53863399ee3d1f478daeb970652c37f18d99dc6827a190118dffee84ea86f3a63362e3aa062ac5ac499d7340c59170ed654 DIST patch-5.10.253.xz 7248732 BLAKE2B ea684b60dfb1c3b28f5f530d46e8933fa4ff3f4ea1a6498b9cfe8c995621f27d824fe8b40686494549981ac6e30c809cd626eef6a9536f44c929e91d28c5e2f1 SHA512 f195170a0e6f924aa114f66fb72fccf19bec43c4b69d15dd94052f6e00bcfd671a30d47cc1b86617d9bb6943e05df22d6df0a32dbfd5effb65b98f1c4fd99ae3 +DIST patch-5.10.254.xz 7254948 BLAKE2B c409ba9cdc2f8280c8b947a1901980db9ed886f7aa2baad24524333a5bb855a60ae05747b745a830beaadc8500177b6b736dc0fd7266f556d9c141600a90e24e SHA512 1859322a2f1b7a40bafe6c8c386b44ec92801f7c42b4c917fa5e755b3ecee50e53a48ed004546369d0c6ce656e5a5802d6ad10fef86f47fa5881919abb176e40 DIST patch-5.15.203.xz 7676312 BLAKE2B 3a0e051b3c93864baab5c7f4757c6b147b17a75a1347e65f4c37bb83c268ab2d6f1c1258e7195b777f588f86b02e69416b96831d9284da8e9d3e52ccc153d5e5 SHA512 fb4dd6a04e408a3cd12963427e1b9acef6ecabb3feaf3e4721588c428d26e6c184b1c673b35f4ddda0d669a27d013c6c6e906289493546df82960d409581e903 +DIST patch-5.15.204.xz 7681224 BLAKE2B 5f876404ff1acf25e2553dbb62658d1ab205207811296f0119fae04aca751484e93c0146d019199b406af7a9d79a589bec8b0290730cf2367fd3fa823d74226d SHA512 f0a9ad08dbfc324a8e063fa7c656557ad46dec323f986df01bb722259cfd325b39551c9c2c485ca3b1a2447bdc9c589384992742728a9523bf2aa152d988eeb5 DIST patch-6.1.169.xz 7317628 BLAKE2B c9ca4999f7433c27ebbb3d2592227e8097353ec084e1c58c328f3a887a2b0543c7c8d5ae1a140c13ee3d3861a958ebf29a21b6e935b44c28a322f6e3fc491855 SHA512 23aad9a93157c55907e168d5a492c4c9749833b90e051e590281b3cb075b17ef5227f79694008fdc3470ab78a13054c416f9c71f6dd9a205fcafa8645e1eae8f +DIST patch-6.1.170.xz 7323812 BLAKE2B e7004a8059c8f9011884aa2b2a7718e9bc67f9820cd407f263bec9cbb4bcc4d5791ee55a99e406b4b6c17424acb1087cd67b5c841c10f0f38833b2bb28920f27 SHA512 baf0666cc180492e347392db6ad363acdf6b05515be073363432ab7af0ba7308f28728e38bd42b7699c083aa9548a789b1e2186098f411eb0a25451ab6db20a2 DIST patch-6.12.84.xz 4372924 BLAKE2B 6d812556ee681bd0a22e66d79d7cf8e8f0bf6658cfbf5e4c82cf605503b1a0f715243d08ace6cf0346b77ddbddb100b30df075f4a9a8cdd15730555baa56c26f SHA512 ae0699ef647758fac5170bced18a1bf685758e1af2851597c36dfc2d43c386547c7127cd6aefaee0e78720e8d6c72a8dc1834a7506eaed6ef59909ee6813fec8 +DIST patch-6.12.85.xz 4377956 BLAKE2B a4ce6472229c01003884ece108f60f2e9458d7fae38ebc47e7b598e1245e7a396fbc01aca3a7d310825b1f39acbe588b6865311d3ac7b4f48d2f404a728c942e SHA512 6b7c0c220ca26b900462b21641f8615f7c84dc25cc79527c8d32e9ac5742bb89851d30a69e1f1b1bfdb5bd353153c31ae523538eca1cead8cc12261a47f4a18b DIST patch-6.18.25.xz 1538348 BLAKE2B b707adfc3d23d74ae882a0b4d15ce7b46e5c1011bcc35e8aa7b3a1c42f1a661ee84d2d91cf31801a3ceb2824cfcb6a050523c7e2aaac6045243df39477f01f0b SHA512 6c467d343470c645e3fce8b146c1d1f77d1ff1fac7d302681645e43a5e79d7f82a14d16a0760ab0feb9c1a22b0df2992cd1af7a6e76b21eb5e967f23b6b742d3 +DIST patch-6.18.26.xz 1538696 BLAKE2B 327bc85624fd2d2e6c72f42037d1b02ada8b486ff0736ef440cabbf320c1cb52e4685647a47f04507ddf933df36ea7ffbcbc8dacb32b208844d7554ed8d81a4c SHA512 e983f3c6d9ca2fe1ab878d0f7897fe398befd1819239e416e123679427c92f64f708567c2361c82d8b210c0db500088781079dd60b68584fe5fa939ceea91444 DIST patch-6.6.136.xz 5905416 BLAKE2B eb486ebe595b66977c961fe5807882fd7896231d7be2a78584fa5a38b96642c77ce5c32bd8f5c3ba0c93651df7779d8dc53ff58b55440f39fd9f23d7e428601a SHA512 ecd8132ad994ed07d0dc2acf07dd980eec3c54eae038b1e84ce9b953b911fcefa1559619f0fbf376be9671039f283d6f71a2f4dcc1623f20cb9cfdf6b7593688 +DIST patch-6.6.137.xz 5911268 BLAKE2B f8bfecebcca3d65ea687a656df5648b6260c0e7ab886c0223638e8f312383f714495d2bb7ddd91addd4dfba5c5a190bc0275733e7c214d021f7594cce4904945 SHA512 f1f66711068eb3e14189612f73d4e755291be75111e9578047d7f4334b2b3d7b3c104e9c55b71298d56334461d4e4a1a95f12f54967a09cae10533e98aaa98e4 DIST patch-7.0.2.xz 42396 BLAKE2B caa1d23581d32716ad853a1e43425a9277ed8e8a08e007f84107fddd8fa73e9a45dab01c35fb3a43d0ae2a80a11905e54f7a7c8ceed86c8f3eb74d283d4dfc7a SHA512 dac9f93fe01474b905211679618ad13c1a72c98a1b560be1545ed075448aa4a39b2d8ad437179af69a7b43f5fed67709cc7f51401b90c92c8f7af8843e39bd54 +DIST patch-7.0.3.xz 42876 BLAKE2B b725833b4848023b0832f52c7e3f0d8f9bac54b0f16bcc0015e357d4456aee6658a034d10a617109fdd47c74e1487f7f51da2f9cd49d70072878240ea11f2849 SHA512 79fa83dd31cb700f05a563e2b018741b61c6f77bafce9f6f2c1f8f7e29ab71ae88ef82dcfe662ec11cb1195a2472e989febddc4db134c23755804f1421481424 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.254.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.254.ebuild new file mode 100644 index 000000000000..d3a6973ddb63 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.254.ebuild @@ -0,0 +1,171 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-5.10.248 +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g17 +SHA256SUM_DATE=20260430 + +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + local patch + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # when ! use experimental, stop applying after it + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] && + ! use experimental + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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 + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.204.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.204.ebuild new file mode 100644 index 000000000000..44946dd8db8c --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.204.ebuild @@ -0,0 +1,171 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-5.15.201 +# 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=g17 +SHA256SUM_DATE=20260430 + +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + local patch + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # when ! use experimental, stop applying after it + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] && + ! use experimental + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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 + + 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.1.170.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.170.ebuild new file mode 100644 index 000000000000..07e2d8927f10 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.1.170.ebuild @@ -0,0 +1,172 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.1.164 +# 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=g17 +SHA256SUM_DATE=20260430 + +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + riscv? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + local patch + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # when ! use experimental, stop applying after it + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] && + ! use experimental + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | riscv | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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 + + 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.12.85.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.85.ebuild new file mode 100644 index 000000000000..05b12b3c1d0c --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.85.ebuild @@ -0,0 +1,184 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.12.75 +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.12.41-gentoo +GENTOO_CONFIG_VER=g18 +SHA256SUM_DATE=20260430 + +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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} + ) + riscv? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config + -> kernel-riscv64-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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + local patch + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # when ! use experimental, stop applying after it + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] && + ! use experimental + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + riscv) + cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die + ;; + 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 + "${dist_conf_path}"/6.12+.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" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.18.26.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.18.26.ebuild new file mode 100644 index 000000000000..2c7a04522bf9 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.18.26.ebuild @@ -0,0 +1,175 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.18.16 +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.18.12-gentoo +GENTOO_CONFIG_VER=g18 +SHA256SUM_DATE=20260430 + +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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} + ) + riscv? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config + -> kernel-riscv64-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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + local patch + eapply "${WORKDIR}/patch-${PATCH_PV}" + eapply "${WORKDIR}/${PATCHSET}" + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + riscv) + cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die + ;; + 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 + "${dist_conf_path}"/6.12+.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" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.137.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.137.ebuild new file mode 100644 index 000000000000..53d17939ab49 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.137.ebuild @@ -0,0 +1,177 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.6.134 +# 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=g17 +SHA256SUM_DATE=20260430 + +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + riscv? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + local patch + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # when ! use experimental, stop applying after it + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] && + ! use experimental + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | riscv | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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 + + use secureboot && merge_configs+=( + "${dist_conf_path}/secureboot.config" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-7.0.3.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-7.0.3.ebuild new file mode 100644 index 000000000000..d9d925d5301b --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-7.0.3.ebuild @@ -0,0 +1,175 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-7.0.1 +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=7.0.1-gentoo +GENTOO_CONFIG_VER=g18 +SHA256SUM_DATE=20260430 + +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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} + ) + riscv? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config + -> kernel-riscv64-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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + local patch + eapply "${WORKDIR}/patch-${PATCH_PV}" + eapply "${WORKDIR}/${PATCHSET}" + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + riscv) + cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die + ;; + 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 + "${dist_conf_path}"/6.12+.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" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/gentoo-sources/gentoo-sources-5.10.254.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-5.10.254.ebuild index cfbe24678504..431cdb6fca87 100644 --- a/sys-kernel/gentoo-sources/gentoo-sources-5.10.254.ebuild +++ b/sys-kernel/gentoo-sources/gentoo-sources-5.10.254.ebuild @@ -13,7 +13,7 @@ detect_arch DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" HOMEPAGE="https://dev.gentoo.org/~alicef/genpatches" SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" IUSE="experimental" pkg_postinst() { diff --git a/sys-kernel/gentoo-sources/gentoo-sources-5.15.204.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-5.15.204.ebuild index d5f32cb656e4..394870e976cd 100644 --- a/sys-kernel/gentoo-sources/gentoo-sources-5.15.204.ebuild +++ b/sys-kernel/gentoo-sources/gentoo-sources-5.15.204.ebuild @@ -13,7 +13,7 @@ detect_arch DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" HOMEPAGE="https://dev.gentoo.org/~alicef/genpatches" SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" IUSE="experimental" pkg_postinst() { diff --git a/sys-kernel/gentoo-sources/gentoo-sources-6.1.170.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-6.1.170.ebuild index b930a5002836..b2dd006c43fe 100644 --- a/sys-kernel/gentoo-sources/gentoo-sources-6.1.170.ebuild +++ b/sys-kernel/gentoo-sources/gentoo-sources-6.1.170.ebuild @@ -13,7 +13,7 @@ detect_arch DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" HOMEPAGE="https://dev.gentoo.org/~alicef/genpatches" SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" IUSE="experimental" pkg_postinst() { diff --git a/sys-kernel/gentoo-sources/gentoo-sources-6.12.85.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-6.12.85.ebuild index 5ad596965044..f0d6913b2c56 100644 --- a/sys-kernel/gentoo-sources/gentoo-sources-6.12.85.ebuild +++ b/sys-kernel/gentoo-sources/gentoo-sources-6.12.85.ebuild @@ -13,7 +13,7 @@ detect_arch DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" HOMEPAGE="https://dev.gentoo.org/~alicef/genpatches" SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" IUSE="experimental" pkg_pretend() { diff --git a/sys-kernel/gentoo-sources/gentoo-sources-6.18.26.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-6.18.26.ebuild index 19bdf2473906..2571073c0e71 100644 --- a/sys-kernel/gentoo-sources/gentoo-sources-6.18.26.ebuild +++ b/sys-kernel/gentoo-sources/gentoo-sources-6.18.26.ebuild @@ -13,7 +13,7 @@ detect_arch DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" HOMEPAGE="https://dev.gentoo.org/~alicef/genpatches" SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" IUSE="experimental" pkg_postinst() { diff --git a/sys-kernel/gentoo-sources/gentoo-sources-6.6.137.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-6.6.137.ebuild index d820e6e092d2..8c40fdf5c864 100644 --- a/sys-kernel/gentoo-sources/gentoo-sources-6.6.137.ebuild +++ b/sys-kernel/gentoo-sources/gentoo-sources-6.6.137.ebuild @@ -13,7 +13,7 @@ detect_arch DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" HOMEPAGE="https://dev.gentoo.org/~alicef/genpatches" SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" IUSE="experimental" pkg_postinst() { diff --git a/sys-kernel/installkernel/Manifest b/sys-kernel/installkernel/Manifest index a50073ee205b..4692a61f9a7a 100644 --- a/sys-kernel/installkernel/Manifest +++ b/sys-kernel/installkernel/Manifest @@ -2,3 +2,4 @@ DIST installkernel-63.tar.gz 30695 BLAKE2B c96f4b7b4384291b202be2e971255be5793f7 DIST installkernel-65.tar.gz 32895 BLAKE2B eff2be3ef8889359b5bde765131b3aab432fffd08a5e35ede597a5650c1bd209a71dae6ac40b34191a853b5ab6ef3aca7dfda00a29d3dcf723f81537e2924d69 SHA512 3d1f50782dba7a308ed16c144af75dcff217a956af80f697903a0a12e8bda6a78fd63e8c9c6fa4f6ee2bb306f78a90b93eb3b3062377096f43dc014fc6185aa0 DIST installkernel-66.tar.gz 32894 BLAKE2B 21659aca2f6847cab24ac96b952fa286be964ce478b21d499f2eadf624c83ab528c094d760429739236269fb2c671b03a9ef92b40ebfa99bc643f664e61aed2d SHA512 43c3b8949d3faa5ffe63ec6c7fe3cf44927de1f8728b98fb833ab2a4ff5be3636859e1aa4be977ac1d90c3215bd9ab1ad11eaa990beedeeace8abf40964d83d0 DIST installkernel-67.tar.gz 32930 BLAKE2B cb9776f3c6cc8df3abe0defbde81986ebffb4ee96b8d1c507dcf71342dbfe9a974c432c18a4b4285ba1a99074b87cc1d0154c3e15df9e1edf26f0cbc006d60e9 SHA512 7b3d777f3338b1e45cb4ee6cbcb23397eabd9df533fc1780b41181e2818a8496e7c4237a2baa7e4fdcc0b82c255fad7646e501b5cdd8c12ce39ce7e40b8498b4 +DIST installkernel-68.tar.gz 32995 BLAKE2B 807a06d9b35cf883939aa02e0e8622c42255279909637ab9d6e665c7a80045c87c5a28569475cf76b015be7c11d176d59c27de9f0195a88b928ece22051908a9 SHA512 ad9cd8ee2ee6261305b4c65e736aa0b963b310f724e5a044da258b75e3346ed5f830d0c93755f827641b5df7e887c5a91db0072a847c60831e33780aa751473c diff --git a/sys-kernel/installkernel/installkernel-68.ebuild b/sys-kernel/installkernel/installkernel-68.ebuild new file mode 100644 index 000000000000..276bb3137d23 --- /dev/null +++ b/sys-kernel/installkernel/installkernel-68.ebuild @@ -0,0 +1,245 @@ +# Copyright 2019-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit eapi9-ver linux-info + +DESCRIPTION="Gentoo fork of installkernel script from debianutils" +HOMEPAGE=" + https://github.com/projg2/installkernel-gentoo + https://wiki.gentoo.org/wiki/Installkernel +" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/projg2/installkernel-gentoo.git" +else + SRC_URI="https://github.com/projg2/installkernel-gentoo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-gentoo-${PV}" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="dracut efistub grub refind systemd systemd-boot ugrd uki ukify" +REQUIRED_USE=" + systemd-boot? ( systemd ) + ukify? ( uki ) + ?? ( dracut ugrd ) +" +# systemd-boot could be made to work without the systemd flag, but this +# makes no sense since in systemd(-utils) the boot flag already +# requires the kernel-install flag. +# +# Ukify hooks do nothing if the layout is not uki, so force this here. +# +# Only one initramfs generator flag can be selected. Note that while +# both dracut and ukify are UKI generators we don't block those because +# enabling both results in building an initramfs only with dracut and +# building an UKI with ukify, which is a valid configuration. + +RDEPEND=" + !<=sys-kernel/installkernel-systemd-3 + dracut? ( + >=sys-kernel/dracut-110 + uki? ( + || ( + sys-apps/systemd[boot(-)] + sys-apps/systemd-utils[boot(-)] + ) + ) + ) + efistub? ( + systemd? ( >=app-emulation/virt-firmware-24.7 ) + !systemd? ( sys-boot/uefi-mkconfig ) + ) + grub? ( sys-boot/grub ) + refind? ( sys-boot/refind ) + systemd? ( + || ( + >=sys-apps/systemd-255[kernel-install(-)] + >=sys-apps/systemd-utils-255[kernel-install(-)] + ) + ) + systemd-boot? ( + || ( + sys-apps/systemd[boot(-)] + sys-apps/systemd-utils[boot(-)] + ) + ) + ukify? ( + || ( + >=sys-apps/systemd-256[boot(-),ukify(-)] + >=sys-apps/systemd-utils-256[boot(-),ukify(-)] + ) + ) + ugrd? ( >=sys-kernel/ugrd-1.31.2 ) + !=sys-apps/systemd-255.2-r1 + !=sys-apps/systemd-255.2-r0 + !~sys-apps/systemd-255.1 + !~sys-apps/systemd-255.0 + !=sys-apps/systemd-254.8-r0 + !=sys-apps/systemd-254.7-r0 + !~sys-apps/systemd-254.6 + !<=sys-apps/systemd-254.5-r1 +" # Block against systemd that still installs dummy install.conf + +pkg_setup() { + use efistub && CONFIG_CHECK="~EFI_STUB" linux-info_pkg_setup +} + +src_install() { + keepdir /etc/kernel/install.d + keepdir /etc/kernel/preinst.d + keepdir /etc/kernel/postinst.d + keepdir /usr/lib/kernel/install.d + keepdir /usr/lib/kernel/preinst.d + keepdir /usr/lib/kernel/postinst.d + + exeinto /usr/lib/kernel/preinst.d + doexe hooks/05-check-chroot.install + doexe hooks/99-check-diskspace.install + use dracut && doexe hooks/52-dracut.install + use ukify && doexe hooks/60-ukify.install + + exeinto /usr/lib/kernel/postinst.d + doexe hooks/99-write-log.install + use grub && doexe hooks/91-grub-mkconfig.install + use efistub && doexe hooks/95-efistub-uefi-mkconfig.install + use refind && doexe hooks/95-refind-copy-icon.install + + exeinto /usr/lib/kernel/install.d + doexe hooks/systemd/00-00machineid-directory.install + doexe hooks/systemd/05-check-chroot.install + doexe hooks/systemd/05-check-config.install + doexe hooks/systemd/10-copy-prebuilt.install + doexe hooks/systemd/85-check-diskspace.install + doexe hooks/systemd/90-compat.install + doexe hooks/systemd/90-zz-update-static.install + doexe hooks/systemd/99-write-log.install + use dracut && doexe hooks/systemd/52-dracut.install + use grub && doexe hooks/systemd/91-grub-mkconfig.install + use efistub && doexe hooks/systemd/95-efistub-kernel-bootcfg.install + use refind && doexe hooks/systemd/95-refind-copy-icon.install + + if use grub && use uki; then + exeinto /etc/grub.d + doexe grub/05_uki + fi + + if use systemd; then + sed -e 's/${SYSTEMD_KERNEL_INSTALL:=0}/${SYSTEMD_KERNEL_INSTALL:=1}/g' -i installkernel || + die "enabling systemd's kernel-install failed" + fi + + # set some default config using the flags we have anyway + touch "${T}/install.conf" || die + echo "# This file is managed by ${CATEGORY}/${PN}" >> "${T}/install.conf" || die + if use uki; then + echo "layout=uki" >> "${T}/install.conf" || die + elif use efistub; then + echo "layout=efistub" >> "${T}/install.conf" || die + elif use grub; then + echo "layout=grub" >> "${T}/install.conf" || die + elif use systemd-boot; then + echo "layout=bls" >> "${T}/install.conf" || die + else + echo "layout=compat" >> "${T}/install.conf" || die + fi + + if use dracut; then + echo "initrd_generator=dracut" >> "${T}/install.conf" || die + if ! use ukify; then + if use uki; then + echo "uki_generator=dracut" >> "${T}/install.conf" || die + else + echo "uki_generator=none" >> "${T}/install.conf" || die + fi + fi + elif use ugrd; then + echo "initrd_generator=ugrd" >> "${T}/install.conf" || die + else + echo "initrd_generator=none" >> "${T}/install.conf" || die + fi + + if use ukify; then + echo "uki_generator=ukify" >> "${T}/install.conf" || die + else + if ! use dracut; then + echo "uki_generator=none" >> "${T}/install.conf" || die + fi + fi + + insinto /usr/lib/kernel + doins "${T}/install.conf" + + insinto /etc/logrotate.d + newins installkernel.logrotate installkernel + keepdir /var/lib/misc + + into / + dosbin installkernel + doman installkernel.8 + + einstalldocs +} + +pkg_postinst() { + # show only when upgrading to 14+ + if ver_replacing -lt 14; then + elog "Version 14 and up of ${PN} effectively merges" + elog "${PN}-gentoo and ${PN}-systemd." + elog "Switching between the traditional installkernel and systemd's" + elog "kernel-install is controlled with the systemd USE flag or the" + elog "SYSTEMD_KERNEL_INSTALL environment variable." + elog + elog "See the installkernel wiki page[1] for more details." + elog + elog "[1]: https://wiki.gentoo.org/wiki/Installkernel" + elog + fi + + # show only on first install of version 20+ + if [[ -z "${REPLACING_VERSIONS}" ]] || ver_replacing -lt 20; then + if has_version "sys-boot/grub" && ! use grub; then + elog "sys-boot/grub is installed but the grub USE flag is not enabled." + elog "Users may want to enable this flag to automatically update the" + elog "bootloader configuration on each kernel install." + fi + if ( has_version "sys-apps/systemd[boot]" || + has_version "sys-apps/systemd-utils[boot]" ) && + ! use systemd-boot; then + elog "systemd-boot is installed but the systemd-boot USE flag" + elog "is not enabled. Users should enable this flag to install kernels" + elog "in a layout that systemd-boot understands and to automatically" + elog "update systemd-boot's configuration on each kernel install." + fi + fi + + if use efistub; then + ewarn "Automated EFI Stub booting is highly experimental. UEFI implementations" + ewarn "often differ between vendors and as a result EFI stub booting is not" + ewarn "guaranteed to work for all UEFI systems. Ensure an alternative method" + ewarn "of booting the system is available before rebooting." + fi + + # Initialize log file if there is none + dodir /var/log + local log=${ROOT}/var/log/installkernel.log + if [[ ! -s ${log} ]]; then + echo -e \ +"DATE\t"\ +"KI_VENDOR\t"\ +"VERSION\t"\ +"CONF_ROOT\t"\ +"LAYOUT\t"\ +"INITRD_GEN\t"\ +"UKI_GEN\t"\ +"BOOT_ROOT\t"\ +"KERNEL_REL_PATH\t"\ +"INITRD_REL_PATH\t"\ +"PLUGIN_OVERRIDE\t"\ +>> "${log}" || die + fi +} diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 96bb95078508..fb30ee42e4ee 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -35,18 +35,28 @@ DIST kernel-x86_64-fedora.config.7.0.1-gentoo 263757 BLAKE2B 36f31fc745ba244c962 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-5.x-sha256sums-20260418.asc 375956 BLAKE2B d2592f053f0350997180479283fb5c57e119fad665fc28c982392b0655736827221eb21f892e628e8e2ce61b55be6d0ecbdf3c9e6d37c8b3ff29c330c28cc239 SHA512 4746bb154801314b1df39830445b6ecb59cf278da5799df0b0eaf383fba20b6a26dd3174cedd5f54f23e66b97980520b634714e480b61a0a7283734a7667b890 +DIST linux-5.x-sha256sums-20260430.asc 376643 BLAKE2B caa9720318371bf63a3b7f39edf0c13820c39fa08577c9d2457cf9616a58fc91b790cdc0ee53bcbfd13cdf937e73d2116651c6e7b7b4a650f00e90cfa842c29d SHA512 f4fbf987bb71ddf789f0aa788b9902b3a5fedc50741eb4110d3875e757f9b603c0eddee6fb2afe909ef35eeb2b3f179a1a55b3811b897a2285cd49e8de9f1202 DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 DIST linux-6.12.tar.xz 147906904 BLAKE2B b2ec2fc69218cacabbbe49f78384a5d259ca581b717617c12b000b16f4a4c59ee348ea886b37147f5f70fb9a7a01c1e2c8f19021078f6b23f5bc62d1c48d5e5e SHA512 a37b1823df7b4f72542f689b65882634740ba0401a42fdcf6601d9efd2e132e5a7650e70450ba76f6cd1f13ca31180f2ccee9d54fe4df89bc0000ade4380a548 DIST linux-6.18.tar.xz 154309096 BLAKE2B b94b7b9bf18aca0c3e50baf79b009a1448fc6cd9c3ee019f641cc247dcf53a4abef4274ee0608ad8cd4943af69854363a95d26e117ff23620bb07dccb158859f SHA512 88599ffdec96d150c1feb9b261ba93bb0301a9d0e1ad6bef7aeab1f5372cbfc57d8b43c7e902bd8f76921d1dbd8189663c142ea869e51d0e2b483b150ee00fe0 DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35 DIST linux-6.x-sha256sums-20260418.asc 216540 BLAKE2B 37655901ab474fec6a525ab7f8f3153688d2341fffb9c787f14f3ef8ec1783c8b5091624f3eb65bb02675e0c5e6f579e473e838ff8904f1d403aa3708a88c7cb SHA512 480d377ca47501687fa28d1ea196957f036fbfceb16eb98599c77784ce9295a3235ac9cb93315c3e91afd1c9c6a0c700f313e7c3d1c100c78854ceebc3c20e8c DIST linux-6.x-sha256sums-20260427.asc 218586 BLAKE2B aba99f133ff56ebaaf4fe0774bd907e28aa1dc5b69992ff52eecb70a8e12890ca0f5009be43f446ea8c6ab9fd198efd12e3aedf5c07488da891fd91532007112 SHA512 a6d7be4d0f5c046be8d614228a6a51c4f8cd71ac5683a3088cd1c0f52530893efbcc76fb3decac823e31c05307b774d72c83d09c6b90667d88e93374ac964b8e +DIST linux-6.x-sha256sums-20260430.asc 219947 BLAKE2B 064b01f35878749efcf2bd0bc99a577ffc380e51dd94bd02c7f1fc8aa02013772c079013b4a8339fd53271bfe7e6ff41ae862e8b60d0e0d531ea90f347a79dac SHA512 ac341e368e27ad2c44d638e3c37076dfe9bb95740a7cc8a74747585ef19e4a803d638e9cbff80732237efc3768f4b88ab8e3cb104188fca5a9bc0acdd87cf60a DIST linux-7.0.tar.xz 157143652 BLAKE2B 3d9795083c8938f80f480de0d10bfd9c525640e59d5c7f22983de3f12ee42c84c31be902cafb05579ddb1c32bac5ed06b0d4953f9705450be185bd2d9ab08f89 SHA512 8c85b708342f8f09ca25b2234b22e93b62b144a9ef919fbb21827f52fa47498e778c79db1559524dd7fb360f95b2ce174171443c1859656c281be41d2b6c5a0b DIST linux-7.x-sha256sums-20260427.asc 1876 BLAKE2B f423b97f3c241abe3cdd757f6bda34cd900c4140b371a5a7abb692dc3e404689266e162c177c66e8eee991ce5c3b7bb681d8b8cbf1c2005aaaf7291cba9efe7c SHA512 90be7186a920260a6553d08bcf6bd0ca142988134ff2d8277773624d18d0c92e048a2c620965185b35b4567708aafe610d58ef899eb306f2d4b1e2bd481253e4 +DIST linux-7.x-sha256sums-20260430.asc 2206 BLAKE2B 24d86e0f6338498e8b5f74cb0886692ae0003c30a70e6f6654588064df9ec4f569071982e141bedba1b2e7c6728e73dede5e2ce2764554c62db7587b5fc1e86a SHA512 cf08970476eb1cfedc9cf75ff73fdcf8bfbb79d1a49ead4a07e0bee8659a6fa3c8c369b33251c75b030ec34cfc2c4077b25fe07c1022c2e6a1db4026c7768189 DIST patch-5.10.253.xz 7248732 BLAKE2B ea684b60dfb1c3b28f5f530d46e8933fa4ff3f4ea1a6498b9cfe8c995621f27d824fe8b40686494549981ac6e30c809cd626eef6a9536f44c929e91d28c5e2f1 SHA512 f195170a0e6f924aa114f66fb72fccf19bec43c4b69d15dd94052f6e00bcfd671a30d47cc1b86617d9bb6943e05df22d6df0a32dbfd5effb65b98f1c4fd99ae3 +DIST patch-5.10.254.xz 7254948 BLAKE2B c409ba9cdc2f8280c8b947a1901980db9ed886f7aa2baad24524333a5bb855a60ae05747b745a830beaadc8500177b6b736dc0fd7266f556d9c141600a90e24e SHA512 1859322a2f1b7a40bafe6c8c386b44ec92801f7c42b4c917fa5e755b3ecee50e53a48ed004546369d0c6ce656e5a5802d6ad10fef86f47fa5881919abb176e40 DIST patch-5.15.203.xz 7676312 BLAKE2B 3a0e051b3c93864baab5c7f4757c6b147b17a75a1347e65f4c37bb83c268ab2d6f1c1258e7195b777f588f86b02e69416b96831d9284da8e9d3e52ccc153d5e5 SHA512 fb4dd6a04e408a3cd12963427e1b9acef6ecabb3feaf3e4721588c428d26e6c184b1c673b35f4ddda0d669a27d013c6c6e906289493546df82960d409581e903 +DIST patch-5.15.204.xz 7681224 BLAKE2B 5f876404ff1acf25e2553dbb62658d1ab205207811296f0119fae04aca751484e93c0146d019199b406af7a9d79a589bec8b0290730cf2367fd3fa823d74226d SHA512 f0a9ad08dbfc324a8e063fa7c656557ad46dec323f986df01bb722259cfd325b39551c9c2c485ca3b1a2447bdc9c589384992742728a9523bf2aa152d988eeb5 DIST patch-6.1.169.xz 7317628 BLAKE2B c9ca4999f7433c27ebbb3d2592227e8097353ec084e1c58c328f3a887a2b0543c7c8d5ae1a140c13ee3d3861a958ebf29a21b6e935b44c28a322f6e3fc491855 SHA512 23aad9a93157c55907e168d5a492c4c9749833b90e051e590281b3cb075b17ef5227f79694008fdc3470ab78a13054c416f9c71f6dd9a205fcafa8645e1eae8f +DIST patch-6.1.170.xz 7323812 BLAKE2B e7004a8059c8f9011884aa2b2a7718e9bc67f9820cd407f263bec9cbb4bcc4d5791ee55a99e406b4b6c17424acb1087cd67b5c841c10f0f38833b2bb28920f27 SHA512 baf0666cc180492e347392db6ad363acdf6b05515be073363432ab7af0ba7308f28728e38bd42b7699c083aa9548a789b1e2186098f411eb0a25451ab6db20a2 DIST patch-6.12.84.xz 4372924 BLAKE2B 6d812556ee681bd0a22e66d79d7cf8e8f0bf6658cfbf5e4c82cf605503b1a0f715243d08ace6cf0346b77ddbddb100b30df075f4a9a8cdd15730555baa56c26f SHA512 ae0699ef647758fac5170bced18a1bf685758e1af2851597c36dfc2d43c386547c7127cd6aefaee0e78720e8d6c72a8dc1834a7506eaed6ef59909ee6813fec8 +DIST patch-6.12.85.xz 4377956 BLAKE2B a4ce6472229c01003884ece108f60f2e9458d7fae38ebc47e7b598e1245e7a396fbc01aca3a7d310825b1f39acbe588b6865311d3ac7b4f48d2f404a728c942e SHA512 6b7c0c220ca26b900462b21641f8615f7c84dc25cc79527c8d32e9ac5742bb89851d30a69e1f1b1bfdb5bd353153c31ae523538eca1cead8cc12261a47f4a18b DIST patch-6.18.25.xz 1538348 BLAKE2B b707adfc3d23d74ae882a0b4d15ce7b46e5c1011bcc35e8aa7b3a1c42f1a661ee84d2d91cf31801a3ceb2824cfcb6a050523c7e2aaac6045243df39477f01f0b SHA512 6c467d343470c645e3fce8b146c1d1f77d1ff1fac7d302681645e43a5e79d7f82a14d16a0760ab0feb9c1a22b0df2992cd1af7a6e76b21eb5e967f23b6b742d3 +DIST patch-6.18.26.xz 1538696 BLAKE2B 327bc85624fd2d2e6c72f42037d1b02ada8b486ff0736ef440cabbf320c1cb52e4685647a47f04507ddf933df36ea7ffbcbc8dacb32b208844d7554ed8d81a4c SHA512 e983f3c6d9ca2fe1ab878d0f7897fe398befd1819239e416e123679427c92f64f708567c2361c82d8b210c0db500088781079dd60b68584fe5fa939ceea91444 DIST patch-6.6.136.xz 5905416 BLAKE2B eb486ebe595b66977c961fe5807882fd7896231d7be2a78584fa5a38b96642c77ce5c32bd8f5c3ba0c93651df7779d8dc53ff58b55440f39fd9f23d7e428601a SHA512 ecd8132ad994ed07d0dc2acf07dd980eec3c54eae038b1e84ce9b953b911fcefa1559619f0fbf376be9671039f283d6f71a2f4dcc1623f20cb9cfdf6b7593688 +DIST patch-6.6.137.xz 5911268 BLAKE2B f8bfecebcca3d65ea687a656df5648b6260c0e7ab886c0223638e8f312383f714495d2bb7ddd91addd4dfba5c5a190bc0275733e7c214d021f7594cce4904945 SHA512 f1f66711068eb3e14189612f73d4e755291be75111e9578047d7f4334b2b3d7b3c104e9c55b71298d56334461d4e4a1a95f12f54967a09cae10533e98aaa98e4 DIST patch-7.0.2.xz 42396 BLAKE2B caa1d23581d32716ad853a1e43425a9277ed8e8a08e007f84107fddd8fa73e9a45dab01c35fb3a43d0ae2a80a11905e54f7a7c8ceed86c8f3eb74d283d4dfc7a SHA512 dac9f93fe01474b905211679618ad13c1a72c98a1b560be1545ed075448aa4a39b2d8ad437179af69a7b43f5fed67709cc7f51401b90c92c8f7af8843e39bd54 +DIST patch-7.0.3.xz 42876 BLAKE2B b725833b4848023b0832f52c7e3f0d8f9bac54b0f16bcc0015e357d4456aee6658a034d10a617109fdd47c74e1487f7f51da2f9cd49d70072878240ea11f2849 SHA512 79fa83dd31cb700f05a563e2b018741b61c6f77bafce9f6f2c1f8f7e29ab71ae88ef82dcfe662ec11cb1195a2472e989febddc4db134c23755804f1421481424 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.254.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.254.ebuild new file mode 100644 index 000000000000..80d2794dba1a --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.254.ebuild @@ -0,0 +1,149 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g17 +SHA256SUM_DATE=20260430 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + eapply "${WORKDIR}/patch-${PV}" + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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="-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/vanilla-kernel/vanilla-kernel-5.15.204.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.204.ebuild new file mode 100644 index 000000000000..452c608a3d07 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.204.ebuild @@ -0,0 +1,149 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +# 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=g17 +SHA256SUM_DATE=20260430 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + eapply "${WORKDIR}/patch-${PV}" + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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="-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/vanilla-kernel/vanilla-kernel-6.1.170.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.170.ebuild new file mode 100644 index 000000000000..b1eecd9fae8c --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.170.ebuild @@ -0,0 +1,150 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +# 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=g17 +SHA256SUM_DATE=20260430 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_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 ) +" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + eapply "${WORKDIR}/patch-${PV}" + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | riscv | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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="-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/vanilla-kernel/vanilla-kernel-6.12.85.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.12.85.ebuild new file mode 100644 index 000000000000..f235cb7534f2 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.12.85.ebuild @@ -0,0 +1,159 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.12.41-gentoo +GENTOO_CONFIG_VER=g18 +SHA256SUM_DATE=20260430 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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} + ) + riscv? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config + -> kernel-riscv64-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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + eapply "${WORKDIR}/patch-${PV}" + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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="-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 + "${dist_conf_path}"/6.12+.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" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.18.26.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.18.26.ebuild new file mode 100644 index 000000000000..d6859ee93e5c --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.18.26.ebuild @@ -0,0 +1,162 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.18.12-gentoo +GENTOO_CONFIG_VER=g18 +SHA256SUM_DATE=20260430 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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} + ) + riscv? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config + -> kernel-riscv64-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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +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_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + eapply "${WORKDIR}/patch-${PV}" + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + riscv) + cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local myversion="-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 + "${dist_conf_path}"/6.12+.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" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.137.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.137.ebuild new file mode 100644 index 000000000000..5468b3856d61 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.137.ebuild @@ -0,0 +1,155 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +# 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=g17 +SHA256SUM_DATE=20260430 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_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 ) +" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + eapply "${WORKDIR}/patch-${PV}" + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | riscv | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_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="-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" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-7.0.3.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-7.0.3.ebuild new file mode 100644 index 000000000000..f7dfee01f60c --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-7.0.3.ebuild @@ -0,0 +1,162 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=7.0.1-gentoo +GENTOO_CONFIG_VER=g18 +SHA256SUM_DATE=20260430 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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} + ) + riscv? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config + -> kernel-riscv64-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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +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_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + eapply "${WORKDIR}/patch-${PV}" + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + riscv) + cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local myversion="-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 + "${dist_conf_path}"/6.12+.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" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} |
