diff options
author | Sam James <sam@gentoo.org> | 2021-08-14 05:49:38 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-08-14 05:52:14 +0100 |
commit | 86fcffe7b2ba9726782cd90fc388eb13de7ec228 (patch) | |
tree | 3831091ab01b9b15eb9797c82f28e4c9c2d18527 /sys-kernel/gentoo-kernel-bin | |
parent | sys-kernel/gentoo-kernel-bin: bump to 5.4.140-r1 for arm64 (diff) | |
download | gentoo-86fcffe7b2ba9726782cd90fc388eb13de7ec228.tar.gz gentoo-86fcffe7b2ba9726782cd90fc388eb13de7ec228.tar.bz2 gentoo-86fcffe7b2ba9726782cd90fc388eb13de7ec228.zip |
sys-kernel/gentoo-kernel-bin: bump to 5.10.58-r1 for arm64
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.58-r1.ebuild | 113 |
2 files changed, 114 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 77a11bc7e2c2..f613525b9e14 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -61,6 +61,7 @@ DIST gentoo-kernel-5.10.57-1.amd64.xpak 65495321 BLAKE2B 01150f9e47ca9e1032ba922 DIST gentoo-kernel-5.10.57-1.arm64.xpak 61180038 BLAKE2B 09554216e2510e3175683828b1b64175b959e382a7a2b46644e4c0c88bdd0dfea9961e526348b46263c818abb04570817ac33231db3e5d358ff4046dd3178ab2 SHA512 fd0ffcd2b7771ff3fb92f55f07262ea3363cfced08442b097fce1a80eb4469d731c3c6e3bdbd874813ed53d25abbe6c29a6df36c479c746d5e1f2ef551f6ad95 DIST gentoo-kernel-5.10.57-1.x86.xpak 57232710 BLAKE2B 61912226342f10ef313ce335572c4a13dfe139ff562e6b0b392b28981aaa7aace9581d61196ff595b05cc2f54f4d07341c95c46de67e48898d5ebc36d47caedb SHA512 6d51e5c3b601e26a37310941054611f16113d3b8711d6216a240408712ed032aa73cef5158dd83916458635aea19df7d8a6462371593d594f17b9070e81c925f DIST gentoo-kernel-5.10.58-1.amd64.xpak 65511736 BLAKE2B 48f3bf825208658a833549ee54145725cc3e1d3b3428dfb431214f2272c449c6cf274dbad1123fa1a346614661f4b9112fd47f9f075ace1d39cb79371eb4ee9c SHA512 22ac10e934cfd3e9b878457824e1a57c229e1364d0ccd45e60153d4e114097974262a7be364e573aefab83c7eb42b6afdfdaeda6807a7b52066f1771d8ecdede +DIST gentoo-kernel-5.10.58-1.arm64.xpak 61161741 BLAKE2B fdeea503d632971e80739ae7abe10da20febfc1a5f7b1ccf73f8937f40a8daecf141b36e780b41903ebd3dd8a60eae66e7ce40b697f1b53b9fec13b1092ab320 SHA512 f48fcbdc395cc57c6a5c5e2d5e2e79598b563df843d11f10d9be2f209f36c78dc1700f23aaad2b1052a847dffac6b74eaf8f86df6caaea560199b1e250bd7c33 DIST gentoo-kernel-5.10.58-1.x86.xpak 57234241 BLAKE2B 03e1fe1c0ee4a571564fba7b8095540e901e5f74e856f67ea03a389bcd3ab0f8a482aee0b74eb13494afe471b528748b58b24cbe653b4963466142e3a38126ef SHA512 01b4b4b33de3dd396d92d0b3e99c33413c5e936c85ca038caba94d53ed671b885312e5b1508897edf39de045e13c05d546b9053c9ef5b7700058a4a02db8cdd0 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 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.58-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.58-r1.ebuild new file mode 100644 index 000000000000..9f8ae493e215 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.58-r1.ebuild @@ -0,0 +1,113 @@ +# 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 + 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 +} |