diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-30 19:43:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-30 19:43:03 +0100 |
commit | 162945d2a91899b637bbb9e163b406350de12906 (patch) | |
tree | 49cc2cc66f724a7c6f033f93aaba4ae3be1f2259 /sys-kernel/gentoo-kernel-bin | |
parent | f660c6de84558324d784218831d8f0782ee41e2e (diff) |
gentoo resync : 30.10.2021
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
4 files changed, 345 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index a80ba753b8f8..f505b6ac2526 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -23,6 +23,7 @@ DIST gentoo-kernel-5.10.75-1.amd64.xpak 65510827 BLAKE2B dbca97ddb2197b77dedc46b DIST gentoo-kernel-5.10.75-1.arm64.xpak 60915641 BLAKE2B aca91e1da789c4128371172d7500f085c798ccc8c99bc66150d441fd4cf45822aec3a0c577695aed9979cc5f0b214b19b3787a6173f40ba8d792184a7c1cc086 SHA512 1be83f8088718660b0d4298092f8e7f725225e3247425f8da595ec772d9c80d57876379ca4e46b2a885bf2ff0280ade597b0a3562198aac7034d52c66699435b DIST gentoo-kernel-5.10.75-1.x86.xpak 57249997 BLAKE2B 0ef78af722f9c89b01c7d3cd1ffd8dfd10f2358bb62600e3210bbb18f71807f82bf442a3f402d5140fbb20cb1737291470551cc690916ec2b61e9a0d20f8df38 SHA512 08894507e35934970bdd6ab30725db71208abdf00e438ea011c1ecc4f57d5f2b7bf0a3375e0721b241af1e50f4086f4b1a503e5f38b4c1790e9251913ee0347d DIST gentoo-kernel-5.10.76-1.amd64.xpak 65516987 BLAKE2B 6219fef65f498cb77bed01c576d06a2088baafabe443b20f641422f3ad4d3e05a2ab51fb346f4e10d4462f677aa4b59306ff55976ec28141d317bd4254a03e4f SHA512 ee799bec44cc07a439f26ce9dda9676a67b05eaf20c16a4df11c9e1c752dc95a9f903ce9659217c3a23a7c4e45cc747f57b5c0a7a0c764ff4c9aed5a7021bf52 +DIST gentoo-kernel-5.10.76-1.arm64.xpak 60892400 BLAKE2B 00dfa37d735df4384d98ae62fa5b91cd07e8e61282b0c1fef503fd10efc075050ed6e66e201f13ffdb6fd64a491fdbf4f37d84ad85064620a6c9136fe53aa822 SHA512 41908b71c4ddc3f5c32573733665f14861fac07d4ff0ed47ad265d4eef9bba4ea1da7f680ebeb0d44df1c3ce4a8a4d49876669c000593b6999e3979dced80b98 DIST gentoo-kernel-5.10.76-1.x86.xpak 57245227 BLAKE2B b770d80e40e87c8a74f1724a030f9b06ee6810e240da5675f6a83f38fc23d21d9ab736920fe2277cc5b41a17ca0f17d3b58351fc94c84b69d63da225eb69e993 SHA512 0eb636f8a4a9e9c6be8f94cfa74e7a62a43e4492034ad203dec9df8330e065dd9ca05a6ac2e3c11b6b057749ad631a3dc32b3da296a74ee13e25251494a44cbe DIST gentoo-kernel-5.13.19-1.amd64.xpak 67338326 BLAKE2B d9e718a94bf9a341f5b57063cbde2f3f1f0ea6d03f1805051c084b792388789494a49786d643f1570871ca2b6366a206497aed83f9ed00837c542ac970a71fc6 SHA512 aea74f6f39861752f7a5dae16d955d541f65d3e7b8a0e5fba593011d9ca8583f3dd0964e76aa21daa6583d5d26e3616885aeca8a04dbba222e0aae2a85062b40 DIST gentoo-kernel-5.13.19-1.arm64.xpak 62747957 BLAKE2B 1981ddb4e35d2210e1c678856ac58e088cd100ecbd70d2b5c88ffe8eb25b56f3f0c90e45d12adb74c7a0fb881dfd36b1d46d6fdfb837dbdff1881ded066b906d SHA512 d8c1e524a3e58def5352b3faae07c42074a2d67015cc62b9601e20bb9b7f29d44d2843e7771e0399e9150be1de2be2b28776f96f7fe75ba7ec4e8f2c31e1f715 @@ -31,6 +32,7 @@ DIST gentoo-kernel-5.14.14-1.amd64.xpak 68060210 BLAKE2B 979f550a50ff3a47e816ea6 DIST gentoo-kernel-5.14.14-1.arm64.xpak 62976292 BLAKE2B 53877eabafaf39f7d1d6024e7dc3cdf07e78b3a94850f1765763b3f5041fb132d3d7d97a3f6b64cf5ad24195064de933a4e8dab62faf7c843d480f8c0c72bde9 SHA512 f4edba153fe521a5b358114c4faf84b1799ffbb5432b2a72d1f07c70b76f354169ae80e7052e6a6b725698be815073c902b91cc4c5f5fb64b8c5773b7e98dc9a DIST gentoo-kernel-5.14.14-1.x86.xpak 59175659 BLAKE2B 4233bbbca15ceac5a1b1e6880eb77f0838a7c6244d8f9ede2e5057c97c80b317572af6b076a51bd32f16bd4640c61cc3c5ef7c92f78d0f499372975b6fdfc2f1 SHA512 79fc5ca7ce6c6c9a06c48e0857e4d0a964f8d8ea42a48b4f336ac5b017bd3a8aadda7ad6dbdc2984ba8ff2b748df386e2b81240da20a55194947902485dce790 DIST gentoo-kernel-5.14.15-1.amd64.xpak 68135693 BLAKE2B 4d1b3c8f095bcbedc67c33e79093ea53499fb0d31732928b9d2594bc3866d02a00462255f012e76f92f956dc3ffa4f226d0c4ba7e42c356d26173b0b1afd2174 SHA512 adfaa8f98a34edd81480b3648f0b9bc17cd2047252a8c7f52d64c4d3f042e6565e245a90e591e7106ef27504b65906da81ea4b8df74e6398ef3dc48247886e28 +DIST gentoo-kernel-5.14.15-1.arm64.xpak 63053059 BLAKE2B adbc13a8b046cd40da16d9902bfcef68347c81ed695af14445d526fdfed641d44635cc108c761a6056c4d485d9f0beaf80a1256474d427b6954318ca0b211287 SHA512 ed6bc279e81e80287cd5da69ae7d633b540ccb3ba219deb104fa04e0809734125d658ba995c39004a895bc6ab093c6d28d8eee6ab0d28e78d1669af5e4b8d189 DIST gentoo-kernel-5.14.15-1.x86.xpak 59181387 BLAKE2B 635576604adee2b32c107ca50fb74a106fb1e88a8f4640d8e9660d1493b4f86870e429acb1a3b42286b1d0781b4cc2421b10f1cecd778c4505f6edc1bf05b728 SHA512 6bf1300d5b3bc7512184e5d99d7e7b69d354e8b1fba41e609ed0288bdf134a1951c57b75d0255633c70ec250d05e4a403c09be56aa16d5ead38bee2f1b1bbb88 DIST gentoo-kernel-5.4.148-1.amd64.xpak 61364378 BLAKE2B 2d5a665f5ccee0de5abc78d593b8bc6f1da0fa6fa9573ee9c0a65efaae9629ac3ea0b26a4b83e6abb23eee5fcb842fd67a395af35fb5476529b30dc0739d7944 SHA512 277064e06bdf25fc67f0894ab1d8116f23c71488b92a1751833c6aff684c7f2d28e2116e31d40878caa3f741fe9fe61f1f0c3cfaca4677298d2851b22afdf1ff DIST gentoo-kernel-5.4.148-1.arm64-r1.xpak 57998682 BLAKE2B a27bee25e2e6b2c0fea38cb5bee1ce433c6dbf10468b374ffb237a15403a4acb7feb0729526d337c5c9b1a85c4afc63716fa3c4b5fbe32c03ddb6966765f8946 SHA512 c72a4d8bc4bca7cf9ad5b594d7cadff11f9a4ec7181c0dbdce14919a1af50c1a901dd69b1a5d3f35abe51f9ca82f729f352ac8873d0b0f225e4bdd45a213b350 @@ -39,6 +41,7 @@ DIST gentoo-kernel-5.4.155-1.amd64.xpak 61371926 BLAKE2B 364a34d96863cb9dd697e12 DIST gentoo-kernel-5.4.155-1.arm64.xpak 57596314 BLAKE2B d6c1d72d619cf66048928d3c901765a3443170ae7e77e0d444bc7cad30b0d985a90e056f45d1a50b3a942006c9a8770bd652ea787f22807813dc142712dc8861 SHA512 6cb7c28bd18e2a34d2cf316dbd5a09a066877151717beb25efbf386e50cbda1540e041b201286771ce4d7a814cc3f4f0e1442b67d3212213b047590a4176e023 DIST gentoo-kernel-5.4.155-1.x86.xpak 53166974 BLAKE2B 635e9b254ad3393c546e8b7dc2934aae87f9dbe99faac2bf6852cfb1a15fd9dbd1c8149fbf07a008eecf5bd07ad5f3fac11621c2cab20f265f0966a887d25cd0 SHA512 ee47f76adf7658ae9154c12f499f58c8caff80f89b0dc9a1d0ea7a5c547d0fefb4779d4a99c3808010a25e0e04dc4facc3ae71d2c46515d690a5fb026695e1e3 DIST gentoo-kernel-5.4.156-1.amd64.xpak 61386846 BLAKE2B 776ff69d5f7de04bacf1793ab74ea5143b2e9b11a65e06b7a74b298495c147e8dc2e0920082d5adc45362c4a8c3318887dbc70e071bc98b76e496e35506f8bd6 SHA512 1ab3772b4f51b829c5322605718e747cc08f44e48469c26cf1ba5bb13730af1c30ece760dd1dbd89d674fbe1e209595877b02334b7a1a78ffe418b43161f5c59 +DIST gentoo-kernel-5.4.156-1.arm64.xpak 57653246 BLAKE2B 6163d814d4ac0c0c7f0abf4cd5bccf4a8b2b2d4ffafc9850ffdb94cad81dd542601a667df7c8754307b8b011d0e8efad7fc06baded508eceada267f0ca0e11b7 SHA512 5d256be62768f435ca4661ece5eac8d28ee0b3a440ef879c8f34cebde9c38ab55885f9849e88ff645ebcb90476e1ade8d062befc6bac89e36722e0734cbe5ce4 DIST gentoo-kernel-5.4.156-1.x86.xpak 53160831 BLAKE2B 0f615e5daf5ea0e86ccf1c21751973e735a57df77c4c6a77decbc4410f2abb57028b5037a390ad5eaf7511beb53f0030f9cee91f194619b7500d32f880cdd1e6 SHA512 34e0e6f4590252cf03f19b4c80d9b0c95237821d8c8f451d89cf0642379fa0a6cc8d0c012dd4ed55099fa56f466de78e0632fc0b11987615a5ca1df6b225f005 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.13.tar.xz 119297284 BLAKE2B 9c4c12e2394dec064adff51f7ccdf389192eb27ba7906db5eda543afe3d04afca6b9ea0848a057571bf2534eeb98e1e3a67734deff82c0d3731be205ad995668 SHA512 a8edf97e9d38a49f1be2bde1e29ad96274bb2c6f7e8a2bebaa1161dd4df9cabcbaec4ff644c45bee94f86ae47725087d6deed0cd954209cec717621d137db85e @@ -48,15 +51,18 @@ EBUILD gentoo-kernel-bin-5.10.68-r1.ebuild 2541 BLAKE2B 13f86c45cf10fcbdaf7bf4bd EBUILD gentoo-kernel-bin-5.10.68.ebuild 2675 BLAKE2B d7fbfbf74c409404ec2e04b9ae20ee1ec34e7fa575c3529cb2c3d28b51f0725f7f32ea3b8e0b13bc2afcabfe7489b77325e35f2225714520bd5697f743b5d2d3 SHA512 7a85a09ca5d86aa100bbca197493bbcaa070d6d274509a4df1e6e1fdf7b6749293bc866d9a3a8f3ac49c762d436a34aaf39548a2b06096f0ce2f9a359c3d0044 EBUILD gentoo-kernel-bin-5.10.75-r1.ebuild 2541 BLAKE2B 13f86c45cf10fcbdaf7bf4bdc2c9937a69c73bebfcb3652dc8fc5ef95df1fdf839f88bd4aee88da50356b52f83512fe740fd31b84e4b5e71675f7879498f3bd2 SHA512 69be9f39c8f553b7f37fadba46adc9a4615dabf9e39a13754c2b37ceb190d7a9d160a168cbe3dcb13a90ef54769bdffd96c91016e1628935272a681ded4f6a42 EBUILD gentoo-kernel-bin-5.10.75.ebuild 2676 BLAKE2B a282f329ca8a21ab3f61bc949851d57d374dadf8d2f479d9c3b560e6742cd1acb7ec684722e173be1edfb3d24ab154e8dac791d8e614ebe78eb64e6602f1c5e8 SHA512 bc1d05bc5fabcebdef9d6c699c1a99d384cffe73ad07d75936eb50f2e98ce1986cdccd794abfa687cf62cdcab582cdbc01835d6acdd2b6b35a6d7a7496fd138f +EBUILD gentoo-kernel-bin-5.10.76-r1.ebuild 2542 BLAKE2B f0875f84db933407258e0b4c068efa29a99a2e87bf77ac1f40c2387be9a73ad15af1ea01c14641b2b3d8ed05b55347059de2feac8bba1853706ad68b72f2b9cd SHA512 bb839e158eca955a08d18fae084cb14359c3e83c459f724b584b3c41c5e763faf6c06d6f35742b564681a7365fd909c1f3a6c1e1070edfa1d2a802a2dc921447 EBUILD gentoo-kernel-bin-5.10.76.ebuild 2677 BLAKE2B c8dea5ffb279f8919ae35d3f9dbd328d317f164a3a85dc88c856270d71dc6b5f709b7f088cc7c059aacac96ade4f3d7f1c96f5f1b2a6c03118576b217aa5146f SHA512 56d94d99725ec854f13092a2a5fda787bd1fc60b5576f6f1e39f80d0751062e88a992aa578cd208b76f6c9ab5e4bd4a30d9c7e1ae616eb948cbe1f6847ee0c0f EBUILD gentoo-kernel-bin-5.13.19-r1.ebuild 2541 BLAKE2B f4293af94bfc918c3c5707dd020ca21551fd6101e5290230345aedad820f6832f217f307eea4c53e950414ef8675255e84ad0da7202f7f55d2da3d7a98c4ae27 SHA512 f7628a110b0bedc7d604eaaf758ae42211b4a68f3ad244387d19cc3411d9fb4f7d5ed391309f7e365b6e104ef0859b05f0c8e4bd2b4b26c15152d7119d426a97 EBUILD gentoo-kernel-bin-5.13.19.ebuild 2677 BLAKE2B 36ea71e86c73f165c48bf0be61a199b287b19d8b5a24577a671c458ab58a1489d27d03390092f24cf5685f4e3ec52c7062afd39eb2ba7e3f00cf0bf13caf0c5c SHA512 7a4d3a7525feb32b33e173d469decb36eb65d61a7c0d1bc5454ad3037200fd4d8ce0bb20d421cb88edb72e6846501cb79999c58161c08166d022163b49072634 EBUILD gentoo-kernel-bin-5.14.14-r1.ebuild 2542 BLAKE2B 952d01614fd47248c95267e650ccbca6f01956c70ea8d8837bdf7ccaede6bce5031bb2f767269bb5ce455914cf6e215bc9a6273ce914ac71b5b5da4536c97f63 SHA512 f7b4e5ce1533646eac42ae849fec328feda9afb10229b878865230b72872b6865202a9785be163216af60e1c67dbe56a197723d06795ca3df311de260d46c453 EBUILD gentoo-kernel-bin-5.14.14.ebuild 2677 BLAKE2B 92b909253e380e0ee1bf79916236e89b71091c163f5b375fb9fb374b43552dcbb2e824611fe7c3c2eec2eca1782e70d72d8bf3a681d2d6e155abdbb76ce77d42 SHA512 a9e471d16e4ebd10326b72341d78f3280c0624936cebdd225a14a027ab577153a131bebec6c1c1bd643c393a80d36adb06bd51cad08ba1d52745bd398a01f6a0 +EBUILD gentoo-kernel-bin-5.14.15-r1.ebuild 2542 BLAKE2B 952d01614fd47248c95267e650ccbca6f01956c70ea8d8837bdf7ccaede6bce5031bb2f767269bb5ce455914cf6e215bc9a6273ce914ac71b5b5da4536c97f63 SHA512 f7b4e5ce1533646eac42ae849fec328feda9afb10229b878865230b72872b6865202a9785be163216af60e1c67dbe56a197723d06795ca3df311de260d46c453 EBUILD gentoo-kernel-bin-5.14.15.ebuild 2677 BLAKE2B 92b909253e380e0ee1bf79916236e89b71091c163f5b375fb9fb374b43552dcbb2e824611fe7c3c2eec2eca1782e70d72d8bf3a681d2d6e155abdbb76ce77d42 SHA512 a9e471d16e4ebd10326b72341d78f3280c0624936cebdd225a14a027ab577153a131bebec6c1c1bd643c393a80d36adb06bd51cad08ba1d52745bd398a01f6a0 EBUILD gentoo-kernel-bin-5.4.148-r1.ebuild 2544 BLAKE2B b72fef3779371e9ce34c9b0949dec9f4756be306c58bc8ca7fb38ed186be16cdf0c88fee3212b255d82a63780709770bc18ffe6d40eeb0026c17c8fa7e8647c5 SHA512 3bb66d146c3f03b7f538416cb291cfd9f5cb69f774f8236eb11440d9cfcb2e2a718466af983c009bfd4c08c557124c532a6c11384c5f0066fcc3716ff0fcee64 EBUILD gentoo-kernel-bin-5.4.148.ebuild 2675 BLAKE2B 7dd3210328d31c0727a866ba4d939c2944d0782f9e4193bb91b1a548092ddf632eb2d7a80132d318cfd6444183a3277cbdb5f2308bf58de118c21ff36280fffc SHA512 c1c1ca765d27a7f5fe006a3df33b6059fcda6d5897ddced7144dc81ea1fef67fcdd0e5bcbeac7d4762b438098968af81761e9350d3a3accec3e425cab7303f91 EBUILD gentoo-kernel-bin-5.4.155-r1.ebuild 2541 BLAKE2B 582eeb0da7630287ae863a8787a85275b9e913186b46f817edf3d37cbfc19c03517df23d1457a23eebd3c4a8c7875cb6a7869fe50c6e6d58528eefc6978fb167 SHA512 dbb6667f53bef8c8d1c9ce2cc38b79aaa817a1c13ea36c7802dab0c5c13bc75c3f49a661b11af0fc111d71f684512411cae7b99cd7e56f2efc7bee83155cc0c1 EBUILD gentoo-kernel-bin-5.4.155.ebuild 2676 BLAKE2B 8fc84b7a15fe2f76757cbf79589c6f7b80efb8b833de753a97ab27ab547915a17a861780a9a07555502f8d24bcb24908d5d290ce6e08ddace424a80ff6883efb SHA512 048322b24038069a90aa7a17b144fe941f95217266394417261169b5f5b15d8c17eed3921e3a351f155e3152d12a4e3221a55d323ee73613b82f75ab986f5cfe +EBUILD gentoo-kernel-bin-5.4.156-r1.ebuild 2542 BLAKE2B 6d28ac98d98db7ebf5bfcb35c7a2c223b9bc82164fca1a85ce89e987f285b1eb5c8b1848dfb9b185c6ead189d0bd1a6346d44d8638b71dea1ee0083c3e879e02 SHA512 847c2545daa9a7d6cbf094aec806ea00f7e4fcaa4092342d69d2e3313e3dc85adcafb284c5f9a654446e5062340d4b96aa1c007003ce1484d32a8a9e02a7906f EBUILD gentoo-kernel-bin-5.4.156.ebuild 2677 BLAKE2B 7b08f219678c5b66d567a22360c3f23a82a9b9d12291eccceb0f400d8a2dbf371d3bad76f44cf52c63109a95de4b58288c57b0f89836be356d83394d5ff9bc13 SHA512 90f07d1dbf82b88c1e989c1e6696534d7908bab161523af69ac02e987f5aaf7a253831709e55d42823bff7bccc32b173cca1a03aea2f542eedab29d61cf5ed3d MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.76-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.76-r1.ebuild new file mode 100644 index 000000000000..9f8ae493e215 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.76-r1.ebuild @@ -0,0 +1,113 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 6 )) +BINPKG=${P/-bin/}-1 + +DESCRIPTION="Pre-built Linux kernel with genpatches" +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 + arm64? ( + https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~arm64" + +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_unpack() { + default + ebegin "Unpacking ${BINPKG}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${BINPKG} failed" +} + +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 "usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "lib/modules/${KPV}" +} + +src_install() { + mv lib usr "${ED}"/ || die + + # 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.14.15-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.15-r1.ebuild new file mode 100644 index 000000000000..acaaf28e30cb --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.15-r1.ebuild @@ -0,0 +1,113 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) +BINPKG=${P/-bin/}-1 + +DESCRIPTION="Pre-built Linux kernel with genpatches" +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 + arm64? ( + https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~arm64" + +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_unpack() { + default + ebegin "Unpacking ${BINPKG}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${BINPKG} failed" +} + +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 "usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "lib/modules/${KPV}" +} + +src_install() { + mv lib usr "${ED}"/ || die + + # 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.4.156-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.156-r1.ebuild new file mode 100644 index 000000000000..fe6e6023d323 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.156-r1.ebuild @@ -0,0 +1,113 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 )) +BINPKG=${P/-bin/}-1 + +DESCRIPTION="Pre-built Linux kernel with genpatches" +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 + arm64? ( + https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~arm64" + +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_unpack() { + default + ebegin "Unpacking ${BINPKG}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${BINPKG} failed" +} + +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 "usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "lib/modules/${KPV}" +} + +src_install() { + mv lib usr "${ED}"/ || die + + # 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 +} |