diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-12 19:40:50 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-12 19:40:50 +0100 |
commit | 7e662ec84fc13cef513542e4030f47017d030187 (patch) | |
tree | 64f1b39bb0a27aa67a40fa470432a93698cd7d75 /sys-kernel/gentoo-kernel-bin | |
parent | b4ef58ede68341d0e00d761505857e965e2b4231 (diff) |
gentoo auto-resync : 12:10:2022 - 19:40:50
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-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 |
3 files changed, 268 insertions, 0 deletions
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 +} |