diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-08-08 22:30:13 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-08-08 22:33:05 +0200 |
commit | 255d7ff3ba21b0185d0ff77c80c95aa837ea5d45 (patch) | |
tree | fa3f8997008c34c34bbca93a4cc8a3c9f08537e3 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.4.139 (diff) | |
download | gentoo-255d7ff3ba21b0185d0ff77c80c95aa837ea5d45.tar.gz gentoo-255d7ff3ba21b0185d0ff77c80c95aa837ea5d45.tar.bz2 gentoo-255d7ff3ba21b0185d0ff77c80c95aa837ea5d45.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.57
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.57.ebuild | 117 |
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 24b95aa969ab..99f9bc83b939 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.10-61.base.tar.xz 1978152 BLAKE2B 2943d58ccae232d4111f33e76f8c DIST genpatches-5.10-61.extras.tar.xz 3416 BLAKE2B 41bfb877b640ce1a8d5b01226b77db8dd9aea03926139bd9fd4055f86fd9844ebcfe2a21ade837fb860f0f5007a3c1cb27b2147fafe79ae1ea003592a33b887d SHA512 36b16758d14c47dc94d8a00b3416182262f270f04f3ec652e89ce492dfc6694eaf0d4c214a9d57778afd0ab803c72348edb5848e362ba807f2912f7c4d51d66e DIST genpatches-5.10-62.base.tar.xz 1996836 BLAKE2B 071dcd4cd4ae685c020e460a5858891f895f5a135b53c94cba0f03476698f4270e1461a8caf93f5f0cc5eda42f4df8194f463caf63b4fab354daec95811b09e0 SHA512 e37dc31fd2b129b7f45f663394eed3d386f50710b41291d687fc000120ea21e92351629c7144f48f27f9f7edd261803c67ec0bdb0925075fd5880a1b10314b68 DIST genpatches-5.10-62.extras.tar.xz 3436 BLAKE2B 625104ad203699aa2083281ab4e1a9e0565cf3418dcee8af30632570f90554e97f63d70a89f3de43f0869857fc47cfcd6ee91083b398dd241171c6389e647d01 SHA512 013772cd15a03dd9bf193a8d45330cca268ba45e604be4670edbd1489ee2435aed0670fa40de33b63a37d8c802bb3ffc7e8442185023170d2ccfe79f4ed7a38e +DIST genpatches-5.10-63.base.tar.xz 2005108 BLAKE2B 2895a5f99b7598f6eefeece9f0eedfdbe3475bcdf9272092e73d5899ba3466dcf2252da8718242c7ab02d593f9bb282dce41a147cb7e1498442b57633127568b SHA512 d5677d3e07948c2f0f80b17e4446b53903b2bef2c8fa406bab60009a2d2898f5c38f0df8b24fe46ae83ee0022d4de650a89bba94787479d6138cf21d1e2927a5 +DIST genpatches-5.10-63.extras.tar.xz 3436 BLAKE2B ec9eb5e22a6870a5a9fd278921b04488f8ca470f5b0dba897bf54aeb6a16e60ea536348da783c6d018ad0973b11d97ce2ceacbe89cc57efd7d0563e61d0735ea SHA512 ea27955830cce24f48928a566089114cfff5f35f411084e1c5bc815e9dae3049932ec6f2b3b308f85caf728cd713af1225b4459d015b01fca61e0037cfd4b45f DIST genpatches-5.12-22.base.tar.xz 1085632 BLAKE2B 328a25218394a93755d29335f0a827faaad2fc823bb25bf8ef36385eaf8b30427c4075bc0074969fe0923a975d88d7573fda0b8e1288e787f03afc6cc77d25ac SHA512 08a71f09955c92bd92f4c67a018349a9b1d7ac5e1dad7efa3f1cdd2968a4c82042308613069e5bb65a0c38f19d05db5a0ff25d17726809cf12ba018fff5bf564 DIST genpatches-5.12-22.extras.tar.xz 3420 BLAKE2B 61d7d8bf8c88a1f0ee16efd07dca0fcb82a48574dcf545421e5e8302128acd5e28fbcadc4d1a82f0b2049491988691e3f8b85c99d50ec1c81a4a4549c96b9651 SHA512 20a505a8247ba33f8c0c201b809b22073ec589f4d83b1089c6787afbe42760443a964fd12fbe2dc6ec778c6d3067db04d93ec098551ff9ed6e5030d5830fce9e DIST genpatches-5.13-10.base.tar.xz 573992 BLAKE2B f3de7462b97e0a2bcd38edd0cd7972b3da8f9d14b5874f7137bac5e6193c046b7405b9ce4e3d74c6f72af3a83e731ebee65aa8884dd28124907090c489d04a93 SHA512 12707bcd389647dce3dd90ab0e0d3a604d250fa43f8634818363c6d3e7b260e392402fa8b5750e72e5e1e2937323a689c3d5ef48f5ec9a347d77eeccd2681cf3 @@ -47,6 +49,8 @@ DIST gentoo-kernel-5.10.55-1.x86.xpak 57214089 BLAKE2B 6a411b8e89fa877a0f091e8a1 DIST gentoo-kernel-5.10.56-1.amd64.xpak 65466530 BLAKE2B bc22262e84dab9a7fb747064655d910ab963c03bf37099438bb0afda73e211f4e34b49d447fa6496fd4233be032418a5f4e7cc54c3ce812b82c6929715d55004 SHA512 45f2735e482d3bac6893270c2fd82a47021697f4be333cdc353b76597e0ebaad774e49a4c52c7dd29808a9c5975fdc0cc67ea3d9223722e8d4741675f2452a29 DIST gentoo-kernel-5.10.56-1.arm64.xpak 61251700 BLAKE2B 5afde0d58d7a6839cb5093beab66ec4357f1dd2bb900674bee68353b72325ba510d983ac096e1cbf3bcebfe3c336ab30774a948664b471cb84a72990a7acbac0 SHA512 c494bfdd391b0328bec671eff159986da0e745bf3db70a2647f6ef8ba57f851bfa0b4262d89526f3670ddf620c4cf1e0377c299b9cf3de241e37e22bb90e8932 DIST gentoo-kernel-5.10.56-1.x86.xpak 57227791 BLAKE2B 4cb8e8af367ffde0ad63061f8b45665c9f594f106ba4db2c4ead93c46426f989f8eff507c534dafbc66cb92f53bf72cf6ee93ee353069caf8fe8c46119080e27 SHA512 529a69dc7177c9bf0c2da9b9614144185851e8a4bb0cd66a352fdfc877771f624b493bb16f62956e58a52849ffdd0ac31d219c9ac9d542c0fd9c14a3bc5567be +DIST gentoo-kernel-5.10.57-1.amd64.xpak 65495321 BLAKE2B 01150f9e47ca9e1032ba9225382bf32cba940fbdb23572762ca1ead73401931975259c837e22c0e889d24b4208a1089f8c3a07cb88da7114bdc3608910dd2715 SHA512 1a716c694e7a2d29867924eb8d853fcbc4a1f5d60eddb7c011a80bcced97774beddbc4058fbd49eba5a227f9d0cde08eeccc9cc1b10fdf0c7b74ebf739f4acb1 +DIST gentoo-kernel-5.10.57-1.x86.xpak 57232710 BLAKE2B 61912226342f10ef313ce335572c4a13dfe139ff562e6b0b392b28981aaa7aace9581d61196ff595b05cc2f54f4d07341c95c46de67e48898d5ebc36d47caedb SHA512 6d51e5c3b601e26a37310941054611f16113d3b8711d6216a240408712ed032aa73cef5158dd83916458635aea19df7d8a6462371593d594f17b9070e81c925f DIST gentoo-kernel-5.12.19-1.amd64.xpak 66346655 BLAKE2B a03cbcdcd1a90d48d7e11e988d03efa43980f4d5d8af4b74e4c81f195faa01803af45fb38f7dc1f5af7e9b5338a53bc6f34837c37f7e853c088ec6c1dc084e44 SHA512 3d7f78c488ecee2532f8a8ad61e3aa0f5e238e4cd520d29288715a3dc5c488670d7378f3dc5bc110252dff10108dfbda27a54722c6b044151999428d002b34e1 DIST gentoo-kernel-5.12.19-1.arm64.xpak 60043529 BLAKE2B 8746081847a39e1847b8e9f35fcd68565370b116d6418edf803c4cdca9d750ac8ada58c4a7fd377480a1c75b3c805864d419c02ee21675bc77ac195731385a18 SHA512 d1a8a9210a1ab3d3c1894be1fe524e64b859b0a02763feacfed1a24655540ade6c28af751b23e924fcc04fb9abd56e84c43d634ad80bbb4d5de79ed533b5ea50 DIST gentoo-kernel-5.12.19-1.x86.xpak 58076509 BLAKE2B 0e4aca91c834b23fb169bb6fabab13130de811c15f89e6341ad2a36ac230071ced6c6d7bd30be0f0f3860d09968449c1933cd33ed021213c667304070b80f9a7 SHA512 9786f106ed59661546d9f035e25c39f4c7a4a41f51afa96700867e47bab19e148e8a42c79bc3b7780967c2f82f1fef6920f220fb5fccd6f267a2c6e6a3081126 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.57.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.57.ebuild new file mode 100644 index 000000000000..b23f3e054425 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.57.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##*.} + 6 )) +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 +} |