summaryrefslogtreecommitdiff
path: root/sys-kernel/vanilla-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-27 00:07:23 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-27 00:07:23 +0100
commit3c1648a0749c1d66b300d857e6b417c1162890da (patch)
tree2b13f04c2c10d472e5bb7cc40fe6048bf8bc549d /sys-kernel/vanilla-kernel
parent994fe442814c4d169bb0f1ee9745604928006b39 (diff)
gentoo auto-resync : 27:05:2024 - 00:07:23
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r--sys-kernel/vanilla-kernel/Manifest7
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-6.9.2.ebuild143
2 files changed, 150 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 809a45e7d200..d9a1e8f69a7a 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -5,21 +5,25 @@ DIST kernel-aarch64-fedora.config.5.15.19 242615 BLAKE2B 94e59440681535e38137b71
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.8.7-gentoo 277695 BLAKE2B e3f4270b1543b96391229d673a1dc097975b065b1ce5966ff3886e31e449cc0542c986085feaca7030e41fd0acad2b6921115c4d0f81234cf9f72ce4bfe84696 SHA512 4721995bd2100e2d90f67a3c21db3a5507a3001f5f409b2894fc1a9cad3ff159e1784d06aacc0254229aff40598f78e0a51355b6cfc5cf860bdaf4e8a30a5235
+DIST kernel-aarch64-fedora.config.6.9.1-gentoo 279240 BLAKE2B d25b0f719b05d64560ae0431fd5d8b36764cb6a8698d2c704c9a929199ba9dcc6480ab0313127720d21aa92094ed8b1f5228bff5c3569aa3ffa1acc29bb7f691 SHA512 348db83b70e05048f69d8acab34b569dead90938d45a6134f92825568813db05a2516f0d84cdd0c747340b697d77cf3183fa2f38fa5e862d32b318c118b3e497
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.8.7-gentoo 246668 BLAKE2B 4726a7dba114cc320832d137306f072d5d69cc52aba7ffbc157858e43c6405c71fdec9812eba4f6fc98f169e156785beb54c8cedf70e56bbd8f353dd13692f29 SHA512 9009adff76b1f42c5188608ed29e227d44d55c55c11a0f31c4d60e0e60773e5a3bb527a827463ae1c7f4d37656e0e857d673cb8325b55c6a5c5e08c830024d90
+DIST kernel-i686-fedora.config.6.9.1-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.8.7-gentoo 234240 BLAKE2B e9ab5506caf4ed1df3a746e58f6698963a27df7b343fff2b3678f21f630014bcba1f23bef9968bad253025093b0cf2006ea7fb067e7394a23c7f9c1eaa110663 SHA512 44dc12c0e9c62df264b86ffff5c4d42c67ceec2e0a336a4dcaf6f2de5914e230a0919a55c2152cd2f6ad7b57479dd695ff77df6755e84c49580304a93a2027be
+DIST kernel-ppc64le-fedora.config.6.9.1-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.8.7-gentoo 247759 BLAKE2B 1005d5b08b75419ecfcca207b407ec3a80e644d8b8feb03ce70880de79ea4ff17f56175b7c3c4ffa8279ca42edd154161ff10e89fbefc43d71f4c0eb614a094a SHA512 fd2d6ef4d2b426509c6ad42cf29fe1663a95a9ef4277e9cf300c825e58689e2eabd37932c55ebabc11cfc2694423b75cd215f206ee925ae8945ead61266c02cd
+DIST kernel-x86_64-fedora.config.6.9.1-gentoo 249762 BLAKE2B 077e4e37ac8c4287342106ed9ec4319f8db41b9293e72e9b8f7cec56a346b4ae42640ee02526108a3384631f140922c1eb5000a50bd8f3ade43bca4903036737 SHA512 9051567f6d68443d8b2525d203d827f3856e95bd721ec3bdfcc8865696152b65fcee114ca2629906e66abdca7dcc7549f79d8bc6574c7816fa08f9bf25779c8e
DIST linux-5.10.216.tar.sign 993 BLAKE2B 7d049ccef5511bf9f57094e768908da7dbc77b8b4d15eaea56610678d4212935f3ac5cc5252983d4d2755d1fc3b7ca46dc4f2705ef60202c478d1f90385615f5 SHA512 54679b6d929c44f96ab2e04ff9753b5512a5f26d9fbcee012dbae47de2eecf2fad44964a2bba7d4db4169563f41f3219713d9fec5cdb6f9b9a0b67feeeee5355
DIST linux-5.10.216.tar.xz 120652008 BLAKE2B 1a16f726d94875479ef76a69a9f1ef8642c1a11bf12d53d527750622571b9a26620e6d01ec42ac29207ebc5025e44fb6dd9e7249f0e89149691cc512a2b85ed9 SHA512 d407add11bca1b41a4dde118c9fef52dc67d2f0aad1cc1ed77143104d7d9b7ce1bcd4661681246c06300e9ff5155fbb8d901428bffc32672b6e531ad10fcad7b
DIST linux-5.10.217.tar.sign 993 BLAKE2B c40c65e9c84c53f7d7b5c09c3c736c06bde13329ce0aca40127ffe20f7499c299abe17a6a154dc656e134a49067b9ef9c57aa47ac0e90be85919fb955f30d5cb SHA512 41f4f3f3e18b68e67134be66eacac1a99275e72e8330fc86943246d79fba11947bd89d703ca304c69ed27bd5022c47ff2794825b3e8aac3f2e7ec61a7504514d
@@ -50,6 +54,8 @@ DIST linux-6.8.11.tar.sign 989 BLAKE2B 4a0f5f89f9009fc8aa9dc363832e80dbf897ea421
DIST linux-6.8.11.tar.xz 142569852 BLAKE2B d9bf3665bff55b9242b24f9cce835056bad0abfd6ef998f63ee56418ee76a67ddf8bd5af1a1f02a4767a2af7a3f8c19f61f079e4991bdf4749fcdd04d7fdb7b6 SHA512 7885a8cc5b11eae67f48dd95d364a782f07fdfa4d2a843f7e2b009a266a1f200ef3c4c495e59710db40eea4fed5b7a5443c4e5f0c22f5fb442f87f44c7325549
DIST linux-6.8.9.tar.sign 987 BLAKE2B 0fc69e60bae77731897380cf929ae43785e0b7db7e68e761e53894b288a6a80fbf5ad888b5c0312f601a56984ec0b9206901d7c02b202e73dc0d19e17212c81d SHA512 18730f08135b06018d1f7757e1332dd0f20761363aa8bea7d49734a22a9cb27067b8052849cd2180299a4323786f7dc0bcd598536e8ce5e5042f2f841589daf0
DIST linux-6.8.9.tar.xz 142582332 BLAKE2B 0305b6636a4e382855a2804cedc3984f1e891b26b24412e3533b1f29a07459d39be5121d4618da20098623290e922d502b7ac1b774f39e732f23a778a4b5b5be SHA512 67056eae13be9130e11ea7e4d394d1f0b6b1dccc4f080f72c136870d4486fdebc2c315d149ca4f1e57af4c79dedf849e31c439426166544691508edafca3d350
+DIST linux-6.9.2.tar.sign 987 BLAKE2B fd066ec190b29c5d278011962454eaaad990dff0dafa105431f8f408453079594f8291b6a21027abc738b366b800e3f638b0ec74e9cf3e90f16ffbef505a6726 SHA512 daed5db6aebcc922f15ca5d89a745b92b581a3a90022ee73c38ee3f3573a795beba2cbdf2796632bddfa2900efa5a2d9327e51428672cc2a614ba11ca4296fc6
+DIST linux-6.9.2.tar.xz 144109112 BLAKE2B ae19877e19239c2b521cdf04d182c0ee849228c9ecb4c9dddb626d85ed51faaa5215cc70b5c1ad203c346df85197cd5512894a27eba1c1fd6add9cd2fbaa2a3e SHA512 a168f5b3e7ee7451d5bb1c7f6c090d6002330a4529ef74b2e47f6902ba3d6feaa8dc89f7b5a072d52f6933fd08354a0ff1e12f22240ce53c758c144d4ad132cd
EBUILD vanilla-kernel-5.10.216.ebuild 3769 BLAKE2B 674f934a89efa53eff9792e600448548d9cbc8390226d1673a25989299d36ad09697e04e11b063f95d9493b3bfbebeec0d1d84e24ae697a253c95b301a4148e9 SHA512 2f81b6848c9cf2e3162a921bf80a282ceccc2d492fb0a1bc1f15ee7e197f5735415b4916798c054470dc39c8fce6d924a23f7702aa71036ab3696f2a6790dca2
EBUILD vanilla-kernel-5.10.217.ebuild 3769 BLAKE2B 674f934a89efa53eff9792e600448548d9cbc8390226d1673a25989299d36ad09697e04e11b063f95d9493b3bfbebeec0d1d84e24ae697a253c95b301a4148e9 SHA512 2f81b6848c9cf2e3162a921bf80a282ceccc2d492fb0a1bc1f15ee7e197f5735415b4916798c054470dc39c8fce6d924a23f7702aa71036ab3696f2a6790dca2
EBUILD vanilla-kernel-5.10.218.ebuild 3769 BLAKE2B 674f934a89efa53eff9792e600448548d9cbc8390226d1673a25989299d36ad09697e04e11b063f95d9493b3bfbebeec0d1d84e24ae697a253c95b301a4148e9 SHA512 2f81b6848c9cf2e3162a921bf80a282ceccc2d492fb0a1bc1f15ee7e197f5735415b4916798c054470dc39c8fce6d924a23f7702aa71036ab3696f2a6790dca2
@@ -69,4 +75,5 @@ EBUILD vanilla-kernel-6.6.9999.ebuild 3532 BLAKE2B 14690ff99ca00bbbfcb70d2484ef5
EBUILD vanilla-kernel-6.8.10.ebuild 4023 BLAKE2B 5e9bcee103dcd7b4505f0f85b27f10c2fda2d23e89a89c5e872a9585b92cc1f63633a3891af6f17d6945e8c27dde29005a5034a12674fc6a578906e82156077a SHA512 47dfb45947513d45842ed879ac96929b017e0841cd0ce43a680c05ec96ddcdd040ba991a637278b7ad0531d72e0ae4e5867ffef11474d7336e0f0789ff0c5959
EBUILD vanilla-kernel-6.8.11.ebuild 4023 BLAKE2B 5e9bcee103dcd7b4505f0f85b27f10c2fda2d23e89a89c5e872a9585b92cc1f63633a3891af6f17d6945e8c27dde29005a5034a12674fc6a578906e82156077a SHA512 47dfb45947513d45842ed879ac96929b017e0841cd0ce43a680c05ec96ddcdd040ba991a637278b7ad0531d72e0ae4e5867ffef11474d7336e0f0789ff0c5959
EBUILD vanilla-kernel-6.8.9.ebuild 4023 BLAKE2B 5e9bcee103dcd7b4505f0f85b27f10c2fda2d23e89a89c5e872a9585b92cc1f63633a3891af6f17d6945e8c27dde29005a5034a12674fc6a578906e82156077a SHA512 47dfb45947513d45842ed879ac96929b017e0841cd0ce43a680c05ec96ddcdd040ba991a637278b7ad0531d72e0ae4e5867ffef11474d7336e0f0789ff0c5959
+EBUILD vanilla-kernel-6.9.2.ebuild 4023 BLAKE2B 83763302e2ac5345316d37359b06880d9106c8d5992d9cdc4d36c53765b52ffe835f40304f190a2dc7f358fdaba36edaaed458b40c130ffe90009702dacebb28 SHA512 4e123afe0407fddf7677f1c32c16184a47a32baac02a41e2147e989ed7e9f9ac9f7e358f71410c28763c2c0c9e99f56e4929e264cf783b0f59b2998be4f3dde2
MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.2.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.2.ebuild
new file mode 100644
index 000000000000..a96d825ba440
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.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.9.1-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[@]}"
+}