From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 53DAD158041 for ; Wed, 27 Mar 2024 16:32:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89A6FE2A05; Wed, 27 Mar 2024 16:32:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6AE0DE2A05 for ; Wed, 27 Mar 2024 16:32:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3921A34300B for ; Wed, 27 Mar 2024 16:32:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 83FD91603 for ; Wed, 27 Mar 2024 16:32:12 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1711557076.ef541c88c79203d7ca0fdd6529af9f54216c66fe.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/vanilla-kernel/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/vanilla-kernel/Manifest sys-kernel/vanilla-kernel/vanilla-kernel-6.8.2.ebuild X-VCS-Directories: sys-kernel/vanilla-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ef541c88c79203d7ca0fdd6529af9f54216c66fe X-VCS-Branch: master Date: Wed, 27 Mar 2024 16:32:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 22c11260-ccd9-4515-9dc6-7d36b3f0d588 X-Archives-Hash: e80cdb229c5670135015190528439dc3 commit: ef541c88c79203d7ca0fdd6529af9f54216c66fe Author: Michał Górny gentoo org> AuthorDate: Wed Mar 27 12:23:34 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Mar 27 16:31:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef541c88 sys-kernel/vanilla-kernel: Bump to 6.8.2 Signed-off-by: Michał Górny gentoo.org> sys-kernel/vanilla-kernel/Manifest | 6 + .../vanilla-kernel/vanilla-kernel-6.8.2.ebuild | 143 +++++++++++++++++++++ 2 files changed, 149 insertions(+) diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index a6f5076bd539..aea007380507 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -5,24 +5,28 @@ DIST kernel-aarch64-fedora.config.6.1.7-gentoo 252811 BLAKE2B f6bad0d23132bf0dfb DIST kernel-aarch64-fedora.config.6.6.12-gentoo 271041 BLAKE2B 5af7c2f57cd6cd9230d9ab1a539a4b12b02cfdd777f5921b2d69329b171060a8085909a60eed9916aea504e8d9c9d1e907a61f0c6681ac75d5c64864052f821e SHA512 f744444f2840020dce2dc8473e3e562fa53ac1c34a641a9f322c2c7efd8fc4d9b3677479d3a31e705fa60beff0b1beca79ab78ad7dd4b6633d4499bebbfc76bd DIST kernel-aarch64-fedora.config.6.7.10-gentoo 276151 BLAKE2B 36606d1a802c334b29c545e35451ee95a076b6d8b48abdd2f2b67ca975ea71054096511078c0261448b2755a153abd4fbba3959bf4e64c94402eda0d0d153d12 SHA512 c09945cf51a7f42a377ae7b30ac34e458866145ee3cbd9f90bc398d533c3f54bfd287e7980142545ae148078726e635c07cb96eadf08ce9318a3e7eb0a7734ea DIST kernel-aarch64-fedora.config.6.7.8-gentoo 276151 BLAKE2B 36606d1a802c334b29c545e35451ee95a076b6d8b48abdd2f2b67ca975ea71054096511078c0261448b2755a153abd4fbba3959bf4e64c94402eda0d0d153d12 SHA512 c09945cf51a7f42a377ae7b30ac34e458866145ee3cbd9f90bc398d533c3f54bfd287e7980142545ae148078726e635c07cb96eadf08ce9318a3e7eb0a7734ea +DIST kernel-aarch64-fedora.config.6.8.2-gentoo 277695 BLAKE2B e3f4270b1543b96391229d673a1dc097975b065b1ce5966ff3886e31e449cc0542c986085feaca7030e41fd0acad2b6921115c4d0f81234cf9f72ce4bfe84696 SHA512 4721995bd2100e2d90f67a3c21db3a5507a3001f5f409b2894fc1a9cad3ff159e1784d06aacc0254229aff40598f78e0a51355b6cfc5cf860bdaf4e8a30a5235 DIST kernel-i686-fedora.config.5.10.12 205412 BLAKE2B 92c715b7e2cd7dd74da7970c05981f520597d3e403ce82c8cf4eee31c9f1f50b638792a6bdb256ef5bfdc99f1bcd594e819e8f44dc6febb2ad9a854bad817f2b SHA512 69d8db11723ae1b40fdedfaace74d15bb63198cdb0485e0a1e5eba95b31217110c93a93e39cc7370cf45f1d3a8bc7f75ec096d6db5ea9ecb28ac6b56702ebb10 DIST kernel-i686-fedora.config.5.15.19 222233 BLAKE2B 9e0f4dd37058f59610e46a87d3165039e76299d3c186fbfc3312101bac1b8b198de404075f5bbc6f5e2ba04cfd45f9d02bdf94b01c3ed11b9275f37f11ee7617 SHA512 49ffc39de86763e707a5c0c07c1367d34e9249615f29fdf97904d7b61a375a86fc4ba37a2f02b5f61e4c76ad65d9ba12716d2523af6faa003f6336d7ae61a953 DIST kernel-i686-fedora.config.6.1.7-gentoo 228053 BLAKE2B 1b06ca68465d7833905b6236a6ccf9a594f44613cbd102990c1667c1ece53ad982fa3abbfe475333e3297331ce1cfadf27c00c3e7de6293e213278e8ca97cd3b SHA512 1ed70eb5254a04d99d28ad901d4556dfa7e8ec8b739a0a33040315718effe9348e75ca8ac19d3b33fa7b3dcad9b4bb0531075692087c0dbe57ec6a4d873a4b27 DIST kernel-i686-fedora.config.6.6.12-gentoo 242515 BLAKE2B dbb4df93a5c8ee34d687262cced152a07f412a89ef2e8122429477633424fdac80809ed57a5a6de72de05313ec91f266d37c3494426099621d047c0561ccb57e SHA512 a65fe3299b6d8f89373937d2a782aa1469ebf18954b00bbf2798cee952b9946d7fead795388c079cb508f6d431e49b2812fb6d845c8a0e3861a4a3bd11e81968 DIST kernel-i686-fedora.config.6.7.10-gentoo 244410 BLAKE2B ea6195c49748438e18556ea7b9170c11bec8aff24ca1cf14701a3480d5e452513c5a75554d4506da530b8a3261d4ee61cdf204e1aeaefd99eab0beb3f79c2537 SHA512 eff020bec62dc2460c7f9135e6ebc619e1d869f241ee4e1ac5fe2abf2b4672fb1e5dd5b006b6a1743d8144deabec5b8467a630856429c4e4edf0c7693224a842 DIST kernel-i686-fedora.config.6.7.8-gentoo 244385 BLAKE2B a5e30eab5f1c3ce8c17c1774a3ad891359c978dd6e2660dd6e224d3365e44a90cc507a42be8fc82d6eb7caae05c8099065c1097d527e0198a77300786d3705fb SHA512 df656de9a82473409bf67aef0a179f5c8339d30af7eda8fd5fc721f7366f27dbdc7b21f9f19f5298c19eb58ab7ded1492daa96db0998e096e16f52084c036871 +DIST kernel-i686-fedora.config.6.8.2-gentoo 246574 BLAKE2B 80834222e71fa04cb48865bbd2b0da6c02c4a44815df576d4dffa1f676a4d53567a6725a20284f6715fcad14ad8a47f1f7bb71b955e1404699f6c7961e6f3ef6 SHA512 3bd2b14d655094dec637018739222fc06c1d59fda7a14d5c3193ab7784b90e89f4b568f0268257a45ecf74e9f8ecdeda978320bc24232985e57256dade8e9f51 DIST kernel-ppc64le-fedora.config.5.10.12 192105 BLAKE2B 889141debb0656a358a3381bae14b5216b982acdfce0bc758f9445c16647807a68a788fb290199c2a1a23627bda1ef4c9405b3f5ac2a4176d1d2b55c71fb7db9 SHA512 3ab0f1401d9f50a61477c71369dede438f575d9d2c3a2f5c2cf36d624c2b59a938efca9c981b075511b3860c983eaaf5e5a9f877d659277f09ceba45edd43770 DIST kernel-ppc64le-fedora.config.5.15.19 213339 BLAKE2B db6bbc9f402b8b48a2441e39d1a78dc112656ae842bc5594065cfd2ec3f6d462e4bde200e8736a70192af35fb3a5d1fc42683783a5b7620881f3a95bb0bc5f4d SHA512 b43439c24be8fa8bdd17d4c0beece799544ae45b2c289f0202fa5eb7a52dce0165a0cbc924b0decf877582af9688efd675cbfbd2313ff85fcc2c8563bba4b1ad DIST kernel-ppc64le-fedora.config.6.1.7-gentoo 218278 BLAKE2B f4dda4430e9801c4660be4bbf6e4b37052e720656e77c928adb7176ff3dba55feb2fe66dd564d41a181809488941cf392ec9c94d786e4a3d813fbe5d683d305f SHA512 a5e12ab1045fae61b494938047cf1c2a3c34693d3d242968e4ab564a012c70e6d232b9d5333347f5ba114a64bb59dd96919b38c5a1327fb8c5154ef40ad28d2c DIST kernel-ppc64le-fedora.config.6.6.12-gentoo 232147 BLAKE2B d67c2ab2d089ecdde3879129d2b1f85a592adae811ed053d00d4ff120e6bb44546bb41d74817be558adb1d669d06f3dd50e6ea542c8a9c2f13672f77f4e4eed5 SHA512 b130b4c57959c0f7be983334b08354640d5e2946bfdd956d6c5b895f816f6177d5fa4bb1c4382cca5c4dd4723aac42e9e89a002b71d86f4eb30f755008f8f9af DIST kernel-ppc64le-fedora.config.6.7.10-gentoo 233294 BLAKE2B d14dd35ccd3c481b4c79edca44fc645fa85d5f0f5888fa3b888b7b94e55b6d0881b250c3fa125b0d3c4aa0f56ddf5e903b75fe072e832d475100709f261c3825 SHA512 a132f7aa6e221160b43d24fef230f4aca390142c992ab44162cb39f02e18dd3991055bcefe27908cf88e10de2f71eacae27750b089528d1c05f1f91a4ec06909 DIST kernel-ppc64le-fedora.config.6.7.8-gentoo 233294 BLAKE2B d14dd35ccd3c481b4c79edca44fc645fa85d5f0f5888fa3b888b7b94e55b6d0881b250c3fa125b0d3c4aa0f56ddf5e903b75fe072e832d475100709f261c3825 SHA512 a132f7aa6e221160b43d24fef230f4aca390142c992ab44162cb39f02e18dd3991055bcefe27908cf88e10de2f71eacae27750b089528d1c05f1f91a4ec06909 +DIST kernel-ppc64le-fedora.config.6.8.2-gentoo 234240 BLAKE2B e9ab5506caf4ed1df3a746e58f6698963a27df7b343fff2b3678f21f630014bcba1f23bef9968bad253025093b0cf2006ea7fb067e7394a23c7f9c1eaa110663 SHA512 44dc12c0e9c62df264b86ffff5c4d42c67ceec2e0a336a4dcaf6f2de5914e230a0919a55c2152cd2f6ad7b57479dd695ff77df6755e84c49580304a93a2027be DIST kernel-x86_64-fedora.config.5.10.12 206357 BLAKE2B 0eda9d4f3f973336cabd67c1ac78f100aabde926354743e8dcb7ff84496f0de49210d45f99bc850a2096078b0b4687aa7fd965d999248559506004f2b29dac0c SHA512 b12f43d3c1a52a4915cd73db98874ce9ae6c425672c0f1c19ed1b1101341c868ebf1c9620bef5449752ec0d7342c1ce38fb77779d0f89b9267096a605ebf7a26 DIST kernel-x86_64-fedora.config.5.15.19 223286 BLAKE2B 239995703c01dcb6d179133dd115bc0a57872c07d7a08afaf4d92cf6d78f0c17b19487b5b399ac7fdde5d460fa7931628147817a569fef2c3a62951c96054bdf SHA512 9bee4aff7e5ef4ada57bee7496aaf47b8fdd5c936c4c9b580660d130db0678eaecdebdbcab0dfcaf5c17a71f6419069840db10f5886806b6fc810f8a3619554f DIST kernel-x86_64-fedora.config.6.1.7-gentoo 228685 BLAKE2B e68236ccc1d51b2aff850eda9f3197b7ea95b8a88716bc7b07dad30348a86fdbb99a948060300dddae73ca82267d851d357f1c9547a9dcefae1364deebdbd124 SHA512 42bec2ddb9cf7eb6e84bbdeb23eb98dc11c9cea41f6134b776010c6b36833b520a290f0ef0145379de15c7f7834398fa5e3aaabd7258d7d4e89567faa09eeb4c DIST kernel-x86_64-fedora.config.6.6.12-gentoo 243607 BLAKE2B 7e670d37c6471e50aa0ba395570cd0173af0210afe63faa48d7a147327110652e3aab5c339cf10ed22a6a20e81e505aee84311beb21fda3eb577e06ea55ecac8 SHA512 c484403a60670dd006ecbe65240cb00d97e8b3fe22d1169c5b6ccb92bcdbddb3ecd474d2b57880b30baf6a38bcef11fc8d56b8b0b02fcddd859833c3640cdc9c DIST kernel-x86_64-fedora.config.6.7.10-gentoo 245554 BLAKE2B 7b0fe37cdac5c1dcaa6f4d564eb66159a98c6a0bf25f11740f79adb362ddd3f1b314d65cbe40182e622ee802e93c47c220eb466db6c818287490c9c063104313 SHA512 653ba4a131d04c1bdee03cce70c4c20ef02d8c25c02d05cbee3edf64ecc7feb0e63e204e346cf0266c54b72d1d9ba00923075f1bce2e9360fc38bde9abb56fc4 DIST kernel-x86_64-fedora.config.6.7.8-gentoo 245529 BLAKE2B 3765cdbb001c0fed398da66ac949572d858ee10d54584387e40ebb325884b6aa1c8dddbbafda0c60cff85bf2d3863db514184c0376d21502b068a616befdea63 SHA512 231fa57809fbc769b325f7d0568c91b1aa1c500bf818b286dde45ff0811c1d8d5ad0adedff8b9a48400aeb9fbd05706445111cdadac277eba86ac95f4f7d18a1 +DIST kernel-x86_64-fedora.config.6.8.2-gentoo 247712 BLAKE2B 78dcee71305a8ce281b1a177cf3c7bb02326fedd53a8007513473f739e369e2afcc65ddddb6439736dca751f081f2ddc91d14c1109f091316d08faedf1064be4 SHA512 9a712ed378cc99102485db689b7540280084c0c48eb2b7f7edc5fba8e673c9473fcb4cff3fb9bd7106a5f5307c9eee333d7f1ea56248cd8012d63ff0de1a77cc DIST linux-5.10.212.tar.sign 993 BLAKE2B 1b2ff975b715c0b810d95e0cbe0ae53b61a6fc5a9dc3819783e484fac686f6c922734569ed2b18d815adc35afb4798c58303e7b947e1cd389c9972694406b9d1 SHA512 0df035e0becf7513482a2017e9131a3ee04307c2d9ab7773e41291e2325778bb8f46d2d8755e1644cec3e16505f874243311d2c1ab748e65734212079307fe3e DIST linux-5.10.212.tar.xz 120624784 BLAKE2B b41be3cb68ba12974c948bb68be252f07863904f7ff879068e48ec50598e54746243e377abff0a1536718370c86f0a62f4d52a75f3ee20be2b12bf384ac189c4 SHA512 e430cc7a37ef77c5f8979e33865e3f5ad0c02270977d52da5bc153daedd30af8791ea6e2377d7e91ffffed6bb4a418e47f6401d09d97c567a9f4635afb3ed73b DIST linux-5.10.213.tar.sign 993 BLAKE2B d3ab525af7f99bb546977bcf67f0f8db5af809e6b53a42697e88a4b545a760aa2572888f40fa9285e44401fefada9d4a2037ce66ae30fe85b0786eb510d3f3b2 SHA512 f2389165628b6295d9efbdbab2ede961caf776717f3cd4f8e00bd984c28bdd0998e6d3cb0b243791767b78e30c2e604d9fc65279f64cefe61627f6c105f6747d @@ -51,3 +55,5 @@ DIST linux-6.7.10.tar.sign 989 BLAKE2B a9d9072cf6e90ca3e4f71f29b97b827e9f1730fa8 DIST linux-6.7.10.tar.xz 141439484 BLAKE2B 5bded11de8e9e22833eae75540c9a0c7591afee00cac0ef4f6e584ac898bebd41c3b51208f0f88210faa17da99ada488c719c7dba8e0d39610b9a84b9c44fe53 SHA512 7aec6065f63a7278e19811035cbdd9f80392e89dae49673e79fd6aaf5785e6617df720483e445f3a7bfe4acaf8fe97b305d541b4fc583e5e8c1d320c5366e7a9 DIST linux-6.7.11.tar.sign 989 BLAKE2B 8173704cce39bdb444bf1f4802bb89c6fdbd0d5541154d7f4abcb2f18cdce0d62067bcee2750f30bc82ec68c01668111bef2c4a9b067480deba55b1a964be1e9 SHA512 6112d8a88d13c67623f3570929860d13b6396c8a1156dc1fe66b05640366ca6ee5b226b8217a944ce18d606abd8191b3faaf55d09c5b903eb2e7e6221e34028c DIST linux-6.7.11.tar.xz 141443692 BLAKE2B 0f7319b641822f07d5bc9f0edaed7c918a73aa67df6a4aa74a5e8e38f2d15795a1c76e0c8c7ab99949165cb8a0ebb77f08e3a380184aa0accad26996a1d415c6 SHA512 be9bca465ab9ebef491ecac5558b6a0e03531700c1c4a8590e34cb2021df53b08301e3fd2b06c92a44e340c12730ade1a747109d612c4375436e3b1e3dd3fd87 +DIST linux-6.8.2.tar.sign 987 BLAKE2B 2b86ff751315994febb29d9b30f7d227a477d652b10173cd44ce36cdcf7259ed6b9bfbfb5453956dbdd222c893d5141cc4538c9041f15d4cefb0f2a1af9f0329 SHA512 ffea592db7611c0767f0ad24b651f2ffda35d6fd065dd566e0afa4991020be79243a527e01afbaba08eee82129504848a2e669ac0e3d93e571535c647629b634 +DIST linux-6.8.2.tar.xz 142512348 BLAKE2B f057c2512040600fbf0df67cf9c7200aee0c06b82b3cf749be8c5685844d2662a585ce17685c7af880c0d9dbbbd81302e5a1fa41c3dbd39869123121a0e82dc2 SHA512 6d23c2891d9e2512adfcc9882f01b4177942cca2a101860b7f6df7c608c645b6269e42afa85783f0c2897e414dbc2fd38af65c3bd9f60a3f71105cc2f6c229ed diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.8.2.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.8.2.ebuild new file mode 100644 index 000000000000..f0a6e16416c2 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.8.2.ebuild @@ -0,0 +1,143 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_MODULES_SIGN=1 +inherit kernel-build toolchain-funcs verify-sig + +MY_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.8.2-gentoo +GENTOO_CONFIG_VER=g11 + +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/${MY_P}.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/${MY_P}.tar.sign + ) + amd64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config + -> kernel-i686-fedora.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( savedconfig )" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( sec-keys/openpgp-keys-kernel ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + einfo "Unpacking linux-${PV}.tar.xz ..." + verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \ + < <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -x)) + assert "Unpack failed" + unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz" + else + default + fi +} + +src_prepare() { + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm) + return + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + hppa) + return + ;; + loong) + return + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + 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[@]}" +}