From bd906f543dc5003521ca587a5792562917444cb1 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 12 Aug 2021 18:56:26 +0200 Subject: sys-kernel/gentoo-kernel-bin: Bump to 5.4.140 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sys-kernel/gentoo-kernel-bin/Manifest | 4 + .../gentoo-kernel-bin-5.4.140.ebuild | 117 +++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.140.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 5a78246dad26..7cc2ca84aef8 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -40,6 +40,8 @@ DIST genpatches-5.4-142.base.tar.xz 3810892 BLAKE2B 66afbcd352ba038920281b3220f4 DIST genpatches-5.4-142.extras.tar.xz 1788 BLAKE2B a8bed6a689141fdeb3fbd857b0b753a4d317298205b0961c9bbedbf7064d55d05ad3ad437fe8d2e182898063f0fbbdd05ad32b52173bafb6e7e8155ebaf8e698 SHA512 e288e2047cbdde57a8d20297b6d669a107b2a0185f3351972f0df8921eaecd3f0971ad68cb7989f6a265a324c13095374cf90d01d26982e7a757e5fd0b2ebbe3 DIST genpatches-5.4-143.base.tar.xz 3817644 BLAKE2B 62ddf9fe77a4da96e1f47bc8d5db279ad30c9c2a55a4307b3340128fa6e65b717c1d3d7a96b67342f75d34d032861933c62a83ea56e6989ca72ff1a5d9331692 SHA512 500e31463c4131ab2d54e8e1b449f2f75899064ee999530d83914f2f4f6587af2ef9a2198b0ab84a695da48203d2818f7bf1054fdb5f842d84486ab60f764cdf DIST genpatches-5.4-143.extras.tar.xz 1788 BLAKE2B 6dc4357139177d305b6989346fd3ed5f75310037db5ee32c2634da6b1a6290726bd718892cd66f976a2c181b430b8e297f1bef2e1134726a23c964fbdea7692c SHA512 3df9af7e73880821afa994647c8d029a4cd453629ab24b93d971e6c4c0ee1247edb924f783e4393ebfb0abd8afad7755331cd5e9fbd0c06c0550399367c85ca3 +DIST genpatches-5.4-144.base.tar.xz 3836196 BLAKE2B a1240eb039b5d124ba71cff8bb3abd7cc81d37e5ecaaac1d7dc864f4590a0eceed026b8123335e0c6ba7ff54654ea447c252a7be6d345c284da975a6754ff543 SHA512 b9c3ec33cfb47e632a983f72a8c4962fd4f838449ff7bf4344b98ff730d8e5b2fcbc4d2a1a9e65ffc8a15a09f3bbc965ce3276897c401289768783d24503d0a7 +DIST genpatches-5.4-144.extras.tar.xz 1788 BLAKE2B 5dea6c811540cb24842a4aaf9e93ee512cbab64d1fd02b0e835a23e65014f1aa86a70bf44b866d250ae68081257ddd9e5e52d8dcd8a375da51d0a8bd288e922e SHA512 1f7afb479920d72e20db0bd7d1a828ba88fc4ca5ada3397774546273f7ffdf368870780842e0706211ff825a872ec3b35ffff9ee3f6ee22fd6585e20a6ea64ee 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 @@ -101,6 +103,8 @@ DIST gentoo-kernel-5.4.138-1.x86.xpak 53142871 BLAKE2B 28b8f8fe44d9287cc5730600a DIST gentoo-kernel-5.4.139-1.amd64.xpak 61366933 BLAKE2B 27ae32ce446930ba96fab8bdbd970fd373b52497249c082c6955627fbc65c585e16a7dcb84f2eb1cc3327ea57a5ead65fec029bf83ec308276a28e89ce9e8b14 SHA512 31fe90b64812a527a3e44386be1639da674da64a61c92bc8ee6071859d6dbe7fca7d763d1241d6dbba2625026c0713dd247283d477b6b60e3851c72072c5e217 DIST gentoo-kernel-5.4.139-1.arm64.xpak 57992677 BLAKE2B b194275b4c4e5fc42a20a74f47c300c3ec3b26f6f02ac75ca8ea9b2b582153bc2922f9a525e5e2d005d74e9fa91b5013649cb96f40624985a6ab47d941967f70 SHA512 f7214dfa120ff96e8d6f327c79ef59d8bbbfd9c7c1b3236fb531f04cc0340f7d4dc8745740bd7c0edcdeacd23449cc73c0d415ae3fe8100f589aa2cef4901f3a DIST gentoo-kernel-5.4.139-1.x86.xpak 53173145 BLAKE2B e516100fcd8f4f52df93deb22939ae24f59d67ffe797c79cf7a91b36ce76df04f7ef52b158b2f94cbb2c9c9534d0405fb936243548f8759f05ee096c7d93ed36 SHA512 a464719010c35edeb307e1004fb97d7d3be5e8dc143219697081fe73f1812fe57f316a6ed97db86147ffda10bad16b18d1e753c0360d778d6354e6d4876d7f0f +DIST gentoo-kernel-5.4.140-1.amd64.xpak 61369693 BLAKE2B 5f869206ad8102cca2e6cc72237ae026763bae7450fc90009a78439789f958cbc133ac5f8a207caf7c0d59c71df124c9fd6de4805ea4a4e701902f7fb44a4ddf SHA512 ceae6f100fe5a28d87fd32daac43d43c3e52a6bd96dd4fbcf73b5593ed21f4641e0ded5e55eb2b443b212bd312a0550f5020ebe34b94504f16e1ad905e077c70 +DIST gentoo-kernel-5.4.140-1.x86.xpak 53160196 BLAKE2B 9230edc3d36d4aae621bbdf79262b824a8b9810c7a253b4b09ba7bc0974baedb53f43c70fd6cfaf67b470a50f82fb119a7cf33d425f63e9e50fca4a9570c322f SHA512 29aa547d20e415a50738b3615f25c9f4ebddbcd8d4e9db43aaa8651f40b1e1a93f953ba66963a3c0ba3cdd46d259a638107711e0d3830013359e34346ccf78ea DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.12.tar.xz 118112412 BLAKE2B 842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b SHA512 be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d DIST linux-5.13.tar.xz 119297284 BLAKE2B 9c4c12e2394dec064adff51f7ccdf389192eb27ba7906db5eda543afe3d04afca6b9ea0848a057571bf2534eeb98e1e3a67734deff82c0d3731be205ad995668 SHA512 a8edf97e9d38a49f1be2bde1e29ad96274bb2c6f7e8a2bebaa1161dd4df9cabcbaec4ff644c45bee94f86ae47725087d6deed0cd954209cec717621d137db85e diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.140.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.140.ebuild new file mode 100644 index 000000000000..19484744cb5c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.140.ebuild @@ -0,0 +1,117 @@ +# 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##*.} + 4 )) +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 + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.x86.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +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 +} -- cgit v1.2.3-65-gdbad