diff options
author | Sam James <sam@gentoo.org> | 2021-07-21 13:34:46 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-07-21 13:35:17 +0100 |
commit | fca8046770f6d0f117949a3ece45ae1b3d42bbbb (patch) | |
tree | d1f9a4823bd34ef715de8fc561fa9b0671b6af9c /sys-kernel/gentoo-kernel-bin | |
parent | sys-kernel/gentoo-kernel-bin: bump to 5.4.134-r1 for arm64 (diff) | |
download | gentoo-fca8046770f6d0f117949a3ece45ae1b3d42bbbb.tar.gz gentoo-fca8046770f6d0f117949a3ece45ae1b3d42bbbb.tar.bz2 gentoo-fca8046770f6d0f117949a3ece45ae1b3d42bbbb.zip |
sys-kernel/gentoo-kernel-bin: bump to 5.10.52-r1 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 | 3 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.52-r1.ebuild | 114 |
2 files changed, 117 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 1e71190acdf5..5bd9001cf473 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.10-53.base.tar.xz 1650792 BLAKE2B f4e4f7c7e49b78db706c2e5e47c1 DIST genpatches-5.10-53.extras.tar.xz 3420 BLAKE2B 3079e8f65de0ae8d927cce28fdaf97b902d5cbe3f419c9247a76d27bad296f5f002773ad176dbd086ed04d5346da86db91f1c2bc87247e14a86e0790cc2b1ebb SHA512 0402a07c174f9ab289654e0ff15647d53e5624fc729b73f7028f6c1619285914c5a672b42bd9029fc4f1f773631f86d51e6b48a5c96f84825761b42b76ea18f9 DIST genpatches-5.10-54.base.tar.xz 1652540 BLAKE2B 37ecda0a4f76784572985be5073e7a3f33eb3aa43e641a2bc083e987c88c45cbc277bdeb20bb6ae4d264a17b65273119790ba8dcba7e22fd76ea8d0bd1be1cfb SHA512 85587df46e72cde33fb869f16b7fcc995a4d947552ab4bfb45ffcc852dad1f4b56a58d81446a00a142b9e628bd2fcc8c4922b50a282706f430b0bd9e20aa34e4 DIST genpatches-5.10-54.extras.tar.xz 3416 BLAKE2B 3602707190ed04f62c4b2e8e0e765a53cf436b437373e71b6afd392cf05a73ac9e24f89293aac17c3730cdd696485ebf9d98161b248c9acafbfbe0b0c2db8ab8 SHA512 e4aad3f799dbcf00f813e39c8b9b355f17914a33d1ef422b3e7ee48c48e77a69925cc5664f0f171d1a632f622417b9d7ec88e56b1575c8e5f82af94f64337f42 +DIST genpatches-5.10-55.base.tar.xz 1653096 BLAKE2B 405282f84e50eb5d88148b8249896ccea1ed1fcb5c8c5106ad35164c9af73eab2aab11f27805a08c9c2b99fdb52f7095c7a761b8fa3c4126410490ac4eb6c9e1 SHA512 08fb0ed8674606e9b70c9478d851decf028dfeb8df1afbc102a336f3c2fd943dd598752414d4df5a3c4d9ade53ca12830786920f409e1a197dd47c89381d8e2c +DIST genpatches-5.10-55.extras.tar.xz 3416 BLAKE2B baf2a2a3e18cf75f0bf03bed74edd5ece9bfc11c4870e36f8f3873a7308c685b2947ec1ecd52d909f9a683c1a38a1a820d41ed90f098a792002569c3f9f1a601 SHA512 ae8591c2aa132a67b5258ce1829fd59d8dd343628c9b9d2625798077b3bb0d7fdd577db8fab9a64851af383d40fb2344c1eb03287fbb9eb58a3e6c63c0b611fb DIST genpatches-5.10-56.base.tar.xz 1790176 BLAKE2B 90510133af510c12c515c33e7e970fd974fb51a3a85dc519a9ab378aaa19a2ca965b0983ca5148f43a122e65584ac76c67c79c39fae3bb917ff49633563adac7 SHA512 1f416bcc1b7cea2a8708272d1d9d0c71b55c6fab33330f19baa7811eb3b859afe66e9a24f83a2b4652a932c02d7016fcc81aa53c9faa970c1885fb672b79ff9d DIST genpatches-5.10-56.extras.tar.xz 3420 BLAKE2B 96690a61ee421300a6385513e2804a2832622c4da07f4d0a20ca10274d822811f08b2a1c58dd486555d76bcf5dda75318784b95b6585b1504d9d977dbfd13cf0 SHA512 912ea13685c563e3adfb98bdcd743edc8e27cf87ed3c332bb7204235005c4ba85e847881e6394dabb27d83031c1035a840fa72d7ab9f23627a3a4dcd1210cfa3 DIST genpatches-5.10-57.base.tar.xz 1840912 BLAKE2B 7cdfdb7fc13348ca474b28355df183ea4244615681d6e7b23e2b167d7f9b25740099c6c26f7eddb32e8df1bf6d3cfc5a51c238d8fa20774b2e6149b6262adfc9 SHA512 801237ce248c557a954ca5e414c9a48583d26572fe38d30c0cedfcf2c565e6406c1c7fb5a3006588615ec9e5a4767567da8828af1f8b36b20bb272cabdc44051 @@ -58,6 +60,7 @@ DIST gentoo-kernel-5.10.51-1.amd64.xpak 65472029 BLAKE2B b735bd5308db96f218e8d9e DIST gentoo-kernel-5.10.51-1.arm64.xpak 59114244 BLAKE2B 3fbafac32f3c3a4c12053d7a96b3d5f8dda02b270a75ab665a12596ea5f1fc726ba18822fa4bf4374fd1dd097718192c37721bd4e92e8a2d4e7bbbc2d5df588a SHA512 5996077a57590a5297b4fc23bdaa6164227a7de7b4dc8cd06dd547e209789b8d83133e96e2cbe4b373bcc1d12ae66d06f166f8d63aa9ab6aeed2376f0641edaf DIST gentoo-kernel-5.10.51-1.x86.xpak 57213000 BLAKE2B 5366920fb80baeb2e488635f790e58bf82487fa109029b26bd4c0bcd2de5670e86eb30daa378e6b6c6e52fa40750c71bcbdca4c8ac24349beb71e9a5f494608b SHA512 f8bc969baf78a18227390598aa6262a827045ac13c6ef3631b33eb7c8d5859cb393e717db3820229ef43da45fc9de90b90fed3707da2b774f681b2c52cf36bd9 DIST gentoo-kernel-5.10.52-1.amd64.xpak 65489696 BLAKE2B a2db9e17da673f174515c38e2107d36ffb99ce1478f2852a3f953c0ca4732acdc556806738172342002f73232f960fcaeecc3d31700b9b3d0c1359dfd493e74b SHA512 bb20d147d15358ca0adaf54d32f7c42d4b8c62073c4a7ccb09ae939f5757b42bb988176dd60946f2720d046061a9517426f0f92074257515216f66c548d6c6b1 +DIST gentoo-kernel-5.10.52-1.arm64.xpak 59035661 BLAKE2B b6084e13be321a59402a79ece7bc3c302b1b49e4a0ab24ac456185590fa8c5a555833db68ddebd1905da4bffce3b8f7ad17b86bcf882cdb839d88c8d4d135912 SHA512 1853c88f26a1d2d26b67a37cb40faaab6ef9b4af7ac77fc1b83d0b6603c1addf299f58e34a5608e6a056aeb81d0e9c2058fd1eee056f5f150cf4507327d6c8f2 DIST gentoo-kernel-5.10.52-1.x86.xpak 57220562 BLAKE2B 89a0555e23ba7c5493b1d3865665497f821d7a256166cc4a92e5854fc506ca8aa5b883b84f4a97771934fc6ac5d61b1a213aaa66767e1881a487db5ca6dee216 SHA512 a12657010017d2d2ae317ad234b8f114daca90f94eab0cd42e3776fa7d6d933b8c8ab507412b43a11aada62a863993f63243c56dd906b4b85796f968dfcd2ca9 DIST gentoo-kernel-5.12.15-1.amd64.xpak 66395917 BLAKE2B b77c5e26863dc1c10da3c82904ef035f93c7bbbf60925f7c91836b7cfbb3d32335a8cad78a9b1a90a6d462f34fb798c393f7f992c54ffe6e1a5391b1e63652a4 SHA512 3efe58c6e9d948981fe51fc93ceb73de2f9a049cd396c62e743b3c5033eaf60b05d3100b2377060d1ba6245118281a49447bb5404dd4cc12b616a682fc4c252a DIST gentoo-kernel-5.12.15-1.arm64.xpak 59971350 BLAKE2B 4231ed09d6efd9acae82078d259bef241223770fc95c24145a940ff3e4d712cfe52677a358d4fe26a6bf74129feaa3abad67e2d17eedd1e04f34758fd7ac5e1e SHA512 9eb582dab725c1716b777986e0adf90b353ca481763b27c65240d6b4d8e52d54ca394848b3ff7977651606341e39fbc19b0002caaa8174916f298bfe480087d9 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.52-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.52-r1.ebuild new file mode 100644 index 000000000000..b63276300c50 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.52-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/~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 +} |