diff options
author | Sam James <sam@gentoo.org> | 2021-09-11 07:14:31 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-09-11 07:14:31 +0100 |
commit | b3d05c92adf26f9898be60ec93df545511f71e25 (patch) | |
tree | d65c58154133d4cfb5bbd12bb9d0ee495e670bc6 /sys-kernel | |
parent | sys-devel/clang-runtime: Stabilize 12.0.1 arm, #804471 (diff) | |
download | gentoo-b3d05c92adf26f9898be60ec93df545511f71e25.tar.gz gentoo-b3d05c92adf26f9898be60ec93df545511f71e25.tar.bz2 gentoo-b3d05c92adf26f9898be60ec93df545511f71e25.zip |
sys-kernel/gentoo-kernel-bin: add 5.10.63-r1 for arm64
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.63-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 78c8a92cbf39..0cf0265ff2d4 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -30,6 +30,7 @@ DIST gentoo-kernel-5.10.62-1.amd64.xpak 65495691 BLAKE2B 24a3edb686ab5334625aae5 DIST gentoo-kernel-5.10.62-1.arm64-r1.xpak 61197022 BLAKE2B 6ec32646ff1e3856a18c5d6380d7dd22cc7b6a5e627463127415c570d954ed6a565b02023fff73be472def46ce90108ba658b3859c166fcabcd1af97daf764d6 SHA512 7039ff2d941396938c97080309ad10e8b6035792ef54b8e35b1da02cebe07c0e8b18d82cc73e3e089ae4d43b0609956b0b952e486e55ccbb80d88828d2be2531 DIST gentoo-kernel-5.10.62-1.x86.xpak 57240525 BLAKE2B 35c247687a38f7207e87a2e231beefea1f99295d00d9807c3c8671ab947fb10e26405992fc1fbfb552cf6d8d976b15aebd1237dd24545be22669b604dd97417a SHA512 0f17337328a68b12db0da2a8d5d111ce4c5d64fbecd150ea6a2e52ff7dfe909cb49ad8528684046e89ab4a4938a20b0593d93afbe810c9c63799a60e0720f59a DIST gentoo-kernel-5.10.63-1.amd64.xpak 65513582 BLAKE2B acc38d0b51562dc75fcc23f6ab6cdec4eb05cc7da92a3fa1a88ec6942560f88771537fc66fd66b590cfdc00e98f13b1fedd18b49e713b9e9577671e61963e2d6 SHA512 f36a0bda0650aedad468c83cd9916598a88df54da7347d67ec7c7879d0ddf352f0a29b0b7bdc34544ebc1ecf52dbe62435a5d4090e26820ac967f96ef1993f16 +DIST gentoo-kernel-5.10.63-1.arm64.xpak 61285352 BLAKE2B f883202b6dac80f8cd519bf71fb62fe7112b62ea48159ede8d229bb105d28521afdfea6b66bcd097ccaeb275d00324d842aea28d11ccf9113084e42684b8f794 SHA512 a27abbc2d8e887792c7fb5878e9253c0e60423190b386e32ea30ffd56a56dc11ed24c5ee0167042724fb10b34f577b4fc9691bfc521fed57ba23a8b007fcfa41 DIST gentoo-kernel-5.10.63-1.x86.xpak 57245275 BLAKE2B 8b6632fd366ad93ef659daf85838c0a5d4144b12c365fc039b6d799898650edf05c63e3bc481b8440ef04c9a85dce7cc99b28b31312fe0872097c2e3d353ad66 SHA512 c54918c4a372fecdacef64ce2735f649e3ad154ad641bdd55be9bcf2bc67bbcd6f0c4fd2b496da99ae40e2bdf48cb1c4feac54e5c647b15bbac01565024519ec 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.63-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.63-r1.ebuild new file mode 100644 index 000000000000..d56af60a578b --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.63-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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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 +} |