diff options
author | Sam James <sam@gentoo.org> | 2021-04-18 02:15:19 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-18 02:15:19 +0000 |
commit | 6c57326a2c099c9b73e93b8c517be07fad6644b0 (patch) | |
tree | b38d5bc913593ac811a108ad7dbcc1583630f72e /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: bump to 5.4.112 for arm64 (diff) | |
download | gentoo-6c57326a2c099c9b73e93b8c517be07fad6644b0.tar.gz gentoo-6c57326a2c099c9b73e93b8c517be07fad6644b0.tar.bz2 gentoo-6c57326a2c099c9b73e93b8c517be07fad6644b0.zip |
sys-kernel/gentoo-kernel-bin: bump to 5.10.30 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.10.30-r1.ebuild | 114 |
2 files changed, 115 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 4d7382d32e76..c8400bc300f1 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -27,6 +27,7 @@ DIST gentoo-kernel-5.10.29-1.amd64.xpak 64314691 BLAKE2B dd51b610e9229390188e000 DIST gentoo-kernel-5.10.29-1.arm64.xpak 59322979 BLAKE2B 4fafbbaa1a68759e6160af99108a96be667c524a92ef28a7b24326a8fee8838cb9830b3b7772b584541611ada0b4f2c2d427e86ca20860b0bfe73fe33a0ba27e SHA512 54cbd04255d221a380d34c16e63ea18866dc2e287506bf7b4892866a89481a980e569e18c1c10703134ea2b89420af595cdf56e38a7b90c0b62a2b5e3e7e143b DIST gentoo-kernel-5.10.29-1.x86.xpak 57248683 BLAKE2B 4b803e88b396e16b80dad57bd50fd2b4ff952a5a353992f9da69001a6356a6bf4d5e32d4a2d469338d1f9694c42b2b8fc3191a85a9e61c3d3e85e138b79e37f7 SHA512 29cfd3db63221efdf962a4387a8d27f61ce4980d582462d6238c84fea751c2196537d0bfc763daed889a89067f0b0db8b6014e343c3b2d18ac8363a29b36078b DIST gentoo-kernel-5.10.30-1.amd64.xpak 64347202 BLAKE2B 85a0fc2d2df1d1a134738e4712c3e1477062199ddb56437507a7ecfc0bbacdfff5e6794b4e547da3494b28016db95616166f75fc8dd3c29aea21dce464658da7 SHA512 d246c134815a02ca95be0c063f170a220bdcdc023797b0dd6a61c17e0336eab194a0c50ea8580bd71e3fd1ec2fa8b7fde97d4eebbfa886052b1bff2d7ecefb04 +DIST gentoo-kernel-5.10.30-1.arm64.xpak 59409195 BLAKE2B 4e5523c5546bfe9549a5dd865f2ccdfb1a01668b6c77e921920098baff478527a487029d6773ae62acbd4df916fafe371eb14880e94b36b1493e0d41e8b83494 SHA512 5f0280a802e81e542c49790c2876dcc43ba7ed1d351a1ae861ae552668d7700f09cac5ee7870a88eeaa1692613ab5a88922ac0cb0f8aa1d4624709de50d3987a DIST gentoo-kernel-5.10.30-1.x86.xpak 57245779 BLAKE2B 22b2dcaecb0fe062e1ecf61aee6fcb7c27d23ebd2d858bdd4933453724c50af23197635827a262e5cd8f6ad045919a3670d51c5c3ac63e6096d109ff4c44b99b SHA512 3a0e669b9c7b1f7e8207c8f8429beaafb0a440b4680206efa2ccfbebe3717e1c1b6e7151ebdad32a4c6cb9d6cbcfc43cb271b47aea7f27790dbb92f3f38cc137 DIST gentoo-kernel-5.10.31-1.amd64.xpak 64337577 BLAKE2B 231e6cb5bc36bbf01f41295d6969b4ef5029fcdcdcf0fac6565dad7bd5ccf1601088d5ba1fdb0a66b58badea14090f859d5df6fe59290a2cb08d88abf12fdcdf SHA512 1ecd188b65567929dadf079fc6953aa2541d4ab856d5d802cd9c988365f21c0eebe5303f44d3e89f247878258a2e91fe561c5f7d000cd0bc9c4344828fc753d9 DIST gentoo-kernel-5.10.31-1.x86.xpak 57256746 BLAKE2B 5c9c42e714f9b896ae2f01f602bb9409cfa210b6a75195de6ddc4213411f6e4ce86f2fd7279906360f4e33c517e1697412f7df8f3889c4e4498fe378430eba6a SHA512 04a18daa394cb2ac0cb4eddcfdad525a7d73861978e6212f152707207548561101fa0294461e43a9aeffe8f7533aebde7a13f26b46e6bd191e72a996d704bf5b diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.30-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.30-r1.ebuild new file mode 100644 index 000000000000..8198cf5ace09 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.30-r1.ebuild @@ -0,0 +1,114 @@ +# 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 +} |