diff options
author | Sam James <sam@gentoo.org> | 2021-09-19 09:59:40 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-09-19 09:59:40 +0100 |
commit | 89dd5422e680dc345b72f0fc320a7676077ffac7 (patch) | |
tree | afd6b35f349f1ae79c5368559feea3f1b2df45b9 | |
parent | sys-libs/libcap: drop 2.56 (diff) | |
download | gentoo-89dd5422e680dc345b72f0fc320a7676077ffac7.tar.gz gentoo-89dd5422e680dc345b72f0fc320a7676077ffac7.tar.bz2 gentoo-89dd5422e680dc345b72f0fc320a7676077ffac7.zip |
sys-kernel/gentoo-kernel-bin: add 5.10.67-r1 for arm64
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.67-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 0425e836b844..3ab8aea35546 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -65,6 +65,7 @@ DIST gentoo-kernel-5.10.66-1.amd64.xpak 65538037 BLAKE2B 87488caaae9aeaba831f546 DIST gentoo-kernel-5.10.66-1.arm64.xpak 61278978 BLAKE2B 74962fb0328ae347c15a0c20b8081b9c2ea74acbe7651ec3a213c08531b25755d0341b1235bd5010ed8c2810767599010021361af4b8d18a203411a30bfbf049 SHA512 898bbac8b9314030a938f30b3fc0ec85c162be61a467b27cf2663fb7baa6190bd15aaf7a86e4b56d00edef16545c79b880ceff0156407dda0d6cde08ab1764ce DIST gentoo-kernel-5.10.66-1.x86.xpak 57245309 BLAKE2B 2a67657d2797243fc22bbe38a25db77052d4d2342e53907a007d383c7ebf45d150cebaf5ab3b542f3533b17670d8c7740c926ac8636b7a982e875f36e1a8eb45 SHA512 e27b532e9d0716e3afab61f487575d004f58abe40a29c5e82260df53fd853e6dd58fb6ddc73455a2a08157a2fba3e9fb34d58558eed5df62c1eb0ef525743a08 DIST gentoo-kernel-5.10.67-1.amd64.xpak 65526439 BLAKE2B 4552be9d5338bc265ae029aadfb3036214618be5248809d9704298cb30bcf3e9dbe29b38220d494bb2ba9b1969d6d97d6366a034c29c258073eea89cf083dd38 SHA512 3c887fef9c7da630536990ed7aafce8af0e95579cac8d0172a9c0ff346ec1af32ce23b423e4f2b4ed9350c059f43f640801db9d70ba1706e4a06f3db301b343d +DIST gentoo-kernel-5.10.67-1.arm64.xpak 61235476 BLAKE2B 39b83dbfe1c24722c031e9e99edab5e122cce7c090ed9068e34d36e425475ddcdbd61ab0112c4a717e973ff1fe8c1ceff748db56247279cf8a3b9b6926612f0c SHA512 912548b1ab861e399650f45c3b0df6ff5766d51e5b14ab516a3a0617c737b360ec0ddd2dbbec7649b396d55ded43e3b5ce44778463ed6b81dcba0f8e194dc7d3 DIST gentoo-kernel-5.10.67-1.x86.xpak 57237065 BLAKE2B e4353197d04495693ad90edd183c8117911be4a0b155fd52b63c07d13dcb845cf2b4968e1e496f1500821b39894cc0edbd7804f59fbd1abe4da36c32741fdc58 SHA512 0744532b539c34eac84589fa73e0c774df24a39afc8bd9669c58cdc813eb22858631f47fe036a9e4eee3c92d73a17e04566a6c5f0f75a60d157ed2d2eacb76ae 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.67-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.67-r1.ebuild new file mode 100644 index 000000000000..9f8ae493e215 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.67-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 +} |