mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
sys-kernel/gentoo-kernel-bin: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -6,14 +6,6 @@ DIST gentoo-kernel-6.1.189-1.amd64.gpkg.tar 75673600 BLAKE2B 88e6dfb3bebc5cc9790
|
||||
DIST gentoo-kernel-6.1.189-1.arm64.gpkg.tar 69201920 BLAKE2B 494e7ef73e1a89385a1e8ee7f7cebf0eb2262718fe6f9a1d35795594c74201410b38e667893befbd7362768a751d6cc6a2314dafdbe26b34d44efb2d6c14d225 SHA512 c8b73b6e8b4d681323521016157a05aa3759f1e098cbc60a3ff4866a7dafc925a03aa0c4b0b81273eb60f1e249438706e7fa25368373dd28f381e868b61d9abc
|
||||
DIST gentoo-kernel-6.1.189-1.ppc64le.gpkg.tar 62668800 BLAKE2B e29d80df8efad68cf7b053d953a88be8de84fa396a8e0ce89cffb5e8028573b6521f51ffe87c4ec290145a5f01119af6a6bcb6d61fbaac14e64711ecd717871d SHA512 f7906cb9c55a1c0b5a705a4d6c5b86fe52493bc2938df599effb3e389ea74d6fff2a64a5f4c1205937deb70e8a990fdd9502fbe12b370c6b6548692761538698
|
||||
DIST gentoo-kernel-6.1.189-1.x86.gpkg.tar 64880640 BLAKE2B 6971fe31ad64e0026eea011859d5cf559934ad7e6e823872c146328cb25b2210cc3e3c75cbe13fc248666b8fff1b47146a202da459234ca303f3fc9db20c0514 SHA512 59d0e241d96a9eef8287650f057c36cc01f8c74edb1dec4ec58a5b2e285b93d654881e21a875d3e6ba52a9f8627c5e9cc26925332c44bc96fdf26ae039246f04
|
||||
DIST gentoo-kernel-6.12.109-1.amd64.gpkg.tar 328058880 BLAKE2B fa66b738dbcab855576d68a1692d4a92a57b8b8126bfc01c36ef766336b2c403be986c0e5214db105e24dc697f92fe5f7ea83cb9e438178176eab6fac048e2f1 SHA512 546384571ef241cef5b17925cd7236084b25c2d60eb972570b276c75aab4df549d7525e8b5e0c8bbb0041996d75d752848780cbabe20dbb2c01dd8100137256d
|
||||
DIST gentoo-kernel-6.12.109-1.arm64.gpkg.tar 296622080 BLAKE2B 6cedba2133e7e635c9985d6a4c20f73ca6d7930236538474500a67a2a539cf27572b4971cfe10562bb297d680060ccc67cb976a73d99ea345dcedd61b436e693 SHA512 2bddea47a1f4c822f61f36ceea58de34ced5ea98f0a4cf77dc52e84d4eca1dbc840871a231c4362a98b0f15ac187888c9033d3d16b7a21737682e646ef52c1cd
|
||||
DIST gentoo-kernel-6.12.109-1.ppc64le.gpkg.tar 74035200 BLAKE2B fad0c81cba92696940c0e0be6b801525daa64ee58acce8c631624737bb97bf72380e55be671d15f3b4626da4265f2f4dffd29bef5a534eee8ed3111708884e6f SHA512 67844523e4d0e225ce3e78433d4717f0cec427dca3989af83fc4b1b92b77defdadc517b304456698c665d48f92cb282a71c8e0a258077ab6b629e5b175c2a80f
|
||||
DIST gentoo-kernel-6.12.109-1.x86.gpkg.tar 77752320 BLAKE2B ee010c78cf3550618e3b5d0f0799b62755b47bf0216b0faa73b4a842f241828c4b049cece988d3e353074632cf9885985cb6a821fd3f2c393ab079741d99e915 SHA512 09a046e3c244a275473f74d3ad69335f2b861e632c8550b6a4e3973d6e26810e0f869fb92d2fdb3f0124a92ba293e46447d38a9758b7e93c22db0e77288df7ba
|
||||
DIST gentoo-kernel-6.12.110-1.amd64.gpkg.tar 328212480 BLAKE2B b64fe50dcfff85b8584ea87368a666780104aa2252391224c6efd43b3f3fe16ad77f3cf8abac71f39c639559a037f2a4fe5ac0f598a0656f8ee78ffc97fe3890 SHA512 3469a8ba8564f8ab3b62c3fa8af3fdfe4415778bde7fb975e89d01993e2d87b8f87025e339639b185752c5e5ed032df730ed6e1b29c2d649bd029457a100842f
|
||||
DIST gentoo-kernel-6.12.110-1.arm64.gpkg.tar 296847360 BLAKE2B 25b16f5a215f75f2d149bbed61f2bbfefdca5d9b36fc63539f4b985bb4d253cae619ab0abb53cae3c977256278484dc64dc783d9f8e9aa8178572e44f22c6b79 SHA512 9323bd02e524796ffba9a584b5bcfa7431e6dc5ed253e7d52146d168c0e9e93b400a087e6da7d938f367ae1fcda620416b3299dd960fea00b38bd17e35242510
|
||||
DIST gentoo-kernel-6.12.110-1.ppc64le.gpkg.tar 74055680 BLAKE2B 8d82d3d46b8265ae144600ce09af88c9e681da68b722723e695fa13be489450dc98681eca00d903798ac4c2e6d635582cbffe2f96b039ae48b8deb66a6e7c9f6 SHA512 1f8d1f842d1b0afc7711c3bf9b3d16bc271ce37cae49d2c5a7f7b2faea27564b5e28c1439188e22fe141a24d85ad49184003930293363cc90d5e28bdc692edeb
|
||||
DIST gentoo-kernel-6.12.110-1.x86.gpkg.tar 77762560 BLAKE2B 69f4c0555f97e1d475984de91def4d126752e4a1abf41aae7a60d2c8800f025770e7029577c0fc06d2bfb02ea57158c2064028043ec02ae96e9edc397e016c16 SHA512 882adcc4ab5ea09aba82426d5eb7f8170c7b628a9b156156f20b26952aedc4f87410527e65eb6ec639763b6044fd03cc8e0686e39390f89e2e5dd21217595d32
|
||||
DIST gentoo-kernel-6.12.111-1.amd64.gpkg.tar 330915840 BLAKE2B 5ce0b4c3508de84038d1b6893542753c13f51bc888892bfdace5fb1616d17c8631714f7dbce7c61de1f006bd16874edce476aacc5ae7dbd7793daa483f373233 SHA512 34a8deecabd195474002696047ea2a53e9a95c52606ab36019eba9b8f9df3197f07a48e5aedae68944d6803986a40989e464a9ce1e32ed17e2af515ea4565c4c
|
||||
DIST gentoo-kernel-6.12.111-1.arm64.gpkg.tar 300318720 BLAKE2B 44587d9fb2511e05cdb23ff12620f143a245e140f0a12423b7287328c33fae89b1c8272260c77c61d2a44caa513d7e6d89ac6056f6f2d90112ded45f7d620e44 SHA512 e4f4a929d439de4c786863a20f22f89bb12c02cdd199631f38d3a79580d0b693eb2ded2c43d52cca009b93491f97720c0a37f647e34a259dbce224582474b549
|
||||
DIST gentoo-kernel-6.12.111-1.ppc64le.gpkg.tar 74076160 BLAKE2B 3031be786340d57bb7d5fdf2b585151e3461dd72bb53f9898e3b73b5cc5747d6d576873a77888f17c3d268c741a19426a548f6c5d5bb95690394f329ec09c714 SHA512 fde707d67cf987d7a38bcee8c6424ed840278c8d340154a49023ba42ce0f67eb99f2f686f31a769f62c4c4f506929c00d4e83c0cd8b0ce13ccf8d3c679b91813
|
||||
@@ -22,18 +14,6 @@ DIST gentoo-kernel-6.12.112-1.amd64.gpkg.tar 331008000 BLAKE2B 1c2bb892753f3f421
|
||||
DIST gentoo-kernel-6.12.112-1.arm64.gpkg.tar 300482560 BLAKE2B 72511e3ede4e166303975a21f9c2899d95bf90d7e5f17b073aa6cc8bf94900dbe387dc87dd9367ca8f1b0ff931fd87a630978bdc60f9f063b378fe43d3dad00e SHA512 f3c407e7802952be65eebb9de10c1aa78432b5a4dcf4bbb4768bc8dbb007b45bae78d55faeda7d6f3b562b509cb57d1e48390add9f203ab2ef8f9e94fc5ea16d
|
||||
DIST gentoo-kernel-6.12.112-1.ppc64le.gpkg.tar 74086400 BLAKE2B b00b72404121c10b4c2252b15f85fab19485f380e2444a4f2263f5fa747f389fcc515ea1d89a842e03f0af2c512b643ff8c4452a1692220bb00c66ed6729a77f SHA512 177cd36322251d6761069a120847dc0999be77a8327eb5efb676b4029e86993634e10069acc1fe2070a72a3e8a819313280f9bb8b64365f0a2a3bfad906dfc9c
|
||||
DIST gentoo-kernel-6.12.112-1.x86.gpkg.tar 77824000 BLAKE2B 311f9dbaee2de3324b60ba796306eea9179e77d39e524ff20e8252a96b5e2a69655c0e7955925017ac5f0d0131651ab265a420f0031d656341932aa0bdc220a6 SHA512 99483f80e1594dd18c5704a49510a3b4fdd27c51194e68b5fef354b23529a74065f4c6d92fca6a904ab22fa9459a2618fe6a6f36d0121e2d4087b32888b7419e
|
||||
DIST gentoo-kernel-6.18.50-1.amd64.gpkg.tar 468224000 BLAKE2B 011710990611853e0a735a95399988ccfc26dd594e1dbfa5c4498fe7ced16974ab2137bc541592e6ed2d5c8687102984b642122dbae756f201de5d37e685c041 SHA512 cff68641151996f135f96c9d8ce8f4dbf84ed47feeba962fdb88c86001b26ce952c4965648ea45888c6d6fbf3493d9f37faa2cba4e877c20e354308d64bc9aa2
|
||||
DIST gentoo-kernel-6.18.50-1.arm64.gpkg.tar 453601280 BLAKE2B fe270f0eb051fd2df1cb6d87be78d1c07067cd9fbbef4f5b479a3cc092bf808283d34dbe729fc1297231c117bc4d1cfc669b2b025518e26a0f66def48d7a6e5a SHA512 3564f68582da2325b89c78284eb8c49cd682f269c896e5bdfcd4d1948701971c6f1c6b7ec9dacc41820f3646f658bf5fe514f16aa1662c4e86bd9b105e84d015
|
||||
DIST gentoo-kernel-6.18.50-1.ppc64le.gpkg.tar 77271040 BLAKE2B 382cb5eb36a742e3215f232f66a7ea9329b08b8e30802a0fc9dbfc5e64224a628b5238f7e3ef3b2f9acd9969b1c5926632d05d688d22d5872aa3b8eb242e1977 SHA512 34907e951b0e36155380fe121007e5dbbbbf9fb0899476297949bbc20b0c3645e73dff71660ec41e9ba7f160e91a08b60856bc56bd197471e83dc4f94cbd6821
|
||||
DIST gentoo-kernel-6.18.50-1.x86.gpkg.tar 83681280 BLAKE2B e42432ef083c756130175951672e4d5365168fc93c3d8629d5e30848ff71971332322459f6d222f87694edc863f09cfec0419cfbd753719a7c56693bf7d32b79 SHA512 60f29373c7a800ab1fd2b42a514e6ca500c2d836f5006ec740c2ff23e6807a67fa3436a84652213d29cf74b7afbea27e20e4319dd25e5889aa0905a870173177
|
||||
DIST gentoo-kernel-6.18.52-1.amd64.gpkg.tar 468602880 BLAKE2B dd7086b8961b9c8cd385b1d734851a3f99e3de0c0dfd2099241deefe9b4b07ecc8b7dc0a42f4058dc923ca228888ba0f88abdda7d8227773acd7d2365f2667a6 SHA512 d013c9b03473be8b50bf8fe862e1c26662c46bf610cf6d57c1c53e13cfa0a28d70b02dec9f32101090c524337d7f0e57a9175825190efb7cec26fc9b657b0f00
|
||||
DIST gentoo-kernel-6.18.52-1.arm64.gpkg.tar 453888000 BLAKE2B 15a8c5a443ce016444789c0573cc853cfadb4ed6dfb9daaf4542a05c8319f68052992bef2102a73650b45e547639b7acd3530da19c5a18aaa7081db435997b3d SHA512 4a6c8714adbf3d8ad6704cc07ae83dbc7053cb89e578513421ca69095679b14124ce58b75a62580c0db25e10daf9b955dd5dba21bce03eb934657cbdee737c80
|
||||
DIST gentoo-kernel-6.18.52-1.ppc64le.gpkg.tar 77322240 BLAKE2B b7b0b6e4886ebc2d775b0bab62ac98aaf362b40fbfa2f38b63f7bf36e903f418cef15f46c21b7ef389cd11b6e335b782791f51127dbd5842b1cfd75332ee306c SHA512 3e4029e50c97645770a3c12dc6e2dc3aecdae77c161aac23909a78bcfc2a110525a7765d79539bb84e75fa1fa36cba1a1a7d75afcfc217ee0409186384eddc6e
|
||||
DIST gentoo-kernel-6.18.52-1.x86.gpkg.tar 83752960 BLAKE2B 55494ad7023f33af4b22c17e576b4ca796bfc93fd9c2c8b9aeb8d6b1c4a03f76062078540a387c54031f6c413df3e61d94df158485fb4246e18f99e3359fe870 SHA512 4fb56bb334e51a8ecc077ef81a4838ad6332e9e2744566825eb4e53a723945499ceaab956a80f8549cbb486488be0509c732ae1cc6b288ce706791c3cdc42adf
|
||||
DIST gentoo-kernel-6.18.53-1.amd64.gpkg.tar 471592960 BLAKE2B f5b734ac523761ebc4bb657b9fcc9d57afd8f0ad64a861006cc214e42ce8aa5e79ae4210f0981eb307fa3142b3e32cf514396cbda0cd93fbc934d8ac2377d49c SHA512 1bb8453765b4134a734e11971917456d7756cff109cea5ea8bf207845891dff015e035cb9d51a54b2f015d6577c34d02f96e14621f1486db3560e818da5e5001
|
||||
DIST gentoo-kernel-6.18.53-1.arm64.gpkg.tar 457717760 BLAKE2B a7286ca2018f165daa1adef9a312245ac445f205521f18321718ea76c19cb12fe5676552d76041222331c02bc3cc90deacc9c72411eb85d65ffc6bb92055b560 SHA512 b297c15da4b32390cf9899580a550080c2053bd968497b11df9df4d99443eacc689418fbbb7b0bdd9769de606d80d5711e2b814fbd57b8dedf079a2e3454150a
|
||||
DIST gentoo-kernel-6.18.53-1.ppc64le.gpkg.tar 77332480 BLAKE2B 5848c7ec2500506c2246cfdcc21a3f82077a77d4bd237fd7d374cb5de6fcdbc787b92aefde856e57c8902a15ade5885db7948ec88f49ac6492ad41124059e692 SHA512 40cdf756198cd5390616a4b616a9f09d13b59cd6defaf3f5726fa54b9c3e4c30a59bc5a72ed000034c6a5fc48999c2ccea53d331b6d0157947bc12dba5c86ad1
|
||||
DIST gentoo-kernel-6.18.53-1.x86.gpkg.tar 83824640 BLAKE2B 2ebc3ac214386749e3256e2b9224ff8cd67aac0f03cfcf74211c0db5cbe08a2555b7ccaf801a85c8ebb4085d01efb2c734234b25d73c46aaff71a9acea1a231e SHA512 c2431e446402ffc73786554375c24cffa14ba3b7bbae84a9a30a71c20021c00223cb0d7b694ae3137ed3e9c362850e71bc7a996ad8fa667923f5790b491f784e
|
||||
DIST gentoo-kernel-6.18.54-1.amd64.gpkg.tar 471572480 BLAKE2B 09ebbeabe0ab604f0bd0ec0a21b394e96c003dfb2dfd14de220f60a024c0b2ce4d4408615925cc6f6cade8df37811d925402a24b22da38022db3e3b56873ed1b SHA512 372bb6cd9454dc0611a8970c2a8ae0c8fe96a630b9e5d880f41b08d89d21eba5e411537cf09c9ed23c967bec10a44b1c1e0409b6bd14e12de71a8c822c2cc693
|
||||
DIST gentoo-kernel-6.18.54-1.arm64.gpkg.tar 457789440 BLAKE2B 3e2c8cf063db8fff32e369141e6fcb048664e5173582d755d293f1115ab57aff9bc0f7b1c87908d0c39cddda5b17c99c37ab5de8fc02b1cad3bb2ecf9c3e1dd0 SHA512 41f2a02307860fc1bad8f5f633b26f3b1b11cb74b4f799da86e356c6eed6d4aa679af4e51230fb8664c62c8b8fb0b8414b1d2a344264c6730f8dc574f260d35f
|
||||
DIST gentoo-kernel-6.18.54-1.ppc64le.gpkg.tar 77352960 BLAKE2B 63c3cd7f645c0137edff8eeea93718e2cf47b36c4589a64755ac4093e091775ff59e772b406736256b4dcb81144873078ea9fc2e06e7743988dad4ab2a3090b9 SHA512 8b274eeaf5ecbbb8eaeb7d117eed9d90ee52622da445d71d3494bec42e8ec1d51ff20774e1c6e8d6152c97a48cab085e02f93aa6a23ee3be271a7cefe5cfd8d5
|
||||
@@ -50,18 +30,6 @@ DIST gentoo-kernel-6.6.158-1.amd64.gpkg.tar 294758400 BLAKE2B d94e968aa0c487ddd4
|
||||
DIST gentoo-kernel-6.6.158-1.arm64.gpkg.tar 264345600 BLAKE2B 014dcc8fa8e0e9e3737c0de779752c1c491e2f31922243629441db91214dafdefbb1473b7796a171247106923ddee12e4be2e706fa7a977714defe2c00eff10e SHA512 9b84021b4cc750692bf055c14878379adbe1b4fa02d3ab9218664ec94ab33173316b11ba84b20e32098ae8f7d1041b98e300807eea0237575b90e802ed8ffc68
|
||||
DIST gentoo-kernel-6.6.158-1.ppc64le.gpkg.tar 65382400 BLAKE2B d76c9b55d52f23f3465381fe94551a2003b1c7d364206bd3e178026904915c01a6ad42ae4b54997e2241e27193b44ac95de74a2d8e95bcd005159d26b784d368 SHA512 e32099f179d98ea3b1467f147b2e85e0922bade0e33436df40d170b275025aafa09511307d8ce9c314feec40f4186bb9b3b6953b1cfad351e0e1fde06c31316a
|
||||
DIST gentoo-kernel-6.6.158-1.x86.gpkg.tar 68720640 BLAKE2B 9b07debd8430e182e55f50a9755bb86a3e8fd743b53393f825bd94a02bc18e668fea9e8eb25ab6ef058744bb2c7627d5fdce8ac58cafe67967615ad4a55818e8 SHA512 6e1b8827af635915e23f6eefbfecee24778398a6047970f155ecb86088a84f446e31d1a6cbba0eaf597efd22fc9ff407b0df201a4914659a6e168d986e888ecb
|
||||
DIST gentoo-kernel-7.2.6-1.amd64.gpkg.tar 363274240 BLAKE2B a76a0c35fd2fb01f5196c90ae8fec65541f891b1bcb4b42f9570b9ebca280e6ec0a48a7dda743b49c80899dff71c9c003647d57c2dd613a78afd58b62f57662c SHA512 8f1654c6161dfcd515b272804ee2f085b51a5aaf76427180c73c1e513e2f91e479e3fc18ab57f16701868ecde98450a0eab9f1e9af5ec0a74e5682917990094c
|
||||
DIST gentoo-kernel-7.2.6-1.arm64.gpkg.tar 334612480 BLAKE2B d4412a03f7296d442b3dca96eccd582331d98313fe47154dda89ac76ab26db16254ba40fd4dfcdb00dd2dcd42134c67b4dac4cf83de3cc329cb832396117be7d SHA512 4fbe1a2e6613eb40201407ff729b459cc227632dbdb44171c4daae78545b7b20b752927b271d7b6c1861e02c2abfb7cab68c26a39d39ff221a63e572e06e717c
|
||||
DIST gentoo-kernel-7.2.6-1.ppc64le.gpkg.tar 79892480 BLAKE2B 7ff134e48ca2853db11ff3156689ea19873b8cdd92a1bd4252cc4191894ed5bdad5e43a8989844f87fac0b203c2d5e111801c9a8c56e264f8736603de1e32aab SHA512 dc7821ba1dad3b512c0a20ddb105fe44ebc0d18c3c02cc65d403be3673a233f194455b0c77734ae4fdf3b3ed26e345b6603327d0e300fa9d663afdd6e8a1b4c9
|
||||
DIST gentoo-kernel-7.2.6-1.x86.gpkg.tar 87961600 BLAKE2B 4132599ae1074e8c8b12716b73b575d40741c95a5dd4b47f2bdc88f3a2d03c289503179555636ba9ab9db893d7847b2de6c6a38916977bd8efe5a2f877a1b38b SHA512 87d380ae104d99bc44230ef241d8c8c475ec32e26fb91a686009ce9a4e222b9b1534ba612e3d05603b1f50d5ce392d1fe9ccf9eeb5557f6b56bad20bd40e6a41
|
||||
DIST gentoo-kernel-7.2.7-1.amd64.gpkg.tar 368291840 BLAKE2B bf81a0238dad72c727edf92a2933bc052ec3e317c2ccbc7dfd871076a3258103e77ba3a680acffee58ad5efefbba72a83e6c96edd182e1bc0c56da7ce2a3b7f8 SHA512 824aa40a5f770c0da83b23957e09aae354a06e70954c15a17dc2f91f0864f7b03ff1dcb90207abc8976719666126b822ed73d80f7e2e5b93afd9e40cabc88f48
|
||||
DIST gentoo-kernel-7.2.7-1.arm64.gpkg.tar 341278720 BLAKE2B ef8002e5bfed2645ee1f78097ef310ec529b1aef16e486a396db4248203044ed318f51183fd2670b3b125facec7f13ba26121b8b6b3bfff60ec11462b25eb4d7 SHA512 75bad15e24db2d5c30b99e669d40a9307e50a617bb6ad57038ac068cdb5d58a81c1f3c7c6d89f4037f067e0afcd9ee88ff6f25593446fdd4a5551962473579cc
|
||||
DIST gentoo-kernel-7.2.7-1.ppc64le.gpkg.tar 79923200 BLAKE2B 5873e14446ab47abc7d1a6847b6df578e6b51622a5d78ef23e60c174aa8d4e836ac8cb8bab9815111d9c7650f8278f3de09452a4f45d741b3f76959cdd21ec54 SHA512 720fcbb577c0bb0c87535d62e281f0ff1c2c1d6fcba1c3c6557b0c55bb5868cef57249102b2495ac9d6abc2172af329614e5f1a09f7bafcacf34f1d04b7573f8
|
||||
DIST gentoo-kernel-7.2.7-1.x86.gpkg.tar 87941120 BLAKE2B ad2c7248c31a232662187e6b5f4256b08f662f7eb0da228488cf3e51a986c64aa59268875ac01c6a71d8d1ba8bfccb1a7f1aa477ba9ff805062f13f6450dbf24 SHA512 965b01151414c929e2954d15aecca23b048dfe50e65eab9d19fabaf4b333b0bcc2d32880e86372f6243e6dd8e5e858526bf5a567f1620890ea689d9780ee4fcb
|
||||
DIST gentoo-kernel-7.2.8-1.amd64.gpkg.tar 368332800 BLAKE2B 72e939ad757c34d9ff1225d0ef5807b5bd21476deb494e1be368c62cd8bfcbf7c2a8cebbed37f60af368392779d66130c634a36b998edb4b0750d8eb661372eb SHA512 12011d811e2ae4958e7e54ba269c6c2e0b7b9614322c8b066156d5f67d733e83d8648d89232eab290b6972afd2de76f8ad575a8bc812ccbcb04f488fe9cfefc7
|
||||
DIST gentoo-kernel-7.2.8-1.arm64.gpkg.tar 341309440 BLAKE2B 72b03f4ea862afddc25f1e0d6f765731eab39f6926fd1a54c097b86fa784d50f7bc866bb66f877cedbea1b81a48dfdf57b6ade7f7d4a2b6e1ffd6cbc86651ddd SHA512 6a3e9937bff065e4c7487a45f87111d4dc9de4fdb5a6184b646dc6db43c895903c46e3d9ded10231b96cb760bdfe1ce4ae75d23be04c3f85be59dbe2d8ff821f
|
||||
DIST gentoo-kernel-7.2.8-1.ppc64le.gpkg.tar 79912960 BLAKE2B 088563f0999cd222a7871e976047e07fdc413e07ab570563f4df523f8f324bc006a6b54c7dd0a20f151500bb06e53b9afa5e92e5412619caef1fb4b4efe5be13 SHA512 3652846a4c1eda64ed9adbfa1d13fb79cec3658ffd35b6bdd68f0db2c765e48e87321a9bb5eb6161c6bd98576ac8ab26ba39109b416ba32cb2a5cd457c489b14
|
||||
DIST gentoo-kernel-7.2.8-1.x86.gpkg.tar 87941120 BLAKE2B 4943ec0a643524526df6375f62e01267d3eacfba69cc1e38aeb391207205bd964d473fc1b67a850e1ef7e116b3e02fc4e7c300f19b27bd6fe8858beba75dc1ab SHA512 b7509cfdca737be5b1a97d1f83afe455b64f3c4a8873d9035cdef2ade1ff24f2996393eea5192ae04896cf78b4cdc07b4872266aed6bd4514a20ec6021b1e58c
|
||||
DIST gentoo-kernel-7.2.9-1.amd64.gpkg.tar 368629760 BLAKE2B be330e69658434eaaf7ce531a547ac841e8cf9045a78b811a1cf90ed8b44b1eb45e9fe835f7d32aab9fafb2d6050c5ab5deb8c2cd1e12b59c4c4ead6d9ec6c65 SHA512 214a56d32ca20640d55a0c8147eb5f399cf552e86a6fe3a5ef5eee807dcd6a043e1b080eecefcd25ada267636587cbf2aa20863a1b2b3d6ff8e4589c314b2534
|
||||
DIST gentoo-kernel-7.2.9-1.arm64.gpkg.tar 341596160 BLAKE2B 32589501f6a6a51e7cd38532e99122ca51af3d6d51bcc346afc0e023811a5a63d67c82b7074812e336f5254d5ac27801dd739486dacdc64f1f618f5e457fa374 SHA512 38fccb423a9f04d3370c73694c85fd77e5b3db7bc4def6a91ce0ce84335ce223d92a14a4075e9c0a7db224021c00e67ce7d296108b1a04736edb1aef13f2a893
|
||||
DIST gentoo-kernel-7.2.9-1.ppc64le.gpkg.tar 79912960 BLAKE2B f25149274bed57b9f5d982b2a8b137b68cbb8e25d26dca16b3978f6ee4d31b4cfa84b9398c1520ad5c87332aa2c9b7eca39ab785b80d09f531f7db2614d39d38 SHA512 c74d801701804c839fca5cb6d04b34b4691e97bf7cd65a1d9c64ff3e968d4441bfbc275165f34f633b690c5d21835d1fd66287856653ac06f0132c46fc851609
|
||||
@@ -70,15 +38,11 @@ DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b
|
||||
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-20260907.asc 248631 BLAKE2B 2f10a984a5d3b563258d041f6cec084e17d6c29d5f1cf905f7ff31cf5df3ec9aef50040bb0759b2d879eff80fec73f683bc4682940f1504b9afed77b32685279 SHA512 935ada72325fefeba6d134480c388c8cf7df12ab16d060ee50b5818ff4633795228d50aa2b36875d5af0acad8ebea70b0d8c049dd59caf2fd3556dbf9f3db1df
|
||||
DIST linux-6.x-sha256sums-20260914.asc 250340 BLAKE2B 93c4ed0eb9073fb36fdceafb66231db226e6d1b20451a908f5b223ca61ab452a93205289f866d5b3d145ea847019f04e7c64ce7ebaab19b42f23c48019d60ec6 SHA512 d4074ece544fa6e478d4de518dc18387d687f7b477dd8e10c1aa0e82897b4fd6c21095f387e3bb2903e9f2514741510c71f7d2661a917567daa6bfcb8873b674
|
||||
DIST linux-6.x-sha256sums-20260921.asc 251026 BLAKE2B 35ad5c29b1fb5ae124f04f949452c90a9ca5b3efce69d768b18f05ad86527acbd61594bb96c7cf8e77ccb9bfc9564d47b06e2e186b6b1a0173f3e0eb4901a949 SHA512 6d4cd01128f4b5148ad27b6a1b38e386262871114237fa62d2ea5b7d96180437a6a29bf34d8ae9d131bb5cebac1a8103deffaf43a1999102e25e728830f6880a
|
||||
DIST linux-6.x-sha256sums-20260925.asc 251367 BLAKE2B 8b0e090a492d50e4c4e7d968a08ea6d34fc01ae9604f4cf8e859a437690777e29816b36186c7a5c2942c7672f9ee40c228e9c0e701d20ba6170e2818db1fcbf1 SHA512 9c67b790ffcea4588b6e4ada0b7e214df00f67b0e7be7b556e033c4e1e459afee8b4d7231637c2212a37739de20a2442387185bd879f433056f112fcd00c8763
|
||||
DIST linux-6.x-sha256sums-20261003.asc 252735 BLAKE2B c9a9f38a282f29a998d465075ba156c80fe56a4059cc77909247da8a8d12848ad3046dc7b424bb5e69196b1711c9119b67d66edb66330092094d341d658cec31 SHA512 203652a97a32645909522f8e2862271d93803d47f05304280c669b26b08b97f169b3ba840a0b46a549d5c440e83ba170a8e2cdc188fc80b0e5748272b3015925
|
||||
DIST linux-7.2.tar.xz 160068116 BLAKE2B cf5f3d87b96f223034c47c6e5fc972fe52c2556310eb2f064632537b8727231135a8540179fd5d51343738c8a51f51f09c7e8da374324b68551c84a4124bb71b SHA512 47e63679363261a864d271277340a6f2d45f544e1a056be4159df081f4f6537d0efa865c4af26611ab33a3079ee65db88ec2f6bc0e5fff43e0c043cde0cd91e1
|
||||
DIST linux-7.x-sha256sums-20260914.asc 12882 BLAKE2B 83b8e10291ae9e0c1ca3795e86c46038d0df560de695687e52932697df2e89454285003e1d9faa5e9f26f622e8388c561474e993bc8201909c0f7bd043a31c39 SHA512 0abd88ff6979f7fffd3f9f7775cf1905b7a5df27cd8783f3cf85bf8428a815641f0112644877ee66b5e164a5a588513f64c3eded461aebc348bf6682c40f6b68
|
||||
DIST linux-7.x-sha256sums-20260921.asc 13215 BLAKE2B 8df02006e6200de79720b96ecff40c49a262b2e07e3a94789adf42b7590ad37c54de1dc540f686199ca784eb95d8fb7ba8c10dff101c31a76c783036f6403b83 SHA512 fdbd5b76eb07ec8496c9e2c82a551d1bdcf060926f3fbab4ecf4d525a19e13f3478515035fb6049e69d333692b31b6a71f895eefb46bda98479c0dcc3ab04f31
|
||||
DIST linux-7.x-sha256sums-20260925.asc 13548 BLAKE2B 985c24825c3da01158cca4b6ce78b6f5aadc203c143174a8992192f7960e577c5eefcd441bfe2a8d073958e8efa116953656d0abdaf48d8ba558e129a2b3dc2b SHA512 86bb0125434bbb959f59aa449a1d1b369f8aed3846bb90068d317034c39488044e190db4b7cfd6aae2cc734686c2efcb5ba3ff38bca5a8d5b1ef35b6a127da69
|
||||
DIST linux-7.x-sha256sums-20261003.asc 13881 BLAKE2B 110b61c6030ca1bd5851a55737a99bad7d6c6cbb791c59e3e2581c48fd6d7c94b39073a91a1532c81fd8bcfd550f6e26681d5e58d8e7c9644558ab9137bd6877 SHA512 7858e309c9a2fcd5a2ac06acf3192fb4bc74ed92417914df3557ad9dc353a50de69acc7c7bf27c857df57f488aa5e57bc598981c009a64ac9f8475c7e57d4c67
|
||||
DIST linux-gentoo-patches-6.1.178.tar.xz 14432 BLAKE2B fc278094f85f58b7aba5c3334503114d28aead086a1e62499111283f0410c02bc9db7f5187975fcf2a793a5ef32e323b9907bbd9e0fb4c0834dc1a823f36af52 SHA512 ae0606ab52f8d66f49cac198aada1cbcced465d8ae43e09ef02cee149125570e09eadfacc07f9ec0ad3b20b365df7b9718a478252771f7c6e09fecda6f701096
|
||||
DIST linux-gentoo-patches-6.12.97.tar.xz 17192 BLAKE2B e0f09dd8ef2e6ebce9adcc2c050cb7e2c7ae08188e99635d3b541c6deca5bea792f4ec2c8d0c0dbc648b0c1f227b54a95d8d807a43859b3bf1b5f57767af2113 SHA512 af6b182d1e7661c35c215f4da63c8ab53b1ffffa7818a266b4c5639ed8d03428d050f1045d02e885c1b9bdc9fb2464c3f384dcd55d7536eddf2b90ffe1f8c530
|
||||
@@ -87,18 +51,10 @@ DIST linux-gentoo-patches-6.6.145.tar.xz 39848 BLAKE2B 46a5473d9d056b691af2bcda3
|
||||
DIST linux-gentoo-patches-7.1.9.tar.xz 10624 BLAKE2B 4b502aed968239f52321da548b257b2a06d4e3cf520090d7aa53dbbf77ef5cc9e64d1bb209389f1c51e48c5953666470186aaaa55db378cb34940ce492693271 SHA512 1d2d466b005cc7537aad1e8222411dad8a86bb82c185f139a6972f8354b47f758fb8555ef04b2217cd082db5b1852ba00b5a5eb0673a57c6423dacbe606c7d39
|
||||
DIST patch-6.1.188.xz 8362360 BLAKE2B 2f97dbb61f5f7f29a009866ccb3ebe10f87b18ef8da32245303edc68a6ad18e80ec27f08bc6bfdcd7a6387139437559e7aa3f30357c298e88c7ed8287875fb9e SHA512 78c57eabe1dbb76fe39add4d54efa8ca3e34af601aa6869e46a6d58d6e9cdcd51cfa03808c167c22996e09c1471fff7bb062631f09e6de60d5b03e9b85822ae2
|
||||
DIST patch-6.1.189.xz 8545088 BLAKE2B 5f40adb878de59b4d41c27ae0aa4707c63873b452291f74221c47e1391938be0bddd49d3eb597de86fc7818ca94e85f139c40dfbe40b614252391e7ad369ff82 SHA512 dc5a506f62e1f0ad8bf33aad610e9158e22c5a63ddb1bd565976d284d77d61a8ebdf0403c94f75c36e384dfd164809738eac34a451c50e605b65c550ff6d5cb6
|
||||
DIST patch-6.12.109.xz 5753324 BLAKE2B 9ddaebf8cb9e93e79ccf02efd4e65e8892ff751e3e660f00f8032c42ac275d72ba4aac1d61b8f628a52c064a5bc54c34d05a9510b6a9c9d90f79097c4f7e41c8 SHA512 bede54fa2db04d3bcb4b1e30369a897135a8fa6637b339a94e21cd6e198f1404109bb52626bdb3f88406e002c6f4430de8e05fc20bfeec37bc4ef434120e707f
|
||||
DIST patch-6.12.110.xz 6085060 BLAKE2B 8d1d7ad14511974f9c3508a34b3fe77284278a0b89b0cc94bd256a7d12b00c4581b49a4fc9ae3bf5b4aa67b5b76b088a9c29a1701ea9a6aa88f5bc76d4268d74 SHA512 b431836ce3b6b42b0c1ed810db6c839bb3fc7bb66b014d1a89408e0fe6d441da24e40d50d83be64e1992dd432dd7e245dafa632302892dedc46919caae354067
|
||||
DIST patch-6.12.111.xz 6351668 BLAKE2B 5c82ae2deb7ee2abffa91f6126b4dbba602cff5ca0ed2cd18814ba3f354edec332d2a9c8055c9f44c9bcd0276c6526ea85859ea625d4e7e577942830e335bb9b SHA512 f640e8bf53d4ece7dd1cfc76f316945ad7e7c0bd3fcc06ec97d198e992202f2da439208b556934d897f43f828b67a987c1e38a4249b5f31aed38711a3990da0e
|
||||
DIST patch-6.12.112.xz 6579860 BLAKE2B e0867a6d1c04ac86cb807435ac169c6cf9346bb60381410d8fbfb0fbc4f78ac293f934e84bca8335458930bcf8dc42cfd9203c2854ad3bfb2659186970c5314c SHA512 f6544c78ae6484275f27e0742cc37f3043b9c4d945717ce2627f826609efdb3cd22c47a61497632dd41deb6647e7fd4ccbd7d1e3e9ad8df9fda77823412b6c42
|
||||
DIST patch-6.18.50.xz 3404240 BLAKE2B 3b7794114d37bf1f5f0c95b5b6f44aa33c00096a162dcb6fc48006e22871d2f731626f8759f54bc30cddb8561d75896e0546124e5b11b9e6332ea121d55eb164 SHA512 2ebefa6d5c0102130ecc8445e58e674e581568b728e4b40e1dfdfa3039a10c9d1af533b2b95d3b56ae30a056838af7bfe58f78c1642c56e3db14a3c1228ffe75
|
||||
DIST patch-6.18.52.xz 3996672 BLAKE2B 97ef23b4b70a2e02c1d6c2fa2b4b1c895743802007f2ac6ceb8df086c9b9fac1cff9b80c210761775de5d17012ea8c9ff9c7c3bc1561f087b92f623ec3302c8a SHA512 f1c32303a8eb7f20c7f5c8d592a23140ff880075d0e4151bf96d5b0365ff64b35324753894d8ba822ad797e673b2a878f18d6a2f557dd6d3aca1fcc8d4e5764d
|
||||
DIST patch-6.18.53.xz 4327508 BLAKE2B e2540abfc36f392aa166cf1693367dcee257cc05a326e3cd59e4c71d1c8b5d765d8e610b8b6599e6451c22e4d27cccf7617dd01e499e03c907e6c27c8bf07c32 SHA512 4fcb6c676578354ba4419a7a77b30db04aea42c606b5319325b8427e1e273973b4b6f34ab8e9f2a5522a2298865656ca458e37c17636ddb559d72fa27d8ed5f3
|
||||
DIST patch-6.18.54.xz 4442704 BLAKE2B 4cacc92a71210f994fb3a2b30a8d46136eb4c0d5796f203f458db47c3ac8c86a92cc57a93832813757dc494a44d09c2692224209e8c31eda1226a22339f3f00d SHA512 9bc159d518172c35540c1ebb82315f56b2052506119017eddae4a3200a21255b56937f452e73eb3799e4a0bf4f7deb814e7c7430223333b9ac6e85c13d532f2f
|
||||
DIST patch-6.18.55.xz 4532424 BLAKE2B 88ecc8834445f76189c5c7effb6d482f54bd71097afb8843bb63f747cff390293bc570caeae3770b8e5e5592f44b812ae8e9b851012ae0afb97b0304b212e84a SHA512 274d804a47fc28a8260907ac27f2efc95a4668f67d31a036e88c82cdaf16e8a2ba33dce18f7b344595d2cbd60d310e7b6b0ccae6d1f4dab2eb65badb61e8ef66
|
||||
DIST patch-6.6.157.xz 7211724 BLAKE2B 0b1c80d86bc3fac163ef830979d2c3492e6b72ee56f17c18ce561b399a8b36d7292aabd56012bc978a7bd0b319551f7fb86d688a5e974be01a069446058f72b0 SHA512 6aca3405b62daa0e1fac66d5500705d6d780900b2960e2f50449b0db84cb4a1a814e7eadc9d97a3c959262e3cffb8ec63492ee6c3c0af163c1c8f8a10c184e1c
|
||||
DIST patch-6.6.158.xz 7441668 BLAKE2B 6250c577b430a6ae4883af6d8fba6d5baf5a09cc2ab1365010f1ba53b5b6e1a7b392364a3cd18e3a34b00488ffcf6abf8eef3b7c9137a6e26bfccf41002e93bf SHA512 4c455be321bb92e276bc422d0370297c9e648dd49f32198f5db843bb1caa826b30446aa9bdd1f051c59b97daddbb47e6fe62c2ee122f604b0d226bf14291002f
|
||||
DIST patch-7.2.6.xz 1049176 BLAKE2B a9aa8ced201d5c98fc971436508f9a019eb2e9cf0cdc5a830cc7e707613fe2750dd8d222646e55973e9264e722a9404a0e418a1a2f4385523c02f3732006015f SHA512 82780c916050b619145cb4fc3bebff0a3aaa34caea5c8e41e64e613a686cd2f44cd1f13f0c60df952415d25c0f4ba6f176d2548db2df2292680539cf457aa42c
|
||||
DIST patch-7.2.7.xz 1288172 BLAKE2B 0c796b5f96ef876f6f2bc5754b3396d40d88b6abaf5565d4a8865dea8527aed11480cc1e2bf32060bab4ae2448b854d313523095ac692cdea00db2859762fcf6 SHA512 415ccdef822f9a417eb9a3223cd130e0dd4f3fb883013b7aa7fad1ff8620ba35b8e228a6343849841def211f649cc0141fd978f1523fe4fb4e63d0ab5068ce3e
|
||||
DIST patch-7.2.8.xz 1435264 BLAKE2B 709fc3c63ca07331e776e27c710c75569b10cf57b4d6b5b01f291c1a37e1eade32d6953da086cebc93d0cfd6ae33cae7fb95b4eff8cfb9bbe4d0027612a25608 SHA512 ad01cec3554367ae5a96f64e2c18379c416f2d2c48263b7858e074cdab2119e2df8f06cc1e9cc328aff348588e7517452f10302c6d8b2168442efc3807867165
|
||||
DIST patch-7.2.9.xz 1567124 BLAKE2B 3697ce331e777fac8d2174fbc9f3abdbd17e355fec94761587cc0d6d841809691be721575c8b298ab22455d0265fe4efcf9fb3572dc0d2be9eb787532a8e8f8c SHA512 7f53f7fb4d7208dabaf257a1f031d188de262897c5a136d332b8fb53903122ad2a599531a679ee365bedac7bbc06f341fa3a4410da9245e8d529ce70fb827d85
|
||||
|
||||
@@ -1,222 +0,0 @@
|
||||
# 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.97
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260907
|
||||
|
||||
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"
|
||||
|
||||
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-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,222 +0,0 @@
|
||||
# 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.97
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260914
|
||||
|
||||
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"
|
||||
|
||||
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-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,222 +0,0 @@
|
||||
# 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.42
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260907
|
||||
|
||||
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"
|
||||
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
app-alternatives/yacc
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,222 +0,0 @@
|
||||
# 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.42
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260914
|
||||
|
||||
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"
|
||||
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
app-alternatives/yacc
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,222 +0,0 @@
|
||||
# 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.42
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260921
|
||||
|
||||
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"
|
||||
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
app-alternatives/yacc
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,223 +0,0 @@
|
||||
# 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.1.9
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260914
|
||||
|
||||
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/7.1/${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"
|
||||
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${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-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,223 +0,0 @@
|
||||
# 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.1.9
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260921
|
||||
|
||||
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/7.1/${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"
|
||||
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${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-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,223 +0,0 @@
|
||||
# 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.1.9
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20260925
|
||||
|
||||
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/7.1/${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"
|
||||
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${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-bin'
|
||||
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}"
|
||||
eapply "${WORKDIR}/${PATCHSET}"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user