commit: da00013e3a7971363d8eeb57904d1f9e0285869e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Jul 21 02:01:59 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Jul 21 02:02:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da00013e
sys-kernel/gentoo-kernel-bin: bump to 5.10.51-r1 for arm64 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 1 + .../gentoo-kernel-bin-5.10.51-r1.ebuild | 114 +++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index ad46d366073..a383135878b 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -55,6 +55,7 @@ DIST gentoo-kernel-5.10.50-1.amd64.xpak 65470237 BLAKE2B 344e0c3468f3f8e3bfcc538 DIST gentoo-kernel-5.10.50-1.arm64.xpak 59074365 BLAKE2B 769503e2640312c7e6770c205319d81b765ff902c4924ebb85d013b464491e62feeb0e7e232da0c368554fcf2888e22f9ae139161227a096d0c249ecedda5774 SHA512 c5121f1b31eeb193ef44db835134dcd9b7a7d4b14ef3541f49e424dd49966b62cf23dcb2a7f37bf0aee054ceb3798ae20b9d804cfd50a2440482ecb2f01b9a88 DIST gentoo-kernel-5.10.50-1.x86.xpak 57209152 BLAKE2B 81e7a7ca00686315c4fc3c1a2523dcf5ffd1ab2f85b837ae5ac43cda2dfb372d005f455c22f5483ae2befe7e88fde0784a9b7ade9d4b4da5666aabf9fd09c0e7 SHA512 70896b6fd4fa2032f8994b582271126b0bea3eb2d2048ebbe9f7107d4ef4674c6db6cf111884277373b50248575a0b7cdaebf576e032ba0394ca89b28bf0702b DIST gentoo-kernel-5.10.51-1.amd64.xpak 65472029 BLAKE2B b735bd5308db96f218e8d9ec937c0ff25eaaedd52370c80699099a1dc593cd3b42a2b9e5e8691a0ece4163d946987f2e9896574a2bd88095b2f04b20c08a612e SHA512 22a111bfd078b2253d108a49b0ca2536a04abb9db00e05f8364dc67c39cfa55a9a317feb0f02f5db7a97353184ebc0e0f6a787cb16b81fe009dcccb8b30b4c1b +DIST gentoo-kernel-5.10.51-1.arm64.xpak 59114244 BLAKE2B 3fbafac32f3c3a4c12053d7a96b3d5f8dda02b270a75ab665a12596ea5f1fc726ba18822fa4bf4374fd1dd097718192c37721bd4e92e8a2d4e7bbbc2d5df588a SHA512 5996077a57590a5297b4fc23bdaa6164227a7de7b4dc8cd06dd547e209789b8d83133e96e2cbe4b373bcc1d12ae66d06f166f8d63aa9ab6aeed2376f0641edaf DIST gentoo-kernel-5.10.51-1.x86.xpak 57213000 BLAKE2B 5366920fb80baeb2e488635f790e58bf82487fa109029b26bd4c0bcd2de5670e86eb30daa378e6b6c6e52fa40750c71bcbdca4c8ac24349beb71e9a5f494608b SHA512 f8bc969baf78a18227390598aa6262a827045ac13c6ef3631b33eb7c8d5859cb393e717db3820229ef43da45fc9de90b90fed3707da2b774f681b2c52cf36bd9 DIST gentoo-kernel-5.10.52-1.amd64.xpak 65489696 BLAKE2B a2db9e17da673f174515c38e2107d36ffb99ce1478f2852a3f953c0ca4732acdc556806738172342002f73232f960fcaeecc3d31700b9b3d0c1359dfd493e74b SHA512 bb20d147d15358ca0adaf54d32f7c42d4b8c62073c4a7ccb09ae939f5757b42bb988176dd60946f2720d046061a9517426f0f92074257515216f66c548d6c6b1 DIST gentoo-kernel-5.10.52-1.x86.xpak 57220562 BLAKE2B 89a0555e23ba7c5493b1d3865665497f821d7a256166cc4a92e5854fc506ca8aa5b883b84f4a97771934fc6ac5d61b1a213aaa66767e1881a487db5ca6dee216 SHA512 a12657010017d2d2ae317ad234b8f114daca90f94eab0cd42e3776fa7d6d933b8c8ab507412b43a11aada62a863993f63243c56dd906b4b85796f968dfcd2ca9 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.51-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.51-r1.ebuild new file mode 100644 index 00000000000..b63276300c5 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.51-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 +}