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 31D5D159C9B for ; Thu, 25 Jul 2024 15:51:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01F6CE2AD8; Thu, 25 Jul 2024 15:51:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6F6DE2AD6 for ; Thu, 25 Jul 2024 15:51:52 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 928513406BF for ; Thu, 25 Jul 2024 15:51:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF9081117 for ; Thu, 25 Jul 2024 15:51:49 +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: <1721922698.48d232ffcfa2d417d2bb6793c53f11afdb8ec616.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.9.11.ebuild X-VCS-Directories: sys-kernel/vanilla-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 48d232ffcfa2d417d2bb6793c53f11afdb8ec616 X-VCS-Branch: master Date: Thu, 25 Jul 2024 15:51:49 +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: c9a43c20-9c34-40dd-8fee-d12186c42e09 X-Archives-Hash: 40f4db8baed67da012c3de795d790b88 commit: 48d232ffcfa2d417d2bb6793c53f11afdb8ec616 Author: Michał Górny gentoo org> AuthorDate: Thu Jul 25 12:58:37 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jul 25 15:51:38 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48d232ff sys-kernel/vanilla-kernel: Bump to 6.9.11 Signed-off-by: Michał Górny gentoo.org> sys-kernel/vanilla-kernel/Manifest | 6 + .../vanilla-kernel/vanilla-kernel-6.9.11.ebuild | 143 +++++++++++++++++++++ 2 files changed, 149 insertions(+) diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 4a532d3ffe6e..804a7be97170 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -4,21 +4,25 @@ DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611 DIST kernel-aarch64-fedora.config.5.15.19 242615 BLAKE2B 94e59440681535e38137b71814e1ae53f57a347f62cf31e0c1c8571ae43d9ae9be9957743c8cbc9ec74850c964eaabefe6799a28bc311ea7b99ee31391b47fb1 SHA512 fb77d3b73a215f97d70cd6d8c96ed20e497786b99ed7d7a7f2ed60cc1251289c1a4c7e058c41b5efac62e4a9b4b3d917dbdb11585955bba2b6584981430f4ddb DIST kernel-aarch64-fedora.config.6.1.7-gentoo 252811 BLAKE2B f6bad0d23132bf0dfbaa25db928a95f39763b6500fd1df9b4aeca4351e3e75f185891c0df96b111ad840e4bac431d74a9b11e7344e766ab49715663c89e4dbfc SHA512 41ebf195d8b656801d49c6bb693ebe1404b6725d70d88d93a75bc4af230030d65ef0701ea931846b022a3c598dcca068fbc38ecf6d064262b3f5b88e57060437 DIST kernel-aarch64-fedora.config.6.6.12-gentoo 271041 BLAKE2B 5af7c2f57cd6cd9230d9ab1a539a4b12b02cfdd777f5921b2d69329b171060a8085909a60eed9916aea504e8d9c9d1e907a61f0c6681ac75d5c64864052f821e SHA512 f744444f2840020dce2dc8473e3e562fa53ac1c34a641a9f322c2c7efd8fc4d9b3677479d3a31e705fa60beff0b1beca79ab78ad7dd4b6633d4499bebbfc76bd +DIST kernel-aarch64-fedora.config.6.9.10-gentoo 279218 BLAKE2B 7ca670dd19cd52a4e452656a4f2a22894202edad74321158d79c4be0e8a0cdde1c15416acff4311488a3d3d7c4c8a59ab573f59d228741497b91fdd11b0d7b2a SHA512 750b503b6dca848e0aade39412eb5ceb4e853e4b92d8722122911818daa5b1a471bb5da7ccd3e8bda81ee0787f3ea0666c76a1f5118b7a5c0f37a364b9576db8 DIST kernel-aarch64-fedora.config.6.9.3-gentoo 279229 BLAKE2B 5a4d896f14f917ee0c2a239a765ada5cbc6656cb384e2d6095197d1114f9c0d6490bda5ad37c5fec74a9b4967886b3a57ded29607d97c05935dfd9d988035f47 SHA512 19a690b7da59e734ad769c0e72b1636bfb13d488171b9206175c6a8422c3e985dfacd8d051f371d2e64de6228b11087e73154f2c3e7a8713476ddfa076daab9c 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.9.10-gentoo 248703 BLAKE2B 31c8cd220013df3411164f4f0ed2751305502b19999237fd126311d6d9819e7f5a8e8a31460677a5ac16c0173a8e1faaa431d93aeca134a50239bb7d2d6c3b45 SHA512 ff25792295efe1e3592f0b04ef1cfa4265ad5999a5b98cf4fa9299e1a7bf320eaaac811bf7663ed5ebe0f0b8fd2635281a3aa0d478556e4c7d672d5102884d79 DIST kernel-i686-fedora.config.6.9.3-gentoo 248714 BLAKE2B 60b8cc73282abf31bf3267a1dff25a43ae1a7bcb35af7a49650cdcc9572fdd35b5d9d4831492e5368e4245831cefc87ca1e5c66ebdc6b2bd23c1737b54bff28b SHA512 514b2852f7ae07ee171fe7bba9af01d243ac585127d7f90972ea860324fe25c08a5f27477a5f0e8bad15066e3e3ef7e930c415141c8281c8715491a0507f1cd2 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.9.10-gentoo 235119 BLAKE2B cb102f3108655ae426f057cc739642fb36688e85e7992b5669e2adf94f4ff47498b4a784afd9b82f69bc2318378ad2af589a9ba99f75935389480fe341526b5c SHA512 0fbb4bfea7c651905a36625d07cc3ee1de233f576578dbcf5dc8ef8ac23f2848d75a22a0239c7d94fa3ab141540e0af1e3583945886c72da5aa1a6b720e4ab40 DIST kernel-ppc64le-fedora.config.6.9.3-gentoo 235130 BLAKE2B c6469868de904d9d4740f5d5042c076c0bdfc4540e0fb43d6b7acb855b6be25352d2d445b71081603d1e5cb93f75a757cdced6b9a1680476a35e5b0a961f503c SHA512 c2fe8f693e869d7e0bb458cc6d5e2578c5b3a60c2a88c264088e830a636fa0d6429fcc2639b9a1e8dd5cc9b5330cb3495389818fb465f64178fe247486d5abe7 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.9.10-gentoo 249751 BLAKE2B 6b2762592f74c7ed7684517f52070588dcaf2c14004d5293286edc8511d548d1a08401991cfc3f39ab60442d17182ae91182d84e68cfd5c0ed50dd3906e35382 SHA512 9fe030ef44abecd84e55a836745e0039b9f0fcd62c68a9702698e41b61c059d8358a223120f066d183363f7866a61bebc4cf631f389b5f06c3e43146154676e1 DIST kernel-x86_64-fedora.config.6.9.3-gentoo 249762 BLAKE2B 077e4e37ac8c4287342106ed9ec4319f8db41b9293e72e9b8f7cec56a346b4ae42640ee02526108a3384631f140922c1eb5000a50bd8f3ade43bca4903036737 SHA512 9051567f6d68443d8b2525d203d827f3856e95bd721ec3bdfcc8865696152b65fcee114ca2629906e66abdca7dcc7549f79d8bc6574c7816fa08f9bf25779c8e DIST linux-5.10.220.tar.sign 993 BLAKE2B 442c173e64088fd8ffbde6cf93c4b29535fd9cf7a8a8979da1d568abcfb1facd43328ddb7723b787c9892489c116e967ed11e89994cbba91ec5071a0d83b81dd SHA512 65693c0d34cf076107ada46e2c5e08454d96d75709cfcad433bf9bbd30e8ed2f2a7c55f3892a1a9614243acb3a9a0b7c641870153a79584e05cc150031af275e DIST linux-5.10.220.tar.xz 120695464 BLAKE2B 3edab181f6fb65a610cced69aecf42304a09e3592e01818830c40903559afe44cd952e49acd602fea3333a4c505c5937116a95bfe549800396a5e58dc37f63fa SHA512 419563f3bea8ea44d51e5c3b2e8e1743aacddc3092c1e81cc97212ced1398f284cd50431f3709d9109eb5ee8fd3405afdedfd2eecfd09d4fa230c8354b9df2cd @@ -56,6 +60,8 @@ DIST linux-6.6.41.tar.sign 989 BLAKE2B 91e81c3582abc1124f618d89cd68bd32b1372a3a5 DIST linux-6.6.41.tar.xz 140257040 BLAKE2B d71b2a108a600aba232d2cce9df0f8d0bd6408427be31e5185fd3dcbab36a847bc497eea6237974f76f6386d3e0dd216cd7ea3d2a9dc660bc5460042f1ab7328 SHA512 d623e13d482683c47b1e00e346658928597522b45fca94b6713e75dbd57deca92cf6b1189ddaadb7b37a04e509ff713eecc76f5a818f241e328635f77f09f504 DIST linux-6.9.10.tar.sign 989 BLAKE2B c91b7e7d5d49fb3bc7563bfe302cbd1fef504da6ff151d4d96ce54a7808989c6c3064bf383e579e702c497bbadeb66e9658c18a75edef3382bbf5f2807e5f825 SHA512 95530a66459c94ad50106f0ce15640ce997aba320eb711031aad99c8a9f5a9006052a298fadfacb420550fdafd749e24a8c820d31c7315b65143e82c2d818161 DIST linux-6.9.10.tar.xz 144133252 BLAKE2B e08cce7f271cfda05c5ad777d06cbb04b57fdb7992d10d24f9e0193cae185d02881cc089bab14639a058cae12d1f89ac79c7d0be528c077d8b09d385dd3fa616 SHA512 043885652363f935049744585d72fd7a1fac30baa6fc222f4ef8ca95b66d0ebf0c9492fdc9208009a849527076d1f6586ea557cde75aaa547e46e624ca759625 +DIST linux-6.9.11.tar.sign 989 BLAKE2B 18272102fa858d3869b2b7a9482f557558c68170ff7893cb0d49740789afef627f7b97e7fd8dcd8c83e09a7820c0745b40687ed41bb5ae7fb1ac612b2683fabb SHA512 b725a88bc1617bf888d15921e6a14fa7b5433271372daacc6631a692f993e1d5be553acc1c7f9c95b5b54d1f9a57d5cc05e36e8b5b2aeaa3aaee8ecf4464a08d +DIST linux-6.9.11.tar.xz 144133664 BLAKE2B 735dd14875b30e96f91e4b397eff9c7f0b06195497f19d3ac5a0450b12fe88d61363e5fdb1163684dc31a68ea76e841c5e19cdf9b378451521242eee4cc0115a SHA512 642b37a4f3aac8449d892f19217c838d9eb27c52414cae4b9b4f02774759c5baa8d23bb4b29a0cf68309059be8288bd335eb107e4820427d719c99c817e2254e DIST linux-6.9.8.tar.sign 987 BLAKE2B bb81040fb2134eb33ff7f0f9d9d18e827d3828d53fffbccdcaecbb22edfef04309a2f42987220552422735af5a6f17aad603d7a5fd4c7dcb9ba2d3659fecfd8d SHA512 7de43543511a017a135c4b33fa511fbca060097da13be2a593f9b912b7388d9e3b025854ddb91518cb5e96bd77befe7ea86f5766db2515db7c39addb0409ad99 DIST linux-6.9.8.tar.xz 144093812 BLAKE2B 3c3874b053d7076564936f2053ef666733d329c402999aac736cf64418cb74e471cf9d7ae62e8fab49e4e916f196c5b8317aa243691b1d18119a25196108dd06 SHA512 e7616207a1f08100cbfd9a3cd08bb0ea6cfd474c3a4cb95b3bf738461b7a8ae128270ba1bbaf512ae9c0eb2a409fa0c1d79317ab6dec9ff317aa9019c86d0c62 DIST linux-6.9.9.tar.sign 987 BLAKE2B a1430dbb6cfd6536c859f5c5fd682b2caf8e940c57ed3d55dc46d67d8851be61dc4215a249aef0b644478622725bd269f814f15f315a5a58a09fa93d20a48094 SHA512 55add916efb2bcc69c294b34a6690dc3b99c7d01f5e4bb53c91f421da4175bd8b7b3ff0df56096f5d6708bb06daf25aecb623364e555276845a38b6d4ffed248 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.11.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.11.ebuild new file mode 100644 index 000000000000..af94dd1c6327 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.11.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.9.10-gentoo +GENTOO_CONFIG_VER=g13 + +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[@]}" +}