diff options
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.33.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 cea18fc72af2..875055413166 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.10-34.base.tar.xz 1094372 BLAKE2B fc02d1344658a518e588c8289471 DIST genpatches-5.10-34.extras.tar.xz 1772 BLAKE2B ed8c15560842e9de484ee8a6796723f3e5ab9c2d4882b318f1d2ef2e8c273b8af1687aefc3bc2e4e502fa81bb3c662181c6dca5cf1ba3e9350bbbe3a5709957a SHA512 4abf0269143ed8137dfcbf01fc18a2e033c7ac2d241834f4ef830c9c04e4aa6e94ea8c2509971893b41fb31da17c715cf58975b5c57682005a29632623499d4e DIST genpatches-5.10-35.base.tar.xz 1115708 BLAKE2B c07da3088341dabf91bb2e6935868030dbf50ddeece2389e1d24007fff30507e3a9a29d4acf25362c1b8a79015ae428c54a6a0062f43ed759c09e5c35f8b3d54 SHA512 e5e80de9f8340c25ee57177be9480f13a20a5b2bacff8f486ac499638557c1992db28d9fc8fa038814a2364204e4d905e61ab5d9514c9d31bd108b20def86809 DIST genpatches-5.10-35.extras.tar.xz 1772 BLAKE2B d53e3c4172e37bb0ab0a7d5010438fec49735d02ea6476a05873673d4876086c7c2b50927a6c728e17142649b32085937ca1a8aeb1ba98ccd1ed6158ae86b4f0 SHA512 46854cc6dc4f72efd8475e7eac8ba3c87e800980dd612380bc64a3958cee89b1339a079e7fdd08c5d50303db22f5ee00b371c3989fd39503cce82aff8081de9e +DIST genpatches-5.10-36.base.tar.xz 1128612 BLAKE2B 8ffa236953f848761e4f74e35096dea4cddeead895d7fdb092665112a0321989ee437a4899f7728a644ef8f44f68677418b65bb9b49f01d5f7826b8d1590df64 SHA512 3ba39383654da7cdcac689df52acc3c4f9b596c08630aca61775c10095d98c61e846689fc1486e048b8753ac51ce7f41c1262ad3a57e9d3f7058e8c401cb17c1 +DIST genpatches-5.10-36.extras.tar.xz 1772 BLAKE2B 47a29ee8be54c19f7562f1d8d6be3488cb8b470e7eb9d3957cf9f67ce7adcd59e1e705aea9823c2e817a8bbef5eafa0629314f50b4d44b329437f63bacb70e9e SHA512 3258596692745afa4857933ebeaa06a53f605ce640d79808ba45d40f3b4cd26dd2bec458d17c16da74f706cb296e00e860c9dd968c4477b104406b956428ac6f DIST genpatches-5.11-16.base.tar.xz 567216 BLAKE2B cee97030c5e59b9d7eea622bd4b8d99f8ec86cfb5e559abcee5184d0fc9acecc5f3b048f0c8f8949f5ea52169ad60e182c2239778d4cf758f41daa1cd593fd71 SHA512 f3d320de79222c26d5fc16030752fce85d3b4cd2c9a769da59aec64f410c1a63f76d7c4c429932a046a4611a12fab2c2f259f7ba4821b7381d1e0a7a2c2df9d4 DIST genpatches-5.11-16.extras.tar.xz 1768 BLAKE2B 12e78dfc00d3ce8e0b9903f62a6c4b1219e4559a9e6e736d5e4f807a429d91531d39e69f46667297f65824a074af4cf7665e741086efafff83bac195fe649455 SHA512 091b3f9f3589a098c35c3172f1192c56b774f6fcf90c30230a4a6de237db14895f13a75e51324acf83c5b5d8af14f636034eb3bbb33b6070804adf62ab7ad194 DIST genpatches-5.11-17.base.tar.xz 626484 BLAKE2B 4b6d07334c1da48619d820b102df5bfc2d15113d97415e9ad789e8484a39a66509cc360019368834c525a66af0b577b165c5bb898756a60372f1bb21802ee8b6 SHA512 36ca2dcdccd03be5f3c3a350c4f721d5f00adda12c87ba08146b13fd034644ed82eb9e3151ed6210fcc16a37a7ae10d4353be5477a320110e8d89fff74218ec4 @@ -43,6 +45,8 @@ DIST gentoo-kernel-5.10.31-1.x86.xpak 57256746 BLAKE2B 5c9c42e714f9b896ae2f01f60 DIST gentoo-kernel-5.10.32-1.amd64.xpak 65550906 BLAKE2B f03d5f538112a8c9628095f597264f2aebd996d9e1a62e11cb56e056e8452d718a8c7e99be835088ec38d5d863c66f296b157ad31a163f1a241f0a7d73c9aa5c SHA512 e04fc78b486ceb6e7eb26c5fccfd96d5eec16de2bcbf6f42a18725d7c1d034f0c48777ad1162b4bb9dcc031b1e781af9138233711c9bcf773714215835fc4194 DIST gentoo-kernel-5.10.32-1.x86.xpak 57243485 BLAKE2B 60cbb54acd5f311f1d79d997c1b030944cde923045d5f2a06fa3e260365ec1e820880129a052bf9c4e726d341e89bebb8983c240c2dd88aab74bfcf8ee5663f0 SHA512 2cc92d68c9d8622f55d11ebb6eb1364e3b626b0158745653e5430af21e4bfdce5697a94e30dd10d85103276021c4f3c0e1fe84fe03c44d66a37b96e81b61e9d2 DIST gentoo-kernel-5.10.32-2.arm64.xpak 59279295 BLAKE2B 61aba86c3ab67ddcea5bae71a12e354aea1b319a2bb0acfdea062bc036cb9d7880c1729000aa961eb6bfe8b1a8bf43c4a4e0a15b620e0a9940bc19b56151d271 SHA512 26345c3246e710bd7c9106269619850e37749afa8f8fb6364230cc45486f614e18deec356b35bef1ca311623cd87c396285a12e6c6bb7d0908ddbfa09fdba5cb +DIST gentoo-kernel-5.10.33-1.amd64.xpak 65526470 BLAKE2B 205070bff9d1a7f7e58a26fcca367c325272d0f7e0cab1bda70fbe451ee7f5ee9a9a52d89cadc43d879e1d026a0feae2d8cd3756b53ab1b94f797af88bd3b038 SHA512 d01f6e9e00bad450cc71e2cf079d0306ce2d3f234d477cf44507d984c64efb77be3b20b27c05d81b41cd3329e6bec654a284202dd409c74f625af65d4f1d9c15 +DIST gentoo-kernel-5.10.33-1.x86.xpak 57243809 BLAKE2B 209b1c49bb4d43ca73a438b021bee5274a003caf6c94fe1448f61bd39ba4ce6ddb021125b998e386edc16662c5266945c876b2ad4d5986f177088a2425a31895 SHA512 5399b3788dea2172112d3e52082bfd5a2120accf50acdd0a5a4897e495413b706a237c5f82ae6dd9a6e8a95c41aaa1f06c475043fa4c88bf81dac11b1fab79e9 DIST gentoo-kernel-5.11.13-1.amd64.xpak 64685029 BLAKE2B 7d6794c5fd15434d2ad93d36678476e4a6aa3ad9ff77140a0bc8d74b0c87155898e8f1f76dfd40f72c878d9ddca7b7f1a9f0d4be2a600c5e2c18a77a3439e9d5 SHA512 d8c0fb975ee35e6d71b3b255800179805c9e70bfa7ef5299a38145c6cfd4f60720281c70f2d16a409a10c4ee6c6f26ac2e0c3151b114ced91c747371b59885b0 DIST gentoo-kernel-5.11.13-1.arm64.xpak 59816443 BLAKE2B f3bd4b929cd103f95b91f0c0f28f324f8e316e1cc4b310742d159b8dbdb6c288d9424984e0859873924ac7eb34f12278b2086ad48fbf11da955f0b390dfda619 SHA512 6aae6cd29857eb897a167e359f9628692803bb75a0a1f235468a1b95e9c2f3d9525f33d6673b5c12edb5d9feba29210a79d8030d151a5b7260119a81eef57e1d DIST gentoo-kernel-5.11.13-1.x86.xpak 57618749 BLAKE2B d7e3d71d8eb7c35b4f86bb95cdf945f4fa7eadd0b87e380ef37f3b63385a15566246e91f12bffc0a7e3e42285f702cd99387fd9b7e11cb59fe3bc2a9da83f160 SHA512 51450b58469fdd8b663ee7b997b392232c658281fd243c2508f8feb190a74f5ab952b1041e64a9b4204cc1e08fe328f06262ca46966e16a0f0c962b389254fc1 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.33.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.33.ebuild new file mode 100644 index 000000000000..6208453ad7c9 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.33.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 +} |