diff options
author | Sam James <sam@gentoo.org> | 2021-04-18 02:28:38 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-18 02:28:38 +0000 |
commit | 1ddefe7a1c667cfbb28795ee81a55ea9fe59fd85 (patch) | |
tree | 44001467e1aadb90d0f8e24c70a9b052630cb455 /sys-kernel/gentoo-kernel-bin | |
parent | sys-kernel/gentoo-kernel-bin: bump to 5.10.31 for arm64 (diff) | |
download | gentoo-1ddefe7a1c667cfbb28795ee81a55ea9fe59fd85.tar.gz gentoo-1ddefe7a1c667cfbb28795ee81a55ea9fe59fd85.tar.bz2 gentoo-1ddefe7a1c667cfbb28795ee81a55ea9fe59fd85.zip |
sys-kernel/gentoo-kernel-bin: bump to 5.11.15 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.11.15-r1.ebuild | 115 |
2 files changed, 116 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index ef7e9e40a14d..dbe91ce21abd 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -39,6 +39,7 @@ DIST gentoo-kernel-5.11.14-1.amd64.xpak 64686322 BLAKE2B 2745c0f99d467c891310be9 DIST gentoo-kernel-5.11.14-1.arm64.xpak 59800767 BLAKE2B 82175973f78202ac4bea5a013fbaf5a4d8e1bbce033fee7793e1a4e50251c386c3a0c239a8172d29802be7404e3a8d5c88a9621107961f042e1e2716eba4b71e SHA512 5a307fb502ce3d15f214079d6159fcbbc9f3b326427d04e44f63eb455e57e61fccc98bb02fcc5a77d856c5fd8da1811d8cc342dbc96e3dd55db158814fbc8748 DIST gentoo-kernel-5.11.14-1.x86.xpak 57630219 BLAKE2B 6740a21c62ccd56699f6df096112346d8f5d581689d7a604b3e2bfa512d29df73fcd8142c7f20df9df6a4bd048c4980b2741392582b25f5a291bc4c668d1e448 SHA512 f2a295092146aadde77d89f8e539a8d65ec28397a41ce4ddd0bc7a4c8b11ee9a82160e9d5a747cd8b7a99f3ebf1c42b444939f0a1042c0807a24034f82058255 DIST gentoo-kernel-5.11.15-1.amd64.xpak 64702205 BLAKE2B 37b1fc79595bd4f12561f9bd3ee90d9ff679d4aba4bbfb1ce8aea46aa6b3f4f86060732559fdddf1734f80e024251f5ea30d4598e3a0d331843f9284276303c5 SHA512 cf1e9ec4baa4dd5ecbdc07ea0eb1b0b2d40a2e4030c3eb4e8946f228d023ea2bb80db9d05751215d284833e46f3e9d0f6f81f1f4ebd45ce99b3fa0c9a903d9f4 +DIST gentoo-kernel-5.11.15-1.arm64.xpak 59826678 BLAKE2B 66573bd61c3587bc7da7fbc49d8e40d2ce3cf3847b9a0af11633c0a173e7ab50a4156a576b3535c8d9448d529b303350001f9b74c98e53ffdc54e9ead00b8983 SHA512 b245a1ee0e4985b49e6897bd876a8d8da1c1268752bf6286d8d7dae128d8c1d05b7cb537f9791011fefc0949cdbf7e5e598835b27583bde9dbbd76cbfaa75b77 DIST gentoo-kernel-5.11.15-1.x86.xpak 57616556 BLAKE2B 8eeae06459bf26979992d424e6e27ca77b9a58bf0be78a07df344b8d314b6df52a584fe92094306d73d775950ae1394b1679dd39209acb1df5a80a6a04811719 SHA512 6eb588aae81446bc1a53327fd1be94ed415f8254372439d739aaf4e170004c208ce25e50366a493a023ac00addddd343f410ce63385f0a8504c15c684c01be99 DIST gentoo-kernel-5.4.109-1.amd64.xpak 61197533 BLAKE2B d192b84c8e00a992256d44bce33975e29f7ae330a62a5902df14ca08ac5222c3bdbcb1ac27df36db615deecd7af7e264842c2aa358e4cc54e830f3507f5ad034 SHA512 33f192621fa3aa692e7b77897e57e50c7af81cb3ba6a40fd090bdafb5ed7b83dc83438028fc6999723e7f82a22635462746a92ced5439f136c56e0559c85b945 DIST gentoo-kernel-5.4.109-1.arm64.xpak 56430663 BLAKE2B 6079b762ab5cdeb0c745a1a030e4a3af36883588c88dcb8c8cd811aa47d7cbaebc573b152f01fed451dbbfda1ec89ed400270e6fda4e3e1df1aec497b3f7815a SHA512 2d29230577255473618d698363af8c7ef8dd9dd3dcaeaec8fc8802e453838d2c1685e001a6ceb784f6c6ab77fb2b991366e213fec9c45b5763a3a5f57674cef7 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.15-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.15-r1.ebuild new file mode 100644 index 000000000000..2760e617c656 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.15-r1.ebuild @@ -0,0 +1,115 @@ +# 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##*.} + 3 )) +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 +} |