diff options
author | Sam James <sam@gentoo.org> | 2021-03-10 00:09:53 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-10 00:09:53 +0000 |
commit | 081d2fc71ecd3a1333c87111e8fd52b4e3743ba8 (patch) | |
tree | 5b0142a6eb7a5c981cc5b1cd03f4d9c12f14e5a0 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: bump to 5.10.21 for arm64 (diff) | |
download | gentoo-081d2fc71ecd3a1333c87111e8fd52b4e3743ba8.tar.gz gentoo-081d2fc71ecd3a1333c87111e8fd52b4e3743ba8.tar.bz2 gentoo-081d2fc71ecd3a1333c87111e8fd52b4e3743ba8.zip |
sys-kernel/gentoo-kernel-bin: bump to 5.11.4 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.11.4-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 5c9b8a864062..5fa357c71aae 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -46,6 +46,7 @@ DIST gentoo-kernel-5.11.3-1.amd64.xpak 64831800 BLAKE2B ccc7ddf11246fe988720754e DIST gentoo-kernel-5.11.3-1.arm64.xpak 59778759 BLAKE2B 350fcd7e21b5884f3b0fb0fb35c1df2147f4151182bdcf01c491dc4c89b09d2e75e8433c658dd649d9f9ccdecb4dfd47c912fd2b93d0ca9ca884d8bfe863518f SHA512 ff91a4278c2d14b4313a1a6bffc2480c0afa1671564d341df4572236d4e9e82ff03dc7fb32324252190c26fa07958cac20a8d965de38b438c04281e7b0ca915b DIST gentoo-kernel-5.11.3-1.x86.xpak 57808390 BLAKE2B c8fa0b6c4736face65fad6d3caa83311eb1457a1bedb65401c073d800c90634298e929b4acf6e2212dd3b2f863dc06b28ad67992ca1c81b21531bf335ca21e1b SHA512 2f5aa0e7595120c8bf0b552c88a22b2ddf2d2a0028c8e2154250b07d526d66becf6e459fae64b67f69f1c91f7afc1109e7c13b72b2f48aca1a3b36ec6ce18fae DIST gentoo-kernel-5.11.4-1.amd64.xpak 64915116 BLAKE2B b7fac7ed149cac31c3bb670f8aac990aa46e34177537ceff2dcbe9a45345f295089643463258199961def60e040728f4bdf1a4833baefacea7e589d9a377c749 SHA512 6c8c9528e06f8d0abf01dd762eaa4057cc4823bcdfe95d4e9cb1d4dc0f51f696d3ec98c201549d981b008afbde3377f82ebe3b7d7ad5017499b7c6b83b38c6e6 +DIST gentoo-kernel-5.11.4-1.arm64.xpak 59923833 BLAKE2B fbafa63cd0414d2536bec17304fb66b3ffadb3ee3e43a23210b8a10f3a9eda390a011e7b59ac2d741428761d28f2eb002683048b0d68ea5775a32957d3098500 SHA512 831324ff10470f0920652c7451267b7933204f02bb379ad3354b107df0d5e39ac561a6d8b020d7def081083f05ba9c3e91d6643536f437e3fc8ed74f10a1bb98 DIST gentoo-kernel-5.11.4-1.x86.xpak 57890628 BLAKE2B 53a80025da8ccd72921e21ddb16538f111b953c9cdafdb791b26b926e3ffacce76eec7850bb2f72c6b721b89aa617e33f4e49822600d294293d7d0b2b0bdd4e5 SHA512 39864af55c3e8a4d07702de0db922e28c176841e9c7599251acdd67c55820bec940eff29867f0eb9161367f8d0362a7bcf7f99a14b2b36709e76aed1709e0a75 DIST gentoo-kernel-5.11.5-1.amd64.xpak 64924579 BLAKE2B b4484bb69d8355f63acecadac5a604ab57f61ae87a4341cba16c6b3cdc35d19c64c6d8042fedc69aa1272c151d09ba5957b9b26f2a6ab067a46451fd0a928b9b SHA512 218d649adc456f13055e7ec7ce3de1ead2cfdcc41d6d5d023de67dcc7a21679154dfe057dcf72592ab7a7315a8cf1a4d7a96f7904c21f0f8e219f3a277dae21f DIST gentoo-kernel-5.11.5-1.x86.xpak 57891193 BLAKE2B f9f1eed75c7a81067994fe07a8305e5d70001c4ac969ae4d39d222960cf70c5fe5591db0a4e19fbaca9faa53e6dc1206158c0ad071cf3907761a61b00eedf098 SHA512 9494f10ae5a2ad3a0232e9eca5cb16647e4967f5ded3b45b5752f2e380b1c21437b9239d2fc7336cd84a246b488dc405e389c844263834a1feeea9257b2f8779 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.4-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.4-r1.ebuild new file mode 100644 index 000000000000..1d8f27f26279 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.4-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##*.} + 1 )) +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} + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" +PDEPEND=" + >=virtual/dist-kernel-${PV}" +BDEPEND=" + sys-devel/bc + sys-devel/flex + virtual/libelf + virtual/yacc" + +QA_PREBUILT='*' + +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-${PV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${PV}" \ + "usr/src/linux-${PV}/$(dist-kernel_get_image_path)" \ + "lib/modules/${PV}" +} + +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-${PV}"/ || die +} |