diff options
author | Sam James <sam@gentoo.org> | 2021-04-18 02:15:31 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-18 02:15:31 +0000 |
commit | 8a36684af1d3f6170fb8980ba8d16abd1834c9ed (patch) | |
tree | a75dfb4245fbcf019d0274aa5b138feff9148fa5 /sys-kernel/gentoo-kernel-bin | |
parent | sys-kernel/gentoo-kernel-bin: bump to 5.10.30 for arm64 (diff) | |
download | gentoo-8a36684af1d3f6170fb8980ba8d16abd1834c9ed.tar.gz gentoo-8a36684af1d3f6170fb8980ba8d16abd1834c9ed.tar.bz2 gentoo-8a36684af1d3f6170fb8980ba8d16abd1834c9ed.zip |
sys-kernel/gentoo-kernel-bin: bump to 5.11.14 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.14-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 c8400bc300f1..2d1c7ecd86f3 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -35,6 +35,7 @@ DIST gentoo-kernel-5.11.13-1.amd64.xpak 64685029 BLAKE2B 7d6794c5fd15434d2ad93d3 DIST gentoo-kernel-5.11.13-1.arm64.xpak 59816443 BLAKE2B f3bd4b929cd103f95b91f0c0f28f324f8e316e1cc4b310742d159b8dbdb6c288d9424984e0859873924ac7eb34f12278b2086ad48fbf11da955f0b390dfda619 SHA512 6aae6cd29857eb897a167e359f9628692803bb75a0a1f235468a1b95e9c2f3d9525f33d6673b5c12edb5d9feba29210a79d8030d151a5b7260119a81eef57e1d DIST gentoo-kernel-5.11.13-1.x86.xpak 57618749 BLAKE2B d7e3d71d8eb7c35b4f86bb95cdf945f4fa7eadd0b87e380ef37f3b63385a15566246e91f12bffc0a7e3e42285f702cd99387fd9b7e11cb59fe3bc2a9da83f160 SHA512 51450b58469fdd8b663ee7b997b392232c658281fd243c2508f8feb190a74f5ab952b1041e64a9b4204cc1e08fe328f06262ca46966e16a0f0c962b389254fc1 DIST gentoo-kernel-5.11.14-1.amd64.xpak 64686322 BLAKE2B 2745c0f99d467c891310be987b9e2ec8064d63277fbfaea43f53e2813755f4c6b5f0ec8d8431eaa10a13ffd338d2545a3c6b7fcb4c149c5a87ced8ae266d6912 SHA512 18bb1e1844cc9184e520da37d914ffe811223a451a14079e167c8ca56e569080614e51bec978d7b27f4cd9491fbe649222d7fac37869a372d696f1cf16325941 +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.x86.xpak 57616556 BLAKE2B 8eeae06459bf26979992d424e6e27ca77b9a58bf0be78a07df344b8d314b6df52a584fe92094306d73d775950ae1394b1679dd39209acb1df5a80a6a04811719 SHA512 6eb588aae81446bc1a53327fd1be94ed415f8254372439d739aaf4e170004c208ce25e50366a493a023ac00addddd343f410ce63385f0a8504c15c684c01be99 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.14-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.14-r1.ebuild new file mode 100644 index 000000000000..2760e617c656 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.14-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 +} |