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.65.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 94b9d3b2c879..3126d3291779 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.10-69.base.tar.xz 2119352 BLAKE2B 5c861ffe65077143e0778ece1334 DIST genpatches-5.10-69.extras.tar.xz 3852 BLAKE2B b950a181ccd370fd35bb350f3f9ad7d1ffd7b6b9d4d0ef2cd3c0cc9bcccf663915bd7f155d47f2c083ca929b0c741075f4d4c5efb8dc3550b9e197eef57ae28d SHA512 49b3d652d4ed9d074c316ac41fc6afd5df60edde44bf8999cb4dea7283992d056fe3824eb16a9d7881a8a058198dcfbbf6aae65ce34d051e1f55f4cf2324c178 DIST genpatches-5.10-70.base.tar.xz 2126552 BLAKE2B 610468f17ddcb59e9c5cde16b7fbd10fbae4483944de78299157ffd38b27e6ed6061f3bb2462fa3f3afad418d1202c60c7400e19ba6874e46550fc346fe3ede0 SHA512 1912be230024055424d5a0ac7c55bcb3e2ea2a93fe4fb1e3f1bebb39749b765a8121b5443dbb3159b9b13080e3c153b0c30829f378c697a6f7622e91d876083d DIST genpatches-5.10-70.extras.tar.xz 3848 BLAKE2B 8a099c38dc7c5b9662d049d42b18e073e7cdb1199b20a393672c9e3ba342d3453a23fcbc1028ad63b757e8a5cf0807767cc18b3bd4c6aa5abcba3b4247a2114b SHA512 960190d4aeac06b156da135e390b949e47227cc0926cbadff0c643395deae61117eb025608a5c621c6be35edef71d670714c382d151fdaccdcc4ad063fa51654 +DIST genpatches-5.10-71.base.tar.xz 2187796 BLAKE2B 15ae0bbd5c6686bde24603a03209eb82b8cb4db57599b8f30b3a44701df32d4f541d0c054b9b461f43a64e4c05704d5dfa7278c9b571924f03c6ed64b2330bd8 SHA512 e90c0585b87608bbd1e87b0f10d199eb049560bc1907e6afa6e0d9063ec518218af3643ada7fd7c855ee4a7dd5db8e62449267bff3adffffda7868b4f89cf381 +DIST genpatches-5.10-71.extras.tar.xz 3848 BLAKE2B d6bdedf650b6d7d8cbf35dfd7ecb22db6f1967875e6e12ee79412016e21bb6884ebcf1bdbeeae97211f30c6fdb97f4c7e4a89b1f4a944885a5ce419cb85adb4a SHA512 439f9e6aaa226946015d58dea7c5cfad354eeb342172e5632027900a74f103d30d8cb7140ec2e9b60168dc8120bcb2ff10726e14e53f64678e8ca0cea2931b39 DIST genpatches-5.12-22.base.tar.xz 1085632 BLAKE2B 328a25218394a93755d29335f0a827faaad2fc823bb25bf8ef36385eaf8b30427c4075bc0074969fe0923a975d88d7573fda0b8e1288e787f03afc6cc77d25ac SHA512 08a71f09955c92bd92f4c67a018349a9b1d7ac5e1dad7efa3f1cdd2968a4c82042308613069e5bb65a0c38f19d05db5a0ff25d17726809cf12ba018fff5bf564 DIST genpatches-5.12-22.extras.tar.xz 3420 BLAKE2B 61d7d8bf8c88a1f0ee16efd07dca0fcb82a48574dcf545421e5e8302128acd5e28fbcadc4d1a82f0b2049491988691e3f8b85c99d50ec1c81a4a4549c96b9651 SHA512 20a505a8247ba33f8c0c201b809b22073ec589f4d83b1089c6787afbe42760443a964fd12fbe2dc6ec778c6d3067db04d93ec098551ff9ed6e5030d5830fce9e DIST genpatches-5.13-15.base.tar.xz 712312 BLAKE2B fa70753d96944bfe43ae352592be5fea8b8bccbac1f7412a241d951b5009e4643e12123ec3aa6864b9a884fffc744c8ec0be84dd499a29dcbf3c36446b013842 SHA512 814b3766c5330b5890e63ab47399e91981c18dccda37797983076ec860e8d2056f112706a07acd1f5c0f72a5417a8713d928b473695f6669fe734de025048015 @@ -43,6 +45,8 @@ DIST gentoo-kernel-5.10.63-1.x86.xpak 57245275 BLAKE2B 8b6632fd366ad93ef659daf85 DIST gentoo-kernel-5.10.64-1.amd64.xpak 65498947 BLAKE2B cfad6efd8460bc60fd0caefbd3c5afe59484ab24e53840567769be97cee868f1a387144268bd87ab1f4d1ec9ecc3cd87ba190a5fd7a0702c71e38dd3e5de489f SHA512 381c177a4b39a2ec03baaaefb9b59edb46ca8e74a52aea93b59aa8c58611a78c91a192dfaea7aab365d2895aa2e19791ee6e68f4ac3c6ffd5eb2a9deb8f1c0a4 DIST gentoo-kernel-5.10.64-1.arm64.xpak 61239142 BLAKE2B 32abfe4007ef3653a203160236cb5354f6168e8c28f28fad6e8a3c03b3fa0a205ebfcc94b8a839b80a7357284e15ffbfcc8fbd27c946c54acfbf7a17d2b09436 SHA512 0b9965ad49b39a7ee86ececa81a38be8ebb90eece0ef1f289bbccd28e47d9e465821f6274cf9a2736a74b76836e9499d23bd60920cd16be7bb8142c51b899967 DIST gentoo-kernel-5.10.64-1.x86.xpak 57233627 BLAKE2B 0c7253729bd26e4e47821b5ed81dd696fb7a714d4f2613dae829b04e9dd7b4986c9a92c388e07e2628e74c50a20369ac92bf5b188d4933d3990f51e726305570 SHA512 d73cec3ef255a5338a9aea29daaae626619a1d33cb00a8b28c1b1aac17b5a4b48221c606be1320ec5f4b6851aa2fd8566281e69fc8aa7eea3e2eb89b1dd2ddfe +DIST gentoo-kernel-5.10.65-1.amd64.xpak 65506456 BLAKE2B 4c65d32ee668930a5d856d5cfaf17e3686e0efa384ff34e41d5094434733cd2ee18e972f5497a6858b06aa3db2bb83dd709a7b7a7142caec23034c2eeadf6dbe SHA512 b365637f005724d94aed61d3340ce0aee592068be9f1d429208d82afc3076201f2cb7bb29e6dc99a6c3ba657c395e24ab527d8648b773b806bf59afb441fbfe7 +DIST gentoo-kernel-5.10.65-1.x86.xpak 57233550 BLAKE2B 3ed15cc6cd28dea01806b954c0378ddc83f79b010109ac1255eb3e439064a04d57974b67e673cc587567484eaad4163e5297a462214665d194a64757610d0586 SHA512 a513907eaee118a3ce0170c75fc8aa76c98c0f8301a257f4f4c967053178b3dc053de7187d0c4dc0b6be4ce1099d2a80d8bc6badc429d96207f7bc7300931824 DIST gentoo-kernel-5.12.19-1.amd64.xpak 66346655 BLAKE2B a03cbcdcd1a90d48d7e11e988d03efa43980f4d5d8af4b74e4c81f195faa01803af45fb38f7dc1f5af7e9b5338a53bc6f34837c37f7e853c088ec6c1dc084e44 SHA512 3d7f78c488ecee2532f8a8ad61e3aa0f5e238e4cd520d29288715a3dc5c488670d7378f3dc5bc110252dff10108dfbda27a54722c6b044151999428d002b34e1 DIST gentoo-kernel-5.12.19-1.arm64.xpak 60043529 BLAKE2B 8746081847a39e1847b8e9f35fcd68565370b116d6418edf803c4cdca9d750ac8ada58c4a7fd377480a1c75b3c805864d419c02ee21675bc77ac195731385a18 SHA512 d1a8a9210a1ab3d3c1894be1fe524e64b859b0a02763feacfed1a24655540ade6c28af751b23e924fcc04fb9abd56e84c43d634ad80bbb4d5de79ed533b5ea50 DIST gentoo-kernel-5.12.19-1.x86.xpak 58076509 BLAKE2B 0e4aca91c834b23fb169bb6fabab13130de811c15f89e6341ad2a36ac230071ced6c6d7bd30be0f0f3860d09968449c1933cd33ed021213c667304070b80f9a7 SHA512 9786f106ed59661546d9f035e25c39f4c7a4a41f51afa96700867e47bab19e148e8a42c79bc3b7780967c2f82f1fef6920f220fb5fccd6f267a2c6e6a3081126 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.65.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.65.ebuild new file mode 100644 index 000000000000..b23f3e054425 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.65.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##*.} + 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 + 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 +} |