commit: d01e3f55ec92d4410b5675fcb9150d94ed70e601 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jun 12 11:31:49 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jun 12 11:32:33 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d01e3f55
sys-kernel/gentoo-kernel-bin: bump to 5.10.43 for arm64 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 3 + .../gentoo-kernel-bin-5.10.43-r1.ebuild | 114 +++++++++++++++++++++ 2 files changed, 117 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 7c3dfa5b028..101377d9c49 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.10-44.base.tar.xz 1463796 BLAKE2B b4e002718b2542c1806eb89cd552 DIST genpatches-5.10-44.extras.tar.xz 1768 BLAKE2B 287454aae7ff60ac375b570e5132c33f81471348af58b999ca1355d15e7fd1f0839c369e28e18496dd0f9a43d6bbaed03318a9358a5b9384c3f27c109f7447e5 SHA512 d69a0a32dbd79eafe4168bccf55c0b0765e5311bd2f81ef93ce4f709990b6a789eb057b2afac7364b18e5f811b9610e7d8e10efff07a6e396c8e897b76a50378 DIST genpatches-5.10-45.base.tar.xz 1520656 BLAKE2B b2dbe0274ff6a90e2e8b5edd99b1505654f4e7fa777e8944a0e7ccbc23c3c8f938e061d470adb678f4a177738b22d855812c38890592a55f6746ff1f52da4e93 SHA512 b997601f68c852ceed6307c2966ba7eb6f7f4e17f30be38153b6b6604d0bea18ab0f4f66a1bb79474b0b330e30288c441026df18bbb761acb071b0f8ab8f00c2 DIST genpatches-5.10-45.extras.tar.xz 1768 BLAKE2B c7a3221f2c330d1463f88ce23d0ac70692ec4f390b7a10cb6ce6be19e948f8595b2b7ad0fae90b4cf1c94bb8c1469be545cf3352b91e99b93cfedc7cfcc9d7ae SHA512 51e28cb3d536e4df5743c55e1f95803a44ffaca7da75ac73dbe575051ddf3198dff4c69a0bf32fd479962ce518f5ed57be8fc3c71f426edfafb814c350f16393 +DIST genpatches-5.10-46.base.tar.xz 1555716 BLAKE2B 51ecab1f2ea13578ff938e82338654560f9d2bd76dc1be42611a325a02cd715dd3388c1ba648d9a54eea9fc1a7bc5d5a9022d9b2cb85eeefe6bb36b0486ac365 SHA512 1d63725fd225a8b83977cd224a6db73c2163d0ea977b92f9b8c7e6a47c8d68bbbf6e1abb7bcfc7f25724717e34edd132a550920f48c87f169c7614253a4c9cda +DIST genpatches-5.10-46.extras.tar.xz 3404 BLAKE2B d03f28caa10fc24b4623e0c19c5dd1161f653a70868b0990c75a4beb72f8755b086f4e36da5806c3d6fa269e547f1aa557dea25f6dc94bb74d295ecdcfe33815 SHA512 dc6cbe9433e8e7620cbb39245249c8f318e6e40ed5bcee1aace03981b15d9ccde5eb0ede9ca2ab881944a27ac1e480fb3991dd183cd292e74bcc43370e5e667a DIST genpatches-5.10-47.base.tar.xz 1555884 BLAKE2B a4078ace7edfd91eb3ec2f63cb121571b2d5137837a33c96ed5e09201f34cf82fe3b7e88c6684f40a2125d88aeebe275e826ccb2d63b8bc96863edba5055643d SHA512 eea3cbb4b0a9c5979f4a7504eab5eb7e041601c78d3c1f4037c2eb91fe54e7e73c7bcbd88f6e69dc859f9eb7d029bc9f55b6ffa652bf6bc742013fa8d3b0c71a DIST genpatches-5.10-47.extras.tar.xz 3412 BLAKE2B 779b0a8bb908156bc902106a98e4308b3ebfe42ecfd5d651aab4dbb95c0ee890e353d26d51e1fdb7c7305419e8eda5103a01405be5b015ebeccde869798c68a4 SHA512 dadec8511140903f38e7d6657f3e8b750382cbb18271448d3d23a03962b0ceb4b70950d6dfdb643fc2223f53254b824a04d2eec540626a20a50b998a9ddfdc13 DIST genpatches-5.11-25.base.tar.xz 1030312 BLAKE2B c3e0f5840c32292d36be31a8606934bfa1ccb7e31f04cd214574009577907d00912bacce1f85dddeda77ba99f40f61fa5aa5259a693c74abd63a05be5a44f2aa SHA512 5adbe3770562b57d7180a44ccca8e665cc5b0d9ba5168c4b3555b348708edd7469464bd770124d9a8641095bdbe786d843ae3da64b845d577999c9e40360c970 @@ -57,6 +59,7 @@ DIST gentoo-kernel-5.10.42-1.amd64.xpak 65510073 BLAKE2B 1fa0b8fcb134a2d30360086 DIST gentoo-kernel-5.10.42-1.arm64.xpak 59235320 BLAKE2B cb5cf9a8c5717ea9269fc6b285f0ce8c62be416afb553df15e0fa2c2ecd734bf9cfc5a2109103c4bf30493cca165b57c87d5f439b8de1997476a526dd0ca268d SHA512 d0e1b6778c5650dadb07df5638d37375749c4470580603699fa602af9e96fea752bd219e0effb2020df45c4cf1352db366d083361e6d249e4dc69a016529ce85 DIST gentoo-kernel-5.10.42-1.x86.xpak 57252640 BLAKE2B 474affc3ecb668d978593cbaaa7d58e1fdac9c933797e5da57de71e43d49710986b6227938778bbdc51ff9b443137cf8ee6e9df1abc2fc096af9361c79074fec SHA512 0c321e5928469badda460f480d6a6d5e8b8f9e0572e3c834fd9aee7cbe49f28ca6b104bdcde84c5929a84a8884947dd31b9db33e8ad7183c3860fc120010148d DIST gentoo-kernel-5.10.43-1.amd64.xpak 65520009 BLAKE2B 9d71c795fe52691e17dccadc9a305f9f17234a48b9f6e214388752ec0aeb0ba69a61be21e7fe0f8d7f0544dc8941087547c73fc4c9ffc6b6ce22d1a48faae72d SHA512 9727fad904712e4c343608b7648be662b2b1d7d9f086fe8bf302074e86c8e0339b27e69a006e5a19152d1233594753732f9c79b3b6ffbbdb35cb04da375f13e7 +DIST gentoo-kernel-5.10.43-1.arm64.xpak 61590121 BLAKE2B d55c9cb746f754ecdf1c12cd814dee77c444a86f94c9bfe15a566c7f7ee2e19b8674c5ac0fecc5042137de87e7af7102ffa4721ab282eaed3584ab46c99f669d SHA512 e8f84d16e506786be5fbaef1171283864292899338ec44e0408d960dd56a8cb87b91282879e39cb7e5dc0756aa3d76b551eb157b0f46f72b6cc119853450f42e DIST gentoo-kernel-5.10.43-1.x86.xpak 57258100 BLAKE2B 09b65aadff24fa8997c3e63a5935d228e67292293fbd664c833391708a073781954c8676ae59cf61b19af9b25ccf248297405fc96bbda296da77073fb74dd623 SHA512 08bb9c6cd4d62fd75407877e793812906210e8cb9f0f71c4f9ea8d81f62679461511df601fbf78618a1654b10d3784aba3a242afd68f056631537daddfeb741d DIST gentoo-kernel-5.11.22-1.amd64.xpak 65882786 BLAKE2B aa98de82c4f47a586474f6f888a12fa3fb4605bd3dae576a36a9edfd10b669cb586d975dd6dfd4fac0ca3906e56a14250effb44b54ea6646898b12ddeeb6ae28 SHA512 1cd5f40f7ae0500158d05e3da14788a407faef9c471001fa5cb403e6cbbd062130645166cab28f3ad79cb6318dd0fb5961a515952a91de35f34b44483931c5a2 DIST gentoo-kernel-5.11.22-1.arm64.xpak 59725454 BLAKE2B bffe7733b1ab766ab7afae20c77696ab36bed989dae7fef60e6eba752da8f918240e0d28fdce01d5813775c4013df80ba495e6ed7163838bde2896ffce96fb06 SHA512 8b1e4b0f6ca7294a457574f23557df1cc99dc6be41f3a36f6a871cb8a21d52f0556279afe400301bbdf715d4e07134da845c37318a1e6df9e14e379cf4252f68 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.43-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.43-r1.ebuild new file mode 100644 index 00000000000..b63276300c5 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.43-r1.ebuild @@ -0,0 +1,114 @@ +# 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/~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 +}