diff options
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/Manifest.gz | bin | 4408 -> 4405 bytes | |||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 14 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.73.ebuild | 127 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.15.ebuild | 127 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.15.73.ebuild | 131 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.19.15.ebuild | 137 | ||||
-rw-r--r-- | sys-kernel/gentoo-sources/Manifest | 12 | ||||
-rw-r--r-- | sys-kernel/gentoo-sources/gentoo-sources-5.15.73.ebuild | 28 | ||||
-rw-r--r-- | sys-kernel/gentoo-sources/gentoo-sources-5.19.15.ebuild | 29 | ||||
-rw-r--r-- | sys-kernel/gentoo-sources/gentoo-sources-6.0.1.ebuild | 28 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.15.73.ebuild | 134 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.19.15.ebuild | 134 |
14 files changed, 913 insertions, 0 deletions
diff --git a/sys-kernel/Manifest.gz b/sys-kernel/Manifest.gz Binary files differindex 4c89fd371f11..6c6bfc0204bc 100644 --- a/sys-kernel/Manifest.gz +++ b/sys-kernel/Manifest.gz diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 03403eed25bd..8b9a03330aec 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -8,8 +8,12 @@ DIST genpatches-5.15-75.base.tar.xz 3037892 BLAKE2B 33132be38bf46fc9a17a51708139 DIST genpatches-5.15-75.extras.tar.xz 3932 BLAKE2B 7338afccdbd2831cd862ffb7a1aa4b694c62a292b4e72a9ad379899cbb010c3091944c0684bfbb81376ab833dca7e46745a02ebdaa6d33817de36b6506e6bb2e SHA512 ccbf4f6a5c5f3c527c19b5819597e1057018745176c16c159f497aa4ef158af9dd7d0e2c353dd83ec3e05e87a7db213030c9c23dd41a668c2a69351ededcfd41 DIST genpatches-5.15-76.base.tar.xz 3052120 BLAKE2B 679e6bf674b8ee6d550984af7c3603c6327ecd94b6dc2d6dc3dc44129353efb15ffc2993dc6d7d84f00457a7e81ed3038471f8286503d8954abd859ff24f8ab9 SHA512 d357e1991c65a2dee3346d247c3bdb71e1af1eaaf250e3dc09bf1aed11b1bc4ec8650ff902d281a5c9ff3d97184008061d0b9c60e7f416a5fbe43337aecb70b3 DIST genpatches-5.15-76.extras.tar.xz 3932 BLAKE2B 32f0645af1e0c0e4f2312a4310e955c3c12d9b802e3ebce2639f3e0f331a10cc2be237e43819921b5478c5ac6e430ea77671b5f08a0e6398744f018103875c24 SHA512 7cccdf49806cc6ede16dd3f0e16be89fdf8022f01005db3026467ceb680a36c131e3342b4ace26d77e25dad628de98dbdfed0658ab9ad7e41acbe6573dd1cabc +DIST genpatches-5.15-77.base.tar.xz 3061748 BLAKE2B 2089ee718aa184767b7064d6a4658b57ee62819a28aba721fd42b4e964cf5d06ba043c1e562fd5f133ef59b82d775c145ab9b17acc66169e9cc8731617f2fb67 SHA512 099d0dfa44c537c8d218c0c116a5baece3e6989d5bf987dc8b7853bcc230dfc8cf50a09dba70f1d9af76101cac69c56a29d5cde7b859d5b9f18ba7b00935302e +DIST genpatches-5.15-77.extras.tar.xz 3932 BLAKE2B 0704cd3c2bba649f0c9d082eb5eb42c18acf9ad2730e2d1f34f2346f01b685da7fdcf585c92064b44decb4f20db0e89fa1eeefd84f390a0a00023fc1495c5ce6 SHA512 58562c0c0e5a21ab7eb9db11e704ff3129270004a058e4554cbde2fa05def964f1dbb194c1f2539d1e3b18a39b7caffe8c0d78b6b7648133af3c30c10c78acf4 DIST genpatches-5.19-16.base.tar.xz 886340 BLAKE2B 1b0a22eef6f1cd4fb253301b31ded1113753b1747ae72ac7c3a2fef198d5e28365d3178ffe5bdb7b17e5d4b07066d9c8b4dfb5123e78211f3cc04a3d474daf5d SHA512 c98d8388ea0a494271f0b5601328893f46ed5ea36ee1ea1b020b8e3aa6541ed6141c9ebe20e38d02212a076d8a77d845f878cec8a3813d1c455f70c9be561304 DIST genpatches-5.19-16.extras.tar.xz 3804 BLAKE2B c7c5132972abcdd38803412ee035b1630c20da683c8fbc7ef6e51441fe6f2b4b6d33ae085d257ab5b15133ad858be964ae97bf0ff9ff9a06bb2d91ee202bf23d SHA512 afcde123ca1152a76fd882886b5f7fbf630da0dd4a5b201221d6afe247c1e83997a691a2ffdbaa6c292343bbfd2676bcaa59fb118522c0dce46c956737a7ae74 +DIST genpatches-5.19-17.base.tar.xz 901072 BLAKE2B d2ff01c6afd7438ecd091cd432929dfcf6678517e9887b671bd8f5afe350494060a7ec3dff8d4ada6dea3407ae6ac6b9697652c2427a037e47f447cd8cd03ff3 SHA512 476622b17702a84176eba5b8f4b74f0c65f2258686023b99c622b4f9a19ab11b75ff4bf81e733c9d287011296ac6f4f0fe985c637451957dcb84cbe97e4b8fdd +DIST genpatches-5.19-17.extras.tar.xz 3804 BLAKE2B 5913e549bb7b0686d053b191f575506478f90b5a6788f76decdca616a8ff94f976573973fb134ac3a83a894084b72b9e22cc340a1da653cd03ce9291dfc518be SHA512 8959eeb492ac570f254ece2be0f42b6389c94491c09ff6a6195e2b2d09dc96a23e6f5db58f9e5b658ff1a9331edd8fada2b91ac9e5a437b02c648ee0551e04d4 DIST genpatches-5.4-222.base.tar.xz 5109388 BLAKE2B 7897cb44b41e0b360d17b9a7cf3295682fc6c2c6173cea8b08814b6ded54d7c6aec24b51f01912769f35774176d5a89b2fe401bbb09e92890e28e491027f9426 SHA512 e4a4dd2a5f045c0ba56168deb4e557788a42f0db3420790b5103b074d297fdbb417251d6c1eafb0e30eca1b143b2391ab091f6fc5973c4a592a832c4eb338149 DIST genpatches-5.4-222.extras.tar.xz 1812 BLAKE2B 4c5cff34d2bd8efafaaaedfe875efbda02af2903eaef2d536cd34ae953332da58944d39aa18f7d241479e93c202f9260d3a285ffafde05674709ce9c3d2f91e0 SHA512 338a0654961366814e2c6615b963fa9cbe83e71e01ca92744497997b41edb71d5a1c849be16e18d45b69d71a86f9b4cb53cbcc6af3d70b52ba29982e047a7d28 DIST gentoo-kernel-5.10.147-1.amd64.gpkg.tar 66488320 BLAKE2B 60ebcbf7fa07771b3fc25e446f520cf6e9cc311df4ac35443552d0be4143aef21cd1ac9ae942e5e5b1bf8e8b2611f487c3b0704de1c8acef816ecc336a08825a SHA512 9af65a49f8f7a3f98503709fbedd262c40d564eabb854893cc82d60d227a77c8d53b3101a3c744cab30c6c0aa8b711342646b59eb6ea45e5c8e7b33c619b34a1 @@ -32,10 +36,18 @@ DIST gentoo-kernel-5.15.72-1.amd64.gpkg.tar 69785600 BLAKE2B f8a046fab5b3fce3461 DIST gentoo-kernel-5.15.72-1.arm64.gpkg.tar 62853120 BLAKE2B 2d39a044dff9faea295ab33214b89f30bda38d329182779d440a5e2f138aafc798bc4f199961586e040152bf45868eee9e9f3ba35b99b048b7ffb2b75b849dd1 SHA512 3c63e8b8f8776668c9fe677d710c8e0f4cdbdafa2718f721d1cc9f2c9eb8070dcb61ac1c967adccdac0a6ee143dd5fb93d3aea4edba75f6d570cd92042142650 DIST gentoo-kernel-5.15.72-1.ppc64le.gpkg.tar 57200640 BLAKE2B 81023fb379ed75a613ec08f0dcebc16db028fe8dfcadc6f70b73a7ea04b2d17be3a45920996a9209ab5e45feac13347e0d0912ad425527e7d53442d532cd3c5a SHA512 fc54d901d2e7bf49be3c5d841a1314dfad7ca774729f6b8610aeb196ee91f287cfb81564d4eb255500f13ec6435ca4320dcb9649f00321effeb47c712ff0fca1 DIST gentoo-kernel-5.15.72-1.x86.gpkg.tar 59115520 BLAKE2B 17798706d9ed3d4d13b83e5c729e12090e8b59a346f54bcd78720eff9c8c27f2d352e45e7e67dc8238e564bda23d1dcb4cf32e3ba0db00a5fcc27f4b541b044b SHA512 18e3e0c26725134a1dd273da56f31a08b16eb23576bad3d9cf6618b8e916b79150752d8d82971be41ee88e4fe45386c5642d4a620c2036177d637b074655b771 +DIST gentoo-kernel-5.15.73-1.amd64.gpkg.tar 69765120 BLAKE2B 58e562bf8905145fb0d29b11dba770348c642474a7162583b51c06ea55168ee5b465a6903e08e468acb342a8a46961e1c585af4422d90714a61990209ac3da68 SHA512 bd83dd2eba28bb22b72d81c65ba7128e566cfcf26a61e42be1ddd905108ca09ff302ea65375b672e389007d3f72c9f48121e16a822f3bf9c8f67fe56c9f90ab5 +DIST gentoo-kernel-5.15.73-1.arm64.gpkg.tar 62853120 BLAKE2B b035d8d87a1466cd5a411ecec336d43d1057cc8708f57424e124494497892dee251d7ecf18277e5a96fd06cfc198eb9de8a34d1d6d4ed2b8d560c374b6c3530e SHA512 fc3c8ada9ebdb00954e8c1594b07f2365abb82eb543b3a2821d4d4e8f9476dbcb5e5fd7148d71012d0a47808bf38b83e747ddca319a5d93ef788f88a087a6fb9 +DIST gentoo-kernel-5.15.73-1.ppc64le.gpkg.tar 57200640 BLAKE2B 3bd90232111c3b596a08127eb3e258c94968033f8084d6d25c10f6333b58d590b67ba922506e25b2115fa2538ca8b9128088bcef12cea08bcfc1b42f08ac193b SHA512 4ba2320e8202e8a86cab1b8499f7a47ef68541e18e11511b615e2d31281c7eb9bee6c8cab93abcebd6e7a31ffa279fd1662b9d62fb012fa4ecc626adeef8a98b +DIST gentoo-kernel-5.15.73-1.x86.gpkg.tar 59105280 BLAKE2B 35536d86698c426f66d02c1545484d2e9db5e78364f564ab70c838dfa5c99b6ca3b2d60b4ccf24cb9dcf2ff739afde057fcc8b668306cdd2dd276ab65c86a37f SHA512 5943746542cbdfcff1fecc42187151bc1c1fb22d7cb23a48d27590ae20bbb03fc2cc28fd0dc296d669106ab73c45e260fbe9865a7bdaadf5750801af19f40a74 DIST gentoo-kernel-5.19.14-1.amd64.gpkg.tar 72499200 BLAKE2B 58dc9e8b299122b5d6203f30cc2a5f7d3fe44339de563fc436e834e04b2887ce5ee74393d429ddf097919da3657dd5be4da09402b95801ae9425d6e12c59fed3 SHA512 9cacfb8869dba2a77815d69b9198633db6f224c8d5ff482b6bc8744192eb52c162e4a1bb4225362eddec80ffc05deea1f20dc6f94c14ffef85315d93552bb88d DIST gentoo-kernel-5.19.14-1.arm64.gpkg.tar 65054720 BLAKE2B 7f6df416281db4d2cc42f0398e46e99d096ea33de49512d55d07309cfd64d7b8df915064fabd7455316e20c01cb54edbabae836f5c4fd1b0a7862cb2e0bd8b7f SHA512 1468f77ff409e61e970b24066c471ba1cff442e68b4afdc3c32317f79d90c329125766f7be6dcfa47137c50c409cb9801bb4e318a82937209a273e21aca7cfd4 DIST gentoo-kernel-5.19.14-1.ppc64le.gpkg.tar 59013120 BLAKE2B f7c23fadb0c25eb27e8c0ff90d88ac430bad6a4ed5c69c3f7131c5a028b09f887220ce7af1d6cba0283ad7e74b512d46978f48910cd99dbbb69b81fedc9108ae SHA512 89a314401ae2a1f72fd54c94c79ba662dc03f2b8ba7aab49b319b3aadbad99d4458630bc2b5a8d602b7cd45a6327abc82afd71bc055b1be0e39cabf0c796a263 DIST gentoo-kernel-5.19.14-1.x86.gpkg.tar 62361600 BLAKE2B 8ee1db37939e3bd503a861414745d7266ed63fac8d7baa5881da700aea93884f42ccbcc5865c8d4a2f7fdb7b3f1059cede9ec75bd389564524fd4ddb8c21c9fc SHA512 31966b9d42736b672e228eb7457b0b1c79bbaead55d5222e6fc39daf4f8c489d48a2f9169f689bd3d870f33dc7f8a1563380bbc53bd3fe24ead126729e543702 +DIST gentoo-kernel-5.19.15-1.amd64.gpkg.tar 72499200 BLAKE2B 0cc6192a73d6497e0e3a0d451d04e5a8a8e99d99b826c546e5395cab15dafa7ed7cd87fae79b1ad6a9e77cc553bab0b842a294f647b52a0326feb5e43c0b1656 SHA512 4c200a2954eeca9d2bf2bb6dd03e9f5ab096873be37d5e2b3feef28e030a22899219713cfef85bca1cb630d192c7f337ced652513bde0fa87342ce3e9cf76457 +DIST gentoo-kernel-5.19.15-1.arm64.gpkg.tar 65064960 BLAKE2B 280ad9eb5d50f4ea182c251932410ce0ab53a2007e71c384681c57f06529fa1db98d963d7f28a25424255f6cf9df178b3e977e5ae11a02aa9ce711997dc0fc4f SHA512 027801855da919e3107bca05580c97e8c618dc8cd923e2a44986c8fba7fb80c65ebc103fa1f2cdaa4866c44699b6c97b58f6975f7cb7cfffd197705c03ddf685 +DIST gentoo-kernel-5.19.15-1.ppc64le.gpkg.tar 59013120 BLAKE2B 8af8c8754072ad40d6c9ad8859f33a3b229273f07b29b5e40257fc6c0f8558e6d375959be0804b275d7e69b22393d458895420f6a6bc361d8fb5eae5b6154fb9 SHA512 dbf90f56cb945ec4906852f10b602aeb5ae01dd9f3aeb22e7548474b113f9124acf2cac178da051a8f8f8e2aff8c0db7a6631ec140bfca49992127b0fafa5114 +DIST gentoo-kernel-5.19.15-1.x86.gpkg.tar 62371840 BLAKE2B 056719c7c970369cf4fac327b15fe28df1c099eecc18dfa9490d679849584d5db0ca11a1ea41836f12ff2903c93d7f84ecf651928829fb2403d26a7547f8b9af SHA512 cb62c7306d1657a8bfccaf0eddb5f2e71ec5528cf96f8f23553f54b86acb1c2728b5fc4be60dabb40b2694e7a56c4e759bcf68bd7c1fe5dfcd7d240872f655f5 DIST gentoo-kernel-5.4.217-1.amd64.gpkg.tar 60569600 BLAKE2B 88fab71286addfb98202e2faa8ac97061ee99c8c3d41234ccc03a671e1e14aa571cc64a7c789463d849b0860709d353582037d476d35897884c867a6e3741ea0 SHA512 13f4d13bffdfa684108bdf7240b61877e31d33cda53f4467e97a5320eb6558f5ee5a71ba42585025bc822f1278c882dfbaf49c29d995a5973d00fb4b00d5548e DIST gentoo-kernel-5.4.217-1.arm64.gpkg.tar 56801280 BLAKE2B a45bc6ef4e93ea72fa11b5d608219550e3f0b9121602b43fbf994cbc3163baa5482db73bf11dcd88800b179134d54be0fe66dae0f3710e859d0953425320563c SHA512 328cbc57374b39dfec097248591bf570be64bde3334c8577f15c13585f73459b4e326b6fe9978f4cc3fb2c4825a22245d48b68b7d56fbd3473d42f9501f378f4 DIST gentoo-kernel-5.4.217-1.ppc64le.gpkg.tar 54343680 BLAKE2B 7d8d824fe09df2cf0fcb58690369a6b846d606a450771796d3e6eed487e806f511faed8d4194100543524d170f2bb7601a0fab6ed919cbca5f3b1c43bdf2fe81 SHA512 698a1248318adc9c4b7284b5273aefef884c42306b410a56904bb7780fe3190368c81111f3c66bb82418bcfb6da48bba527d5d12ee08725c5a2b3c304dedf58f @@ -49,6 +61,8 @@ EBUILD gentoo-kernel-bin-5.15.69.ebuild 2996 BLAKE2B 4b949e46ab6e6a391c71fb5a05d EBUILD gentoo-kernel-bin-5.15.70.ebuild 3003 BLAKE2B fe1fbf1260aaff760932d83c23aebec1313e9198d8332dece2d5f060bcdea5db46fbbabd1e0f5f125439247b64adaff285cebf06a566a9b4094f43e72089d690 SHA512 b90451d89a4c700892b682862015ac63e5153e30711a2f8acabb2157d84ab8705995460d8a58beba26873830ec85cab81bc734a94c68aa79173e35daf5b0ac23 EBUILD gentoo-kernel-bin-5.15.71.ebuild 3003 BLAKE2B fe1fbf1260aaff760932d83c23aebec1313e9198d8332dece2d5f060bcdea5db46fbbabd1e0f5f125439247b64adaff285cebf06a566a9b4094f43e72089d690 SHA512 b90451d89a4c700892b682862015ac63e5153e30711a2f8acabb2157d84ab8705995460d8a58beba26873830ec85cab81bc734a94c68aa79173e35daf5b0ac23 EBUILD gentoo-kernel-bin-5.15.72.ebuild 2999 BLAKE2B bf50105e6cc148a793b36139a419ac66f4f14b4a73394b21af62803ab61347d87f800f066ccf7c9e33951c2efbb6d6dd77e7b7f296293cee6b0b7f17f3d1e7e2 SHA512 85bce161a2af46e8b9a2a005200e29e30e1bffc8c2263b7db2a756a73d411168dfc0e7720df907e58ccafe059f72558a47d8c93d9240222c093990de08d7500b +EBUILD gentoo-kernel-bin-5.15.73.ebuild 3003 BLAKE2B fe1fbf1260aaff760932d83c23aebec1313e9198d8332dece2d5f060bcdea5db46fbbabd1e0f5f125439247b64adaff285cebf06a566a9b4094f43e72089d690 SHA512 b90451d89a4c700892b682862015ac63e5153e30711a2f8acabb2157d84ab8705995460d8a58beba26873830ec85cab81bc734a94c68aa79173e35daf5b0ac23 EBUILD gentoo-kernel-bin-5.19.14.ebuild 3003 BLAKE2B 4ab34ea587fa8ccd865b3e236c492fb68a9d0f39c17503fe507107af52934cc14ec4dcf1afe08b92a78f6e4515da77cee078872b631e0711126b8c5b5661ef74 SHA512 6face53807c8ee8f1c1f9129d692514344491fed96102dd6579fd1ab3b0bcd02a730487a50b6a64da5f64050879231696c4d35b0d9862dbf98f4166ec1d55c4d +EBUILD gentoo-kernel-bin-5.19.15.ebuild 3003 BLAKE2B 4ab34ea587fa8ccd865b3e236c492fb68a9d0f39c17503fe507107af52934cc14ec4dcf1afe08b92a78f6e4515da77cee078872b631e0711126b8c5b5661ef74 SHA512 6face53807c8ee8f1c1f9129d692514344491fed96102dd6579fd1ab3b0bcd02a730487a50b6a64da5f64050879231696c4d35b0d9862dbf98f4166ec1d55c4d EBUILD gentoo-kernel-bin-5.4.217.ebuild 2999 BLAKE2B be5c5e139ee4da605dd15cf02c6251a762426d0da46ac2b75d46b79226e7c41c57429ed847e2e646735545fee33cb7ac45d62039158c0004380197255477be12 SHA512 b0ee61606614ca61b655b50a578efefd7fb49437014df935c4ea312ab1257dc415425684a05c6dac1e5dbeac5b1eac81071bf7cae4fec7bd68f8cae985b1c969 MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.73.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.73.ebuild new file mode 100644 index 000000000000..9c843f83530a --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.73.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 )) +BINPKG=${P/-bin}-1 + +DESCRIPTION="Pre-built Linux kernel with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + sys-devel/bc + sys-devel/flex + virtual/libelf + virtual/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + cd "${MY_P}" || die + default +} + +src_configure() { + # force ld.bfd if we can find it easily + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + + tc-export_build_env + local makeargs=( + V=1 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP=":" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + mkdir modprep || die + cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv "${BINPKG}"/image/boot "${ED}"/ || die + fi + + # strip out-of-source build stuffs from modprep + # and then copy built files + find modprep -type f '(' \ + -name Makefile -o \ + -name '*.[ao]' -o \ + '(' -name '.*' -a -not -name '.config' ')' \ + ')' -delete || die + rm modprep/source || die + cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die +} diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.15.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.15.ebuild new file mode 100644 index 000000000000..0ba336c5c1aa --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.15.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +BINPKG=${P/-bin}-1 + +DESCRIPTION="Pre-built Linux kernel with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + sys-devel/bc + sys-devel/flex + virtual/libelf + virtual/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + cd "${MY_P}" || die + default +} + +src_configure() { + # force ld.bfd if we can find it easily + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + + tc-export_build_env + local makeargs=( + V=1 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP=":" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + mkdir modprep || die + cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv "${BINPKG}"/image/boot "${ED}"/ || die + fi + + # strip out-of-source build stuffs from modprep + # and then copy built files + find modprep -type f '(' \ + -name Makefile -o \ + -name '*.[ao]' -o \ + '(' -name '.*' -a -not -name '.config' ')' \ + ')' -delete || die + rm modprep/source || die + cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die +} diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 58c2a3cc572c..4244ae579907 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -8,8 +8,12 @@ DIST genpatches-5.15-75.base.tar.xz 3037892 BLAKE2B 33132be38bf46fc9a17a51708139 DIST genpatches-5.15-75.extras.tar.xz 3932 BLAKE2B 7338afccdbd2831cd862ffb7a1aa4b694c62a292b4e72a9ad379899cbb010c3091944c0684bfbb81376ab833dca7e46745a02ebdaa6d33817de36b6506e6bb2e SHA512 ccbf4f6a5c5f3c527c19b5819597e1057018745176c16c159f497aa4ef158af9dd7d0e2c353dd83ec3e05e87a7db213030c9c23dd41a668c2a69351ededcfd41 DIST genpatches-5.15-76.base.tar.xz 3052120 BLAKE2B 679e6bf674b8ee6d550984af7c3603c6327ecd94b6dc2d6dc3dc44129353efb15ffc2993dc6d7d84f00457a7e81ed3038471f8286503d8954abd859ff24f8ab9 SHA512 d357e1991c65a2dee3346d247c3bdb71e1af1eaaf250e3dc09bf1aed11b1bc4ec8650ff902d281a5c9ff3d97184008061d0b9c60e7f416a5fbe43337aecb70b3 DIST genpatches-5.15-76.extras.tar.xz 3932 BLAKE2B 32f0645af1e0c0e4f2312a4310e955c3c12d9b802e3ebce2639f3e0f331a10cc2be237e43819921b5478c5ac6e430ea77671b5f08a0e6398744f018103875c24 SHA512 7cccdf49806cc6ede16dd3f0e16be89fdf8022f01005db3026467ceb680a36c131e3342b4ace26d77e25dad628de98dbdfed0658ab9ad7e41acbe6573dd1cabc +DIST genpatches-5.15-77.base.tar.xz 3061748 BLAKE2B 2089ee718aa184767b7064d6a4658b57ee62819a28aba721fd42b4e964cf5d06ba043c1e562fd5f133ef59b82d775c145ab9b17acc66169e9cc8731617f2fb67 SHA512 099d0dfa44c537c8d218c0c116a5baece3e6989d5bf987dc8b7853bcc230dfc8cf50a09dba70f1d9af76101cac69c56a29d5cde7b859d5b9f18ba7b00935302e +DIST genpatches-5.15-77.extras.tar.xz 3932 BLAKE2B 0704cd3c2bba649f0c9d082eb5eb42c18acf9ad2730e2d1f34f2346f01b685da7fdcf585c92064b44decb4f20db0e89fa1eeefd84f390a0a00023fc1495c5ce6 SHA512 58562c0c0e5a21ab7eb9db11e704ff3129270004a058e4554cbde2fa05def964f1dbb194c1f2539d1e3b18a39b7caffe8c0d78b6b7648133af3c30c10c78acf4 DIST genpatches-5.19-16.base.tar.xz 886340 BLAKE2B 1b0a22eef6f1cd4fb253301b31ded1113753b1747ae72ac7c3a2fef198d5e28365d3178ffe5bdb7b17e5d4b07066d9c8b4dfb5123e78211f3cc04a3d474daf5d SHA512 c98d8388ea0a494271f0b5601328893f46ed5ea36ee1ea1b020b8e3aa6541ed6141c9ebe20e38d02212a076d8a77d845f878cec8a3813d1c455f70c9be561304 DIST genpatches-5.19-16.extras.tar.xz 3804 BLAKE2B c7c5132972abcdd38803412ee035b1630c20da683c8fbc7ef6e51441fe6f2b4b6d33ae085d257ab5b15133ad858be964ae97bf0ff9ff9a06bb2d91ee202bf23d SHA512 afcde123ca1152a76fd882886b5f7fbf630da0dd4a5b201221d6afe247c1e83997a691a2ffdbaa6c292343bbfd2676bcaa59fb118522c0dce46c956737a7ae74 +DIST genpatches-5.19-17.base.tar.xz 901072 BLAKE2B d2ff01c6afd7438ecd091cd432929dfcf6678517e9887b671bd8f5afe350494060a7ec3dff8d4ada6dea3407ae6ac6b9697652c2427a037e47f447cd8cd03ff3 SHA512 476622b17702a84176eba5b8f4b74f0c65f2258686023b99c622b4f9a19ab11b75ff4bf81e733c9d287011296ac6f4f0fe985c637451957dcb84cbe97e4b8fdd +DIST genpatches-5.19-17.extras.tar.xz 3804 BLAKE2B 5913e549bb7b0686d053b191f575506478f90b5a6788f76decdca616a8ff94f976573973fb134ac3a83a894084b72b9e22cc340a1da653cd03ce9291dfc518be SHA512 8959eeb492ac570f254ece2be0f42b6389c94491c09ff6a6195e2b2d09dc96a23e6f5db58f9e5b658ff1a9331edd8fada2b91ac9e5a437b02c648ee0551e04d4 DIST genpatches-5.4-222.base.tar.xz 5109388 BLAKE2B 7897cb44b41e0b360d17b9a7cf3295682fc6c2c6173cea8b08814b6ded54d7c6aec24b51f01912769f35774176d5a89b2fe401bbb09e92890e28e491027f9426 SHA512 e4a4dd2a5f045c0ba56168deb4e557788a42f0db3420790b5103b074d297fdbb417251d6c1eafb0e30eca1b143b2391ab091f6fc5973c4a592a832c4eb338149 DIST genpatches-5.4-222.extras.tar.xz 1812 BLAKE2B 4c5cff34d2bd8efafaaaedfe875efbda02af2903eaef2d536cd34ae953332da58944d39aa18f7d241479e93c202f9260d3a285ffafde05674709ce9c3d2f91e0 SHA512 338a0654961366814e2c6615b963fa9cbe83e71e01ca92744497997b41edb71d5a1c849be16e18d45b69d71a86f9b4cb53cbcc6af3d70b52ba29982e047a7d28 DIST gentoo-kernel-config-g1.tar.gz 4283 BLAKE2B 44dd51ec45ebc71bffcd6d85a2fefba053f7bce8035057f0bbe928e24816ad4ba03c9bf67dcfcd6d6d1833c0a2ea93e0fd486c2093664dc41ccce316e1e60588 SHA512 3a45f28df9d457df0fe0d185da8b10f4e35f49dad75075e041e8cf3cf6972fecc8145cd557b0bf3a8dea20ddffae0194f88e61c1e5098fa0a5ca301d40aeea2e @@ -39,6 +43,8 @@ EBUILD gentoo-kernel-5.15.69.ebuild 3595 BLAKE2B 3f9177ab76f55b26f0b9785ca179df9 EBUILD gentoo-kernel-5.15.70.ebuild 3599 BLAKE2B ce2f332e14d6420a0ce635a8f1ea29788e46f385b7aef0fd7f86b2358c66574ea9e713927df98ae3e95b37ef0cf321cc4325bd1e8ad3a0da128d8942097286c9 SHA512 bc805c80743ad1ce74a09910c234e3ceddd6ff333eafc0babc7ff9ac7ba44ddc09d2c9e108a74b3223e6677eb77f91fe832b58f25e82a204a4adf8cc85517dec EBUILD gentoo-kernel-5.15.71.ebuild 3599 BLAKE2B ce2f332e14d6420a0ce635a8f1ea29788e46f385b7aef0fd7f86b2358c66574ea9e713927df98ae3e95b37ef0cf321cc4325bd1e8ad3a0da128d8942097286c9 SHA512 bc805c80743ad1ce74a09910c234e3ceddd6ff333eafc0babc7ff9ac7ba44ddc09d2c9e108a74b3223e6677eb77f91fe832b58f25e82a204a4adf8cc85517dec EBUILD gentoo-kernel-5.15.72.ebuild 3595 BLAKE2B 3f9177ab76f55b26f0b9785ca179df92d66c3faf2a875ea90c996834670cb22a0b0076549390f48058b71d5b3e352e2ab7c01003b1224f3b1380c5cb20ab6b47 SHA512 d2b6b3aecc1b3571043b19deeb89ae32c07cc62e81bb9385628de7fe7506d277cadcdab5d75a6af07c9f62a0bb88e9c80ec6e467b3ded7a9468ad858ffa4cd8f +EBUILD gentoo-kernel-5.15.73.ebuild 3599 BLAKE2B ce2f332e14d6420a0ce635a8f1ea29788e46f385b7aef0fd7f86b2358c66574ea9e713927df98ae3e95b37ef0cf321cc4325bd1e8ad3a0da128d8942097286c9 SHA512 bc805c80743ad1ce74a09910c234e3ceddd6ff333eafc0babc7ff9ac7ba44ddc09d2c9e108a74b3223e6677eb77f91fe832b58f25e82a204a4adf8cc85517dec EBUILD gentoo-kernel-5.19.14.ebuild 3860 BLAKE2B 83a9eb6186ac31ddcfcbb80401e078c150f2e1e1141e962e7f1891beae412391087764a48eab5ce0fc2f9b8bd00225e9122a95b2a15b320bf0de63622d98310e SHA512 345a88aa98de549dcba361e5def145e25eae6d715523cfc6b5adaa1782a5efbda2b415bb84c9541bae7ffb8cbe36f20ec41d11da72117122eb9d5303a95d4e0e +EBUILD gentoo-kernel-5.19.15.ebuild 3860 BLAKE2B 83a9eb6186ac31ddcfcbb80401e078c150f2e1e1141e962e7f1891beae412391087764a48eab5ce0fc2f9b8bd00225e9122a95b2a15b320bf0de63622d98310e SHA512 345a88aa98de549dcba361e5def145e25eae6d715523cfc6b5adaa1782a5efbda2b415bb84c9541bae7ffb8cbe36f20ec41d11da72117122eb9d5303a95d4e0e EBUILD gentoo-kernel-5.4.217.ebuild 2799 BLAKE2B 925a58a4afcb3c66f5179e8e5c23912332e7a1025ecd9d77b7d53cb89b25482c3dbf136b0340ecbbc4bd1430599302e5537d7a9e9e0314b5bbec1f9b98e76166 SHA512 4d67a306017b4741452ebbe3d0be3f29cffb0debc69bc2a605c6298d730c19a908ce8aca41a30888d9015f1330b9b6a4f5ba518714df41daf17900e8f29ddd44 MISC metadata.xml 465 BLAKE2B ea1260a1638588a48d9dd776e9eabd9730a181af8416ba778c936fa2e80a2360be146d3cc80599e50e0a72ac709eb9538184aac87cb96528e445ed450e34f4af SHA512 c7b7b1a45fb7082b8d8d66cf5a387cc4f7207cd9488d1d5e1d6900f1e4147aa9290b5522a94d941a885f1599b5df2482b529e40912d2b2cff400ecd4b1704c41 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.73.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.73.ebuild new file mode 100644 index 000000000000..4ea02f952baa --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.73.ebuild @@ -0,0 +1,131 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 )) +CONFIG_VER=5.15.19 +CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01 +GENTOO_CONFIG_VER=g1 + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + amd64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config + -> kernel-i686-fedora.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( savedconfig )" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +QA_FLAGS_IGNORED=" + usr/src/linux-.*/scripts/gcc-plugins/.*.so + usr/src/linux-.*/vmlinux + usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + 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 + ;; + 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="-gentoo-dist" + use hardened && myversion+="-hardened" + echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die + local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" + + local merge_configs=( + "${T}"/version.config + "${dist_conf_path}"/base.config + ) + use debug || merge_configs+=( + "${dist_conf_path}"/no-debug.config + ) + if use hardened; then + merge_configs+=( "${dist_conf_path}"/hardened-base.config ) + + tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) + + if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then + merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) + fi + fi + + # this covers ppc64 and aarch64_be only for now + if [[ ${biendian} == true && $(tc-endian) == big ]]; then + merge_configs+=( "${dist_conf_path}/big-endian.config" ) + fi + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.19.15.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.19.15.ebuild new file mode 100644 index 000000000000..09dafaff5094 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.19.15.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=5.19.13-gentoo +GENTOO_CONFIG_VER=g3 + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + 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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( savedconfig ) + hppa? ( savedconfig ) + riscv? ( savedconfig )" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +QA_FLAGS_IGNORED=" + usr/src/linux-.*/scripts/gcc-plugins/.*.so + usr/src/linux-.*/vmlinux + usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + 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 + ;; + 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 + ;; + riscv) + return + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local myversion="-gentoo-dist" + use hardened && myversion+="-hardened" + echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die + local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" + + local merge_configs=( + "${T}"/version.config + "${dist_conf_path}"/base.config + ) + use debug || merge_configs+=( + "${dist_conf_path}"/no-debug.config + ) + if use hardened; then + merge_configs+=( "${dist_conf_path}"/hardened-base.config ) + + tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) + + if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then + merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) + fi + fi + + # this covers ppc64 and aarch64_be only for now + if [[ ${biendian} == true && $(tc-endian) == big ]]; then + merge_configs+=( "${dist_conf_path}/big-endian.config" ) + fi + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/gentoo-sources/Manifest b/sys-kernel/gentoo-sources/Manifest index ce181fda4fde..20cef6eb9968 100644 --- a/sys-kernel/gentoo-sources/Manifest +++ b/sys-kernel/gentoo-sources/Manifest @@ -58,6 +58,9 @@ DIST genpatches-5.15-75.extras.tar.xz 3932 BLAKE2B 7338afccdbd2831cd862ffb7a1aa4 DIST genpatches-5.15-76.base.tar.xz 3052120 BLAKE2B 679e6bf674b8ee6d550984af7c3603c6327ecd94b6dc2d6dc3dc44129353efb15ffc2993dc6d7d84f00457a7e81ed3038471f8286503d8954abd859ff24f8ab9 SHA512 d357e1991c65a2dee3346d247c3bdb71e1af1eaaf250e3dc09bf1aed11b1bc4ec8650ff902d281a5c9ff3d97184008061d0b9c60e7f416a5fbe43337aecb70b3 DIST genpatches-5.15-76.experimental.tar.xz 5420 BLAKE2B 4c43245317271bc18179943dd5dc19d33a856557745bccb59de7a92a034cc79036dcb8b69a3a678f9be8468f9d34b99b72273183129eaca002ddccb08b267de9 SHA512 6cec8434a7f114201a013a11cc69d64cbf532ee5748d0560781daca8eb5e2ff57ee5607c213a855c90b59e55bcff6a2c1941ea1835b696874e075c3b6271c64f DIST genpatches-5.15-76.extras.tar.xz 3932 BLAKE2B 32f0645af1e0c0e4f2312a4310e955c3c12d9b802e3ebce2639f3e0f331a10cc2be237e43819921b5478c5ac6e430ea77671b5f08a0e6398744f018103875c24 SHA512 7cccdf49806cc6ede16dd3f0e16be89fdf8022f01005db3026467ceb680a36c131e3342b4ace26d77e25dad628de98dbdfed0658ab9ad7e41acbe6573dd1cabc +DIST genpatches-5.15-77.base.tar.xz 3061748 BLAKE2B 2089ee718aa184767b7064d6a4658b57ee62819a28aba721fd42b4e964cf5d06ba043c1e562fd5f133ef59b82d775c145ab9b17acc66169e9cc8731617f2fb67 SHA512 099d0dfa44c537c8d218c0c116a5baece3e6989d5bf987dc8b7853bcc230dfc8cf50a09dba70f1d9af76101cac69c56a29d5cde7b859d5b9f18ba7b00935302e +DIST genpatches-5.15-77.experimental.tar.xz 5420 BLAKE2B 0481b330f2d81040a9eb47a128229054379988734007d82a46162c1163e1d220a071e9dc8a2a390aeea36af881a5e9d5f1b7be1ca80d4d00e620a6efbea4a120 SHA512 64c47fe2dcdea4846a96c9c1f7688bfe7a1e632250d1248c15117dc737a5e25ef83cc8e20ff500ca8254e51c320199779150ae369ac314cdc4427255a1603888 +DIST genpatches-5.15-77.extras.tar.xz 3932 BLAKE2B 0704cd3c2bba649f0c9d082eb5eb42c18acf9ad2730e2d1f34f2346f01b685da7fdcf585c92064b44decb4f20db0e89fa1eeefd84f390a0a00023fc1495c5ce6 SHA512 58562c0c0e5a21ab7eb9db11e704ff3129270004a058e4554cbde2fa05def964f1dbb194c1f2539d1e3b18a39b7caffe8c0d78b6b7648133af3c30c10c78acf4 DIST genpatches-5.19-12.base.tar.xz 780072 BLAKE2B fe63576626355f3fa1638ca4de11e63342b6302c068401bd6990b56ab96d28f7bfe3066dbacd28022e5117347980e19df06dce20b021d67fe5830c71bc722470 SHA512 ae55b6c32eabe68ea2a1d4a319b0ecd5204be1236275b6d113c9fb44ff449df61e9a10c28399b4c1853763779145c71708f67206e98ca51fa535a90e3b316ebb DIST genpatches-5.19-12.experimental.tar.xz 72040 BLAKE2B a60e5cabbaaddc70094fa9046016c25e129d44214653311330c62e7a21aa4fa5d51483943c3496b2ba4536fa15dd4b07b175a28b5615f8221eeba250300a3054 SHA512 5639444bbcea0f877f1a97415282cd987f8570257a5ef9043d255453bdd76d371210a383ba9a9ae3631c384bc3f87848a815585970d5a0f06588f8631c221551 DIST genpatches-5.19-12.extras.tar.xz 3808 BLAKE2B 29b7c4bea18c4c56ca2944282ef1153d5394150029f680712c08b6bb41af8d8a44337768835561f90294f06635951d8dff2d56261e85c875aaabd395d39485c2 SHA512 0a30f8b0a70c9c0b6b87595236a08de5ce1b5d55df88c9878e23b3e87d7d22128da4302ea18f83ac83b66d647c0ad304a65c3c74e9084f555844bb276607a922 @@ -70,6 +73,9 @@ DIST genpatches-5.19-15.extras.tar.xz 3804 BLAKE2B 4261193221cee786c6b8ab7a39111 DIST genpatches-5.19-16.base.tar.xz 886340 BLAKE2B 1b0a22eef6f1cd4fb253301b31ded1113753b1747ae72ac7c3a2fef198d5e28365d3178ffe5bdb7b17e5d4b07066d9c8b4dfb5123e78211f3cc04a3d474daf5d SHA512 c98d8388ea0a494271f0b5601328893f46ed5ea36ee1ea1b020b8e3aa6541ed6141c9ebe20e38d02212a076d8a77d845f878cec8a3813d1c455f70c9be561304 DIST genpatches-5.19-16.experimental.tar.xz 73248 BLAKE2B ac2795c5709893b10f19e4199fb72baf94933df118b2b392d2c6aa69f4829edd70c53cb8e8cf056b4fb37c77d11b02475c8f9f95f490a8c1a78c2c07bc5fe53b SHA512 91e315e439cb9cefc01973b9a7ce3d2f4d82c3929e77fb985ba1963bbff0d8541960d6ca02103f16bfdc41f73f4a0f243c2d75726190b5a82f9e2b7cb2a28142 DIST genpatches-5.19-16.extras.tar.xz 3804 BLAKE2B c7c5132972abcdd38803412ee035b1630c20da683c8fbc7ef6e51441fe6f2b4b6d33ae085d257ab5b15133ad858be964ae97bf0ff9ff9a06bb2d91ee202bf23d SHA512 afcde123ca1152a76fd882886b5f7fbf630da0dd4a5b201221d6afe247c1e83997a691a2ffdbaa6c292343bbfd2676bcaa59fb118522c0dce46c956737a7ae74 +DIST genpatches-5.19-17.base.tar.xz 901072 BLAKE2B d2ff01c6afd7438ecd091cd432929dfcf6678517e9887b671bd8f5afe350494060a7ec3dff8d4ada6dea3407ae6ac6b9697652c2427a037e47f447cd8cd03ff3 SHA512 476622b17702a84176eba5b8f4b74f0c65f2258686023b99c622b4f9a19ab11b75ff4bf81e733c9d287011296ac6f4f0fe985c637451957dcb84cbe97e4b8fdd +DIST genpatches-5.19-17.experimental.tar.xz 73260 BLAKE2B 2e0dd129192352b9ff4d5f2c14963f2135052bf5255a6f6207f8f6c3f80c3880bc29df5825cb31d4ac3331b4c1aa020ab2acd94eba2174d2cf00dacb35f08500 SHA512 606e30ddf7768e5e833c14362a147515d846f5394b2951254c7426f85a904d5c20a06c6a44823167d6b612e71b3aa9250be5899fcf55fd8fb63e189284069053 +DIST genpatches-5.19-17.extras.tar.xz 3804 BLAKE2B 5913e549bb7b0686d053b191f575506478f90b5a6788f76decdca616a8ff94f976573973fb134ac3a83a894084b72b9e22cc340a1da653cd03ce9291dfc518be SHA512 8959eeb492ac570f254ece2be0f42b6389c94491c09ff6a6195e2b2d09dc96a23e6f5db58f9e5b658ff1a9331edd8fada2b91ac9e5a437b02c648ee0551e04d4 DIST genpatches-5.4-208.base.tar.xz 4869104 BLAKE2B 3e9038248ddcfd22d67248e65199cca89bd2b8b3aa99aafcee63e5c294dc360c01d7d7eda809e1c18b06a9356363c575339197b2425bcafa8676cad68c17f90e SHA512 880fd09492e5cb0fa8a94e2df5fdf912be59210f1f142a456e3f80c31142e92bee3161bd77038b606616442cf3396b3961a24422de3056f72b4556d06262d3a5 DIST genpatches-5.4-208.experimental.tar.xz 16908 BLAKE2B ae7e40749a5bf9e80bb0c417a735c1a29cf88131e60a4054cb3ca021911f35d37a1b4ee185a7fa1227a068ae7967fc27c3db817dfc84fbee462e2779cf99a02f SHA512 3afae20a8afc9795516b60cdac904fc7e60e234a57b8f77fdd2738a0b881ba80780b47b5ff4c42a26707ff2168e6824a72507bcbff262450f816dd006abae975 DIST genpatches-5.4-208.extras.tar.xz 1812 BLAKE2B 3e5b8cae462a748eb36af66c4ebc393fc09882a1fa23cce6f82a078ea5598c23c2ecbe7029d6e2060735fe342b3a7bb5c235dcf16081bba0f05a6b88501af991 SHA512 b550dce1b6d090959eaacd523ee1be258fbf9db84309054c3cce9beb0bae710ff2e1c23f480310072fb08f7456bdf825b3ba76d57e999fc1597368df93e65677 @@ -88,6 +94,9 @@ DIST genpatches-5.4-222.extras.tar.xz 1812 BLAKE2B 4c5cff34d2bd8efafaaaedfe875ef DIST genpatches-6.0-1.base.tar.xz 4076 BLAKE2B a6806af2473247e53034e0df58fc217a14108c86e89d2611e7886459405b743e690b5fa9f682a3e8ad3215c821f4e04552978da0e309be9cb586f0e2fb53c50f SHA512 da56f7e72c400aa149d481fc42651debea9ff90144b4d731dbd167cd5061da63f34b1b4fc937c8a3508f9bcdbbe3b645d25cfa67ce05db1d5c25667214840d9d DIST genpatches-6.0-1.experimental.tar.xz 5408 BLAKE2B c336c51fe66098cb7dcf8880360ffc39927b622ba38fa05ea29e3422e8dbb0a28f890a2b16c720bd5cacc8f1b73dcb0d09d0f99487ea121349a5fe8f684ab5ce SHA512 08e69dbc5e762b7784ab8b1efaf33bcce87fbcd652a3a372d609e47976a6c4c4b4e2d211ce62d1227fd207b1c0cd8d32b9f3748d3ef7e37c6958de78ae1388fc DIST genpatches-6.0-1.extras.tar.xz 3804 BLAKE2B 973be072083e8f23fb0e39856864c5e061e071d651bff1ecd6dc9d429688a074d9ef78f255edf4479e95b5e60c78034ee969d12a2e65c4c6a5a382daa1aba419 SHA512 b00123c8f910367cf2c68cc8c6a70139644add4adb0aa96ae34bf7e93162a19020ef91f6bac631c257f885928640c4f847f8c32b940c192238304edcc83d0b5c +DIST genpatches-6.0-2.base.tar.xz 11172 BLAKE2B 023c4c75830b71bb7e61aa8fa72d1dbf8c7366827aa90e19a69d16dd2facdc6d14a8c32d8897e3073abb77cfd18583ce90d3d6738690fdd5c0e94c7a2e5798ad SHA512 aa9d3ed17c7e69eef60883302192fe641d952c0da7f48fdf262f2ec721915c52897a88f7c6e7a9290dfbb71883450466f8c788baaf5d280724ab432d5ee55eb0 +DIST genpatches-6.0-2.experimental.tar.xz 5400 BLAKE2B b498aa440c60016fdfff8681e28caabfd9d119ba88b51ee227da47c6cd098ed7ab433f90f99ccad81b9955306a071e570e85cb28c8566f20568a3822f78d2e41 SHA512 c28f9d646446ddaa6ce38aa5d237b48e73346bde8c80859efbbb64f8fab8c7715ec6a2ce3f1742df318eb4feb56968c233af4fea9e3e16cacaf9afcdf330b2cb +DIST genpatches-6.0-2.extras.tar.xz 3804 BLAKE2B 55b3ba6d295c869d434d8c88c717c63b61bcbc3e064ad557bed454fe6be89e623ec191b67e528db579e77bb617e676d92651174b2059ca33715766c4ec4f7bbf SHA512 d78fe954b4c2c38a8aa3944415e698c62c7eca209b2c86c33f8a166d6078a85daf1bb0e9ac4011ed2b13e7090aef4f9c40cb6b5121fed444cfd0546bf96285b7 DIST linux-4.14.tar.xz 100770500 BLAKE2B 85dc4aa953fe65e273a24473d8de98e4f204f97c43be9fc87cf5be01f796f94cfde5c8f9c84619751f1cac51f83ce0b4681fb19c5f2965a72d4a94fe5577846a SHA512 77e43a02d766c3d73b7e25c4aafb2e931d6b16e870510c22cef0cdb05c3acb7952b8908ebad12b10ef982c6efbe286364b1544586e715cf38390e483927904d8 DIST linux-4.19.tar.xz 103117552 BLAKE2B 1dbf16cf410867412d17568fe42bc1e90c034183b654d270b650621ff7664a321950943d0639205bc1ee7ef6210be170c1f2c785a042ed8a4ec5e3a486d890e0 SHA512 ab67cc746b375a8b135e8b23e35e1d6787930d19b3c26b2679787d62951cbdbc3bb66f8ededeb9b890e5008b2459397f9018f1a6772fdef67780b06a4cb9f6f4 DIST linux-4.9.tar.xz 93192404 BLAKE2B 83ae310b17d47f1f18d6d28537c31e10f3e60458c5954c4611158ca99e71cc0da2e051272eabf27d5887df4a7cb4a5dd66ff993077c11d2221e92d300a0b48d7 SHA512 bf67ff812cc3cb7e5059e82cc5db0d9a7c5637f7ed9a42e4730c715bf7047c81ed3a571225f92a33ef0b6d65f35595bc32d773356646df2627da55e9bc7f1f1a @@ -116,14 +125,17 @@ EBUILD gentoo-sources-5.15.69.ebuild 741 BLAKE2B 781b44b518c262f8f10eff29cbe198f EBUILD gentoo-sources-5.15.70.ebuild 748 BLAKE2B b01ab65e34d7a4f62c30cc1c1e5617b748c8c310742384b8310ead3f62ae8491295a6a53c3a6aca54c0459075d5f09dc7c75be8f66e9761eaad98dc8e88cb4e7 SHA512 2f9d7c72560408f20d3461e0ebc6fce6fe4593fe9c406acb9a948be3f3da9afb0d427b9e601c760e043c8429263c5c794b3d0d1fab063beee77d491c87171e67 EBUILD gentoo-sources-5.15.71.ebuild 748 BLAKE2B e9ad275bbb1e568a75ed2119daf9613af9488fd0cb0828948e5799f5516ff3318f8aecc0e3452bc546a3305d953c8dd279025f85b7527a0356c0e260aa7906cc SHA512 98e78ee8260a71f4430232773932c6f6db3bc2bc9a19aafdbf2cc763aa219dd8838387c5c733cde93459fa366b8549c671f4bee9f80f210409af189ab7f3fb20 EBUILD gentoo-sources-5.15.72.ebuild 741 BLAKE2B d06641c99cb3105fbd55c5a0194c29f3aaa850664caf48063b7669f4fcd9cd6af945c6c4e10eb4ca24730ff9b45abad35c6ec42967b381ec9b81796aed7bbac2 SHA512 2dbfc66ead66afa6a216b392cfe687b3c94cb58ea3bb8e2244d69a2f4a082d9b7ec1f0fa28e612fcd218fc2716df6e914baa82b2c5d25914c221108fc6c304cc +EBUILD gentoo-sources-5.15.73.ebuild 748 BLAKE2B df59e067977300722837766116d9f3c4ce6b2a5a2c8e86de39fbf48d5ead631aca0ebf34dbd9c6ff4dfe73b6a26e4cc4d84eaf3dc68a0b2f0663099d7951c2fe SHA512 e0eac9bea8701d03d1f931784fdabff578a94432537e65736c06c165cd5289e4c218d4ee47cab374e3075ebcc21bae06dba6e7415fc6c69a2a7d72594471a0b8 EBUILD gentoo-sources-5.19.10.ebuild 757 BLAKE2B 0249c770185e697ef2feb7d43af5a452d1dd712f103bde7c32cc23f736e045c5b38f2a3cd7c2b8c2b64be117e983e4c7f94760f555ca6a7e994d4f1a61ec9a4b SHA512 cb56c5ee5d0f7e8e05b558f4f7ae0fc5af7b79d9b41964431f3d686be8afed86b4394eca65c0e04d62125ee2a94353606649a157cea7272222ecb1bca7dd2631 EBUILD gentoo-sources-5.19.11.ebuild 757 BLAKE2B fe1256548754c7a57fb48d97978e147c6cd17a329b35ba787075bc9c66fa0376e5b2c24a377c2155b3661f1fcdbadbac5f1b4b94a9c233070173cc9a6b67b3e8 SHA512 b414fb9be74fae4ea6c1ebdf5baca352c1ede7ccbbd85a22a5856adee11f6ccc8f77aa85b6dbc02bffa2a6d18c0b73926660fc6aa6ef3bfe275b72ea6687bffa EBUILD gentoo-sources-5.19.13.ebuild 757 BLAKE2B 00b92228ef219728a4301e974d090d55762501631d32ce1a2bfbcb100b4fa3794adec3af8540ecbf2a751654f9469ec871a2f9029b5e314c965b0da25273c2e7 SHA512 97589727b52ac41a0262a3a193bb0e5268686ccfea0581e716d042c93521169caabefcbb412da17838f8145620a8e0e5fa1868735f273c546c061bdc8144613c EBUILD gentoo-sources-5.19.14.ebuild 757 BLAKE2B bc522658471212492da6e533c36f57de133b33694869c543a0a25af3a988ef6fa71845504e0b7be77a631dbcd0dd9139c9399bb80d0af85b97a350e60d726314 SHA512 5e684a7aa16a8579e176b3036bf5dd74642042418da2f6c367bcfed841dc94c48d7e9c2f857c18d501b77478e91486ba9567b258ce51bb288e2548d3ac02939f +EBUILD gentoo-sources-5.19.15.ebuild 757 BLAKE2B 4a0aaf784dc4a41545259aeda49f8ac32971606ed20b1bcfc6b3181f809ea164aee038088773030fa8e9775a0af6776ffd44405d067f99cc4eb19e375ffce2b7 SHA512 a274ffc5279109fab8c7d2816ec57af1a2d41b86d7e54a5def1813a9a3cf570d99b66e3a8157d45d2314ee865d0a166497ff8e0b83219afc08c00e30146da9ba EBUILD gentoo-sources-5.4.203.ebuild 667 BLAKE2B 1733e50421a6e981ebaa0411c0e374ea2278f2e120b8f487d3434a7a5d0d8d42056c682067343ca1f70866a1e0d84a308332380caaaceb1aed0cc2fa7e5bb007 SHA512 3deebe00a6eeb0c38053eebebece646d992baf521cc448b44ba3723a91d631be0851a21e160064e245d3bb6031db36dfffbaa21d90a3bf24768910161a25ae6c EBUILD gentoo-sources-5.4.214.ebuild 735 BLAKE2B a5261d20b4557729c03cbcdb05f9f57e9e26b968caf3668f3ae8943a7bac09e0d61b2be7c742e63c413edd8cb41104179d87442763d4c1ecda7be5b217a41c5c SHA512 3078f9aed19e6c63fba102cab0531ed76f428da5d5c85166e2f4427c7e508f78081de165570a7ae9e9b6ddaed124223e7288f91a3f44db97638e487dea36e440 EBUILD gentoo-sources-5.4.215.ebuild 742 BLAKE2B 2cdb2e3cd426751d09b841ea663afc9de183cf7261d3ba112440015a538361043e1528ce0273a3ff4f52e323a130e43ef3020c6991f2d5c5fa22e1823c445dd6 SHA512 3c48665ec3fe6fc994948c5fc5b7aeb3434b2bb698aca45d294dee4122fb50476a7a2e8f42b268e3ac0801cb1824ff30c0ed53992370569aa244bd4c53fad8d0 EBUILD gentoo-sources-5.4.216.ebuild 742 BLAKE2B 842bc0e3d9956c3ab9993f6079968e55e99bc451dcf19773f011b8b7a38ac4419c790ad029fafba577c0c3ffb08d6928f3f4b6e9289b61f2ee34d41330828e0b SHA512 04f7cf67e67c722d5edc49f271d1be8d8b1d57cf829f8aa0942641f48c2ea899b00a00466e1f9af41efee54b30cd8d22b01337d34f3e00b7f85f3f5c08fd9d73 EBUILD gentoo-sources-5.4.217.ebuild 742 BLAKE2B 5abab5d2f9f5078c98263570535020c3847d79c059b7b8855f3df105a035ca9dd907660e080ec7006439e8b6c80a16cff9bc3d09c42b447fb87ecc8266f2c042 SHA512 228d92427de627d13e1c48df7992679a2283af9b58e5bfeceb041a0dacfc7bb9d650c3e36d24d92b94ab91c0fec117d79eef92148f3b3185f52fb194daa83d3a EBUILD gentoo-sources-6.0.0.ebuild 741 BLAKE2B 173a99711cf7e2f80832dead06826d0a5196bf35d364b5445b0da5f60901cde8c4f71757c68780a2768d344dd516fc77a6136a0f3c8ab1639fcfec24b8ef49a7 SHA512 fab36547339b5d28de0b9553b1997a4159099a9b2959539d842e3afe88ff3bde955b4babbcf566ec0baffd06fb636b553aca59cf9f7aad5d0a4d5c4a687c466d +EBUILD gentoo-sources-6.0.1.ebuild 741 BLAKE2B 850fb58340c7bda3854cc22131fa1c3e294255fe09dced4b9d7a177c2b451ee7a447ec397d05c15d86592a58c59ed3e83c45870b7c85391064dd03f77c11b672 SHA512 557b739782cff1984ffdac9a947f15bbfac6d5e8e455ab92635ad9d40ad8b5d2fefd6c47777e9aa93af35cdaae2a69106498776ac6c33d1de4161200560e51d5 MISC metadata.xml 501 BLAKE2B f5363c8a19540d5bb924b38bdebeb8dbc60c84e58d1d87a9148a3e7abb09b0a1b733c98b130b778b8ab3a88375598444aa9d537d8c5338864a3d4497600d7836 SHA512 bc1ba0d75dbf5b95b3f93e666389c6408f20aebeec99bc8ec00653758b67588e07214285ed106fd9e5aed2c8d57c625d666c797212fda51e1ab98ce1df816467 diff --git a/sys-kernel/gentoo-sources/gentoo-sources-5.15.73.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-5.15.73.ebuild new file mode 100644 index 000000000000..94714f479813 --- /dev/null +++ b/sys-kernel/gentoo-sources/gentoo-sources-5.15.73.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +ETYPE="sources" +K_WANT_GENPATCHES="base extras experimental" +K_GENPATCHES_VER="77" + +inherit kernel-2 +detect_version +detect_arch + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches" +IUSE="experimental" + +DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" +} + +pkg_postrm() { + kernel-2_pkg_postrm +} diff --git a/sys-kernel/gentoo-sources/gentoo-sources-5.19.15.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-5.19.15.ebuild new file mode 100644 index 000000000000..001da628d1de --- /dev/null +++ b/sys-kernel/gentoo-sources/gentoo-sources-5.19.15.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +ETYPE="sources" +K_WANT_GENPATCHES="base extras experimental" +K_GENPATCHES_VER="17" +K_NODRYRUN="1" + +inherit kernel-2 +detect_version +detect_arch + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches" +IUSE="experimental" + +DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" +} + +pkg_postrm() { + kernel-2_pkg_postrm +} diff --git a/sys-kernel/gentoo-sources/gentoo-sources-6.0.1.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-6.0.1.ebuild new file mode 100644 index 000000000000..350db901ae85 --- /dev/null +++ b/sys-kernel/gentoo-sources/gentoo-sources-6.0.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +ETYPE="sources" +K_WANT_GENPATCHES="base extras experimental" +K_GENPATCHES_VER="2" + +inherit kernel-2 +detect_version +detect_arch + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches" +IUSE="experimental" + +DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" +} + +pkg_postrm() { + kernel-2_pkg_postrm +} diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index d135f8042893..737b55b57f39 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -26,8 +26,12 @@ DIST linux-5.15.71.tar.sign 991 BLAKE2B c68c1e6ccdeaa6b7c655ff850b50c69cb2c72fd8 DIST linux-5.15.71.tar.xz 126446412 BLAKE2B 77da2393a31b6c6fed7cdfef61a112ae49fcdfce96968daf8c7a690a6e65025c7238c1fe084d0bfda403dc56db877b6db99def12803e840cacf318da40327d7b SHA512 7d20387a1f82d7ec63ff06ed05885a2758b39ece0fe95ad559d79216210e342f0df4dfab9f54c1e4016c331516034aa1b6783d63dd7e415d0cb20947301f95ab DIST linux-5.15.72.tar.sign 991 BLAKE2B 90bc5b088ab8c44f9b8bf96934547b07090f9dc27aa1f8a18cb028fc17f2638107868d678c6f80b22025b9093c653891de2bba942fac049f20e62eb2498d185a SHA512 310a5b6991ded25542e37112125975dbe1dd6eeb1f1aee8cbce18ba4ca16892d88d5c56bf6bb55ad5bd094fe9a9b6f5d83cae8586d07c3b8a67eaad889a1b05f DIST linux-5.15.72.tar.xz 126456132 BLAKE2B cbcee67d4d96085f954bee66e5270c36587b4407db2b66ae7ba6f514e3f1f09878000cee18984bbdd21aaa1278ad6b47141cfa50a0a5e96c921c5371e90319a3 SHA512 c6288f664cdc02711382592493c84152f2139b8aa0cdee7d448c7aa75363028a1b7ade15414e7d9d42501f754a6d8eaeeb2dc663ae3b3cc95e9d0882d5aa8d1e +DIST linux-5.15.73.tar.sign 991 BLAKE2B bddf3d467612809564144f139e09ee0fdabb8756d99476d5ae65a307792ff42b94964b94b35afe2ae8baa13f3b079aafe9c080121a9b8f67a335c767dab6f407 SHA512 bc82810d427deab2ac8a5b12f18c1d98290744ceaf5755156dbc9e604830522b6cd0a615a771cb9984746716f17e51c548c6a264a589113afa565b8971655452 +DIST linux-5.15.73.tar.xz 126444132 BLAKE2B b8d9276aade33dc10069684dfa806716ec3bdde24f9f0363709011f6e071fd909669f7dee23f1b30506ac46230f2da82cb66e63d730fed6be430406c508bcd3d SHA512 d32f8503c676c713211c5818eccceaf37e6f78ca0bf6269b194eafcf515b2fa6238656165d165946a758ca86d9e60c389c23d05e3c85fd6716003e5f19d05f6d DIST linux-5.19.14.tar.sign 991 BLAKE2B 33280f855e00b93f803e6f982b129e199748925f5e3326d977c81a56bad08d7d6dfe762ebd1bcdd535fc64c6af5981d39ffc6a49827f984d69a5c9bd72ae02fe SHA512 1162461100ee335a73f2495ef456ad32f1bcdec400dfc52fdbdd14929e2f1a87b3527f57c1d7ea08957c2bd607d89aff055e0faf6abbfe801f32ce93d9bca88d DIST linux-5.19.14.tar.xz 131644196 BLAKE2B 459f07c79b36b9edaff06f4fb183bd209af2e51c968b2ee2883f9664eac1cf569b59e3fb9b943c1eef50362af3a41603ce367df1895a1f77571ba491160131fe SHA512 19e584735009f0cedd08c94b2cc75cb6b0706a5aacd13a57995cab4f4a304bec42e9f0151bac1712d117b88c211fb84092b6eda723f9ab06289f37930ce1079a +DIST linux-5.19.15.tar.sign 991 BLAKE2B aede577f11f17168beb5a24e45cbc3f4ade60c9d7df70d7584d829577b5f55e34cac4b546e3f36b8284e011e410c127928970386b2e14993b0e92352c9d2996e SHA512 a7a94b95d1dc5b3f9fd8448cd8ee4c48671cca724aad3cfbec60bde36ade6c0abebaa392f35f4f2c0530914c1a9b63f5df351a072c21ef8b3dc450cd0c2b7c7c +DIST linux-5.19.15.tar.xz 131651164 BLAKE2B 1115c4b6d279d89b8abdbe847a748e89ebcbe127ad99465190e10fe7f72a9546f42c0b627f0633b99ded6a23e22ca696bbd92f4387b43b5beaebc2f894d3ffab SHA512 55c208be24d4851a939fd91285b05e968a7c8be5aa29a92f0b2df5622b4a05ffd43a158f92f6f5f872119ea99b9ed67286c225f6dab3b9765672f7475ece686d DIST linux-5.4.217.tar.sign 991 BLAKE2B e013f0bdc76cd45a30b9868daffea48537cf6c11479cf1622cf062f52400b4c9b02aa7f963ec7f8d977c32a012d2d99cb8c78e7c07f165b4479b5f4c306ae70e SHA512 99e380d449b8005c721d6150b42f8424a4b034ed61c21c3c6c5dd488f42837d064690e448c3ea03aa08928597602605b560d629d44bac44f09b67f129b7e4866 DIST linux-5.4.217.tar.xz 112963732 BLAKE2B 42e028707aaee1526e5d608173206c386bc02c130410a7127efe7b97a3af8dc98ddb25688cc894df2c1124b81924471a764202d53a35b4177beafef21396fe68 SHA512 f2f7c0843f73dad58d00a283327bbf1aa4c103db7b8b7060ab58013e084601a4603632d6e43a4ea2d2958a5ae20fcafa6b5ae14a11da00b4185028b50c427909 EBUILD vanilla-kernel-5.10.147.ebuild 3715 BLAKE2B 43376b8725a469a9f7e98e105b2e7617ee5c663b367b096292bd58e9b66905d1d40a8325714668ba3e04bf1d21d809950198aefab7b63b152c685f08b9bc497f SHA512 4bffc17a9a76ce0fd938ddd272587a294719262af38165686bafaa48a7a543068817b0b5136365e512a0f141bad06d545ded287786afb89df3bcd253280f30ff @@ -35,6 +39,8 @@ EBUILD vanilla-kernel-5.15.69.ebuild 3715 BLAKE2B 5f9721371b3ba0e5498b275fa2ed31 EBUILD vanilla-kernel-5.15.70.ebuild 3715 BLAKE2B 5f9721371b3ba0e5498b275fa2ed31fdb6f640e2506d4d246076460f085f33f1850adca9db07260deccd65b92c94488f60625b0f8fdb66d9294ae2a697f16493 SHA512 84eae31a460385f9508ced76a7f3f02be83a2283e6691fe94b56a8e68bacaa4c97604dde3691903195fef01ab5e1f55063421c895aa8d1737adca071aabd9477 EBUILD vanilla-kernel-5.15.71.ebuild 3715 BLAKE2B 5f9721371b3ba0e5498b275fa2ed31fdb6f640e2506d4d246076460f085f33f1850adca9db07260deccd65b92c94488f60625b0f8fdb66d9294ae2a697f16493 SHA512 84eae31a460385f9508ced76a7f3f02be83a2283e6691fe94b56a8e68bacaa4c97604dde3691903195fef01ab5e1f55063421c895aa8d1737adca071aabd9477 EBUILD vanilla-kernel-5.15.72.ebuild 3715 BLAKE2B 5f9721371b3ba0e5498b275fa2ed31fdb6f640e2506d4d246076460f085f33f1850adca9db07260deccd65b92c94488f60625b0f8fdb66d9294ae2a697f16493 SHA512 84eae31a460385f9508ced76a7f3f02be83a2283e6691fe94b56a8e68bacaa4c97604dde3691903195fef01ab5e1f55063421c895aa8d1737adca071aabd9477 +EBUILD vanilla-kernel-5.15.73.ebuild 3715 BLAKE2B 5f9721371b3ba0e5498b275fa2ed31fdb6f640e2506d4d246076460f085f33f1850adca9db07260deccd65b92c94488f60625b0f8fdb66d9294ae2a697f16493 SHA512 84eae31a460385f9508ced76a7f3f02be83a2283e6691fe94b56a8e68bacaa4c97604dde3691903195fef01ab5e1f55063421c895aa8d1737adca071aabd9477 EBUILD vanilla-kernel-5.19.14.ebuild 3835 BLAKE2B ba5aed4f0630a972dc9204da9b67184ff1ce8362ff445f469405e05e90a16db3d3dcb79fbbc2ae9867a62ecd518208472024673bfc0fe27b5758fd00d6bf43c2 SHA512 c5567b4c47a5cacd755ceff2d35ca716751f5759d7b13eafd83a4868fb144586bc20393ec2cec3298f19f8e98f9c53670e0692ad792bce507245c84089b25f6b +EBUILD vanilla-kernel-5.19.15.ebuild 3835 BLAKE2B ba5aed4f0630a972dc9204da9b67184ff1ce8362ff445f469405e05e90a16db3d3dcb79fbbc2ae9867a62ecd518208472024673bfc0fe27b5758fd00d6bf43c2 SHA512 c5567b4c47a5cacd755ceff2d35ca716751f5759d7b13eafd83a4868fb144586bc20393ec2cec3298f19f8e98f9c53670e0692ad792bce507245c84089b25f6b EBUILD vanilla-kernel-5.4.217.ebuild 3001 BLAKE2B 2327a3c19157c0658328235c8853a8806b7e10af269041a7ff1d3a8d7b3df4ef767ebf12829b57d32892d9795619e946a574b704004da55b6f8641e71d832e69 SHA512 5068ce6fb368e17c40629eedc4cf78a7a5b9ca50b102d0378fe0022eeaba14ef710da4f5b31c7021b013c7745fcf52c569bc0bb11c8cb3de038a6f150680edfd MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.73.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.73.ebuild new file mode 100644 index 000000000000..e9d460c7094d --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.73.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +MY_P=linux-${PV} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.15.19 +CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01 +GENTOO_CONFIG_VER=g1 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +HOMEPAGE="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://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config + -> kernel-i686-fedora.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~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=${BROOT}/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 + ;; + 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 + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.19.15.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.19.15.ebuild new file mode 100644 index 000000000000..43e75eed5fa0 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.19.15.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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=5.19.13-gentoo +GENTOO_CONFIG_VER=g3 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +HOMEPAGE="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 ~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=${BROOT}/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 + ;; + 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 + + kernel-build_merge_configs "${merge_configs[@]}" +} |