diff options
author | Sam James <sam@gentoo.org> | 2021-09-14 06:41:13 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-09-14 06:41:27 +0100 |
commit | 3f1f171566714cf3166d984b316cb35561e8d8f9 (patch) | |
tree | db2f56d6e0c6b48ea0bc914ae6e02d51697f85b2 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: add 5.10.64-r1 for arm64 (diff) | |
download | gentoo-3f1f171566714cf3166d984b316cb35561e8d8f9.tar.gz gentoo-3f1f171566714cf3166d984b316cb35561e8d8f9.tar.bz2 gentoo-3f1f171566714cf3166d984b316cb35561e8d8f9.zip |
sys-kernel/gentoo-kernel-bin: add 5.13.16-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.13.16-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 158aa4fbbd48..fd1a3cfe075a 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -54,6 +54,7 @@ DIST gentoo-kernel-5.13.15-1.amd64.xpak 67350744 BLAKE2B b429e607be5065061b6eb8f DIST gentoo-kernel-5.13.15-1.arm64.xpak 62846334 BLAKE2B a05db11934ec886868a45a7d2f1f0d301ace7408e7fa09615c416aa2ebe5b12e9be1b54867afb09c1229683d975525d1ceacd316a6e6c4bec893e04d52413856 SHA512 f960f1b90788764d1684990072c89b59fdc381092d326392a644dabcdff65cbf2b2912096f11d4a5059487497ab673670f6e044529da83d33403576fbe13d012 DIST gentoo-kernel-5.13.15-1.x86.xpak 58514370 BLAKE2B b508f54b72970992fc621d89e5972d9d95c9e54ffbf35d73026fffe68d4f6004fa5140ebda5c4b32b5597c1b4f7b26aab54c2eb5e13fa34981ac2eb1a8bd371a SHA512 1da3f247d2fb43cbeea33ccc954ece1d96734291c7f9a8ea47705f856f15a75cc72e88f681ca61859b63ae0063b9d0646eb2164f3f54c696df43c32bc414dfca DIST gentoo-kernel-5.13.16-1.amd64.xpak 67315986 BLAKE2B 0379585d1ab70e8ca41b741e4a7ec514c2a7e18e53e0dd169888a37c5b9a5cd4ba4348d1cf58f0732ee8e61e65f2cdc7dee19f4701512bf2602f0be233f39fff SHA512 029bdcf8d5340cfa47925b27c9088d4a9e1c69b7f3353e8918bf22abc360cd093585d3a7bfe2e542f2b3669b5a2914c70b17a77cdf3f32d6ed091a3e242fdccb +DIST gentoo-kernel-5.13.16-1.arm64.xpak 62808752 BLAKE2B 73a46abfdf1434187e3dc2f921c3d6decda2cb61f6c2de4ae7d1e78ea856a29707dc2413d0861ff756ffc588d7c1a2cd969a1ffa4b5874d3a0a3697dc9e9df07 SHA512 9e961396e3626a47917e6d9e94da56d1d4fdb44688a2146b6f8fcd7e6f520e57b6822d4f833dfb5690e9f043275ea5879353e3c3f58581099845db76614b3ebf DIST gentoo-kernel-5.13.16-1.x86.xpak 58509171 BLAKE2B aabdc8def008e446ee6ba12a77bd6f37d34c8f0d632109f0ebae56c6cf8efe2a5d2ad5c35c6a36ce4d5bb31544473cc3b9baaf6b53c88ccd96f3e7b7bc6ef33f SHA512 9f004b7ecb85955e0e03953103baf90845e456800a1ddcbf2415eac6641ca2c2ec7d3ee1ec6105d3fd25e453c31239260bb0cc0d7b2eb519a5653e9b2eb19de7 DIST gentoo-kernel-5.4.142-1.amd64.xpak 61382010 BLAKE2B 5753309c6f0e98adf348b332ef8acad749f0501b5a0641f2436c7ca7a48c6e57d9f2b316f06d82b5e362cbdf91aa253ba69c7425b6eda0db46531e04929ac6de SHA512 c8433c79fde6bc7b31ff2d93b24e5b327166dcf00157ef91057b006b071f6c7293940285c54f282d40a09957f91831dac9f622dd477be62ec8fea713b0a6b68e DIST gentoo-kernel-5.4.142-1.arm64.xpak 58037550 BLAKE2B f2f047abcfc83ed15154c617a10810c3d608106d47e8ddd7f5a70e8b3d5a77e6df34b56efeacbcd14fd479db3f7c5574026bdf4d2c6910dd8e9bb5940f4443c7 SHA512 8a9f109738071ae08ea7231964d1fda529aa5bb0810e96c19b3b82c1743868545eb254fc0604586c10645583012baaa0d2a2e930e460ba0697102b081d277521 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.13.16-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.13.16-r1.ebuild new file mode 100644 index 000000000000..56164dd0991a --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.13.16-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##*.} + 2 )) +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 +} |