diff options
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.17.ebuild | 117 |
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 875055413166..7b7768e49bd1 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -18,6 +18,8 @@ DIST genpatches-5.11-18.base.tar.xz 631896 BLAKE2B 3274495dc2195c00229748696bc22 DIST genpatches-5.11-18.extras.tar.xz 1772 BLAKE2B 016cd938f17a67dc1b402ae5fa4aac1aec6539b44122b6f843bc0ee1793d4c27307e08edeef8a967c42819c40a594aa0e93973cd320752e26d24367555967591 SHA512 bed57956cc6b61222859275c3e4bc0dc3d352683b5da02777170450166840d7a16a1418a7505344bdda5da157ab500d0950bcf7c994d29e97faea7b194e37422 DIST genpatches-5.11-19.base.tar.xz 660328 BLAKE2B 89eea3501d394d62cb116afdd0350985403a98edf6e7a479bc67efc4888d826a4a7a46c0d28e4dda5685af4095066dad26c639b4c66265fb68cbdb2cc9d9c823 SHA512 edd96b0ae213dfe7ea6d467cf738a0a71bb032914ead77646dabe512adb9d36ea33e479e28ebc0ef3df4ea96fa1d2ee2830bacc0965559530eac9cce0ede4b93 DIST genpatches-5.11-19.extras.tar.xz 1772 BLAKE2B 4d5771f406d8df3752f7512359e4f98a2f8caa07ef230785da07ba5c4241403f940a856b7be4552ca9a48358573621b8bb8cf069077bee0282554ce60d92769f SHA512 615a895738ccdea871dc45502da6695f42d28b6619530683100994053dbc01b9f0d3fd2d550f73305cbe8e53fcf3c1265364bd17de926107a1485302f4f1d65b +DIST genpatches-5.11-20.base.tar.xz 674760 BLAKE2B 934558838ae3623f02697dcaed81d66eee7259c6cffc35ab1102336914d80cc11e8f757382fff6b56a7355008c0661ba2aafd693a4d689502684e4c96497278f SHA512 c227c4c5ef0197aea5ddcc10b457395af206aa3f305fb66ee36aaa9c858b025c1e5e7cee1e711d5157afd7dc561846b945186ab0dd1274daafbf275ddc657e74 +DIST genpatches-5.11-20.extras.tar.xz 1772 BLAKE2B 720a9b97c773775065b1a050594bb5f286d985d33b6c1da624fd0771fdb8cdcb3577fe17229000a710dae2789a7480402b0961352a21d40d3940640f9e02abf6 SHA512 063f220996d8f852a5562545f4217f36f63b83cf7676976820500b60de85f45ba954bd1c637d7f453faca65d1c68daf77ee876e30e502fb2a9cd4d5ef0c260cc DIST genpatches-5.4-112.base.tar.xz 3278220 BLAKE2B 11c4a33da1081ce777019604d06740368895e74893cb88f4ba6e3988fe3204f2d5a0ffe2204f77aed427ce8decdd77c5ea7dd374e893cbf7ab346b8fb87a918d SHA512 d2c5378076390358ec60346e832a9454f1b61e67c68da4c6652d7d6cfa29223417fd0b95ea526cead86af5692e4e702a0ee5a169a894d04644f95bbbdd7d727e DIST genpatches-5.4-112.extras.tar.xz 1768 BLAKE2B 7f77e833bc17035063b98d89135455fe6200eda135a92221c0f2eef63c6b41235653a8d11a7c99e542010c2195c1af8f5ae84a7da27d159fef67be5192537722 SHA512 6dda1c917736f8a45b1d79e3d7f30b243f922b274425975f520d1d2a5a0fb95b0ab242e0f24bd3a5e0b09e8eac76b6f71eab94cbe1747e3162ce85d892a6da5c DIST genpatches-5.4-114.base.tar.xz 3305288 BLAKE2B 345acf1ef846178a5a70f385f3d9c2dea25b1892fb755cbd43c78f3aa553097294549a5f24e9552ab0d37d5086fb58e98b72db5230ab8506e725a0908edd5143 SHA512 fdbb6b9c10eafc3069b72460db1209843ec4d4d024548a384dca72592e3c6e5e4eb3b9b34058266499da26caf0a168a1469de7bf4934e0855c6a5db1f4d8d69e @@ -59,6 +61,8 @@ DIST gentoo-kernel-5.11.15-1.x86.xpak 57616556 BLAKE2B 8eeae06459bf26979992d424e DIST gentoo-kernel-5.11.16-1.amd64.xpak 65844402 BLAKE2B 13a0ffb59cfb9ade1f99ce6ec03c55e4e9409cd3fcd95c2063e1625f624062eeb114c2cd4ccf071e2a5119e8a6d2f5feff1f93ef924a6d2c25c80331da888bdc SHA512 f4c90f3057e7c43745708b3213306d0929f43bbe1a193f5c1a7f54a3937f40c58d4092c99f9997ea3068d1b920a1a1af4cdd60ee0dd7b2621dfcd08a0bce0bc4 DIST gentoo-kernel-5.11.16-1.x86.xpak 57639335 BLAKE2B 2bb1d74691e8808ed4274b617dcf2920f5b5d1e1997ab3e336afb2d909dd4221a8acabe58b50cb90853e556caa64a2240cf6844cfde515286e7644a1463e065f SHA512 8cb39baef55953fa39a8ff6884ba27ad7555472bdac99689de1965e247fab9cc1874584a1b023457d44a80b4c7482bb92133f016323be94fc93e23b34f116952 DIST gentoo-kernel-5.11.16-2.arm64.xpak 59712835 BLAKE2B e87d91e937a21779bf92ffb97c6b6117db5006610923e7e037106eca0c2f5b3db199f32c0b0d5c9b26b8f7714e1712b6c6395a82f02e222626ed17820a6ec8f9 SHA512 6fc39015f785ab36f52dd667eeb0802628e900b123c4723be8707efc2eaea021fd210d56cec16f52b94789da576206c4d0830055b72a03b82c238d3ce26a31f8 +DIST gentoo-kernel-5.11.17-1.amd64.xpak 65875998 BLAKE2B 7cc50e3dda86d12594b42eff1221e437d41de7a1e7e31255741e3e43b036a6472f0d11e31de7e5a88cbb5b78dbdc172261aa7a91f6fe0299ebd91724517480e3 SHA512 0bb7d5f288defb7c5e01a7caecd1ae0fc8ac32e367d0910ef38c0f006efc841cc60dc1c83958db5e44452d68f6888b815f498eca0c4a6f2a16702581c71e536d +DIST gentoo-kernel-5.11.17-1.x86.xpak 57637749 BLAKE2B 9895d3b82d997f882684822cab8d726d8766992b2c5c7d4012135bf7274e51a8ae30e531d34fc2d4da679361785afe947e28cfc17154ebba965da96b9aaf472d SHA512 fc21308734dfd9968d97a6b7ab12c9673fb6b5bc8fbb679aace38ddc8258e132c62eb5258d96ba0d5b771326952ad80c7be790fc1c3a8993091f04d27c6a2d08 DIST gentoo-kernel-5.4.109-1.amd64.xpak 61197533 BLAKE2B d192b84c8e00a992256d44bce33975e29f7ae330a62a5902df14ca08ac5222c3bdbcb1ac27df36db615deecd7af7e264842c2aa358e4cc54e830f3507f5ad034 SHA512 33f192621fa3aa692e7b77897e57e50c7af81cb3ba6a40fd090bdafb5ed7b83dc83438028fc6999723e7f82a22635462746a92ced5439f136c56e0559c85b945 DIST gentoo-kernel-5.4.109-1.arm64.xpak 56430663 BLAKE2B 6079b762ab5cdeb0c745a1a030e4a3af36883588c88dcb8c8cd811aa47d7cbaebc573b152f01fed451dbbfda1ec89ed400270e6fda4e3e1df1aec497b3f7815a SHA512 2d29230577255473618d698363af8c7ef8dd9dd3dcaeaec8fc8802e453838d2c1685e001a6ceb784f6c6ab77fb2b991366e213fec9c45b5763a3a5f57674cef7 DIST gentoo-kernel-5.4.109-1.x86.xpak 53002823 BLAKE2B eb9548ce9e285fa665e2adc01f33198b9f2b2ae1ea21ddbaf10c9a92664ac6bb12da1c7c6c1923e2efe4746879d3ee27b75f560a69d958465fcea03ebb4f3a7d SHA512 f3848ac5f9ba9e04af65e1b1888e7a2b9836dfeb8ca3f5a692146f524f8e8d87d7b6766183879c879004d8505f013553d13885ffcf97724ba6f1df49c724af3f diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.17.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.17.ebuild new file mode 100644 index 000000000000..6208453ad7c9 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.17.ebuild @@ -0,0 +1,117 @@ +# 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##*.} + 3 )) +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.x86.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~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_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 +} |