diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-26 21:57:47 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-26 22:00:16 +0200 |
commit | 1bc273800e53790e5ebe2e138abe4a977856d98a (patch) | |
tree | 4b28bb0fc06d8dce4891f073527a3330f95a7d11 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.40 (diff) | |
download | gentoo-1bc273800e53790e5ebe2e138abe4a977856d98a.tar.gz gentoo-1bc273800e53790e5ebe2e138abe4a977856d98a.tar.bz2 gentoo-1bc273800e53790e5ebe2e138abe4a977856d98a.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.12.7
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.12.7.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 be651d86e276..05fd92b8ea8a 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.11-25.base.tar.xz 1030312 BLAKE2B c3e0f5840c32292d36be31a86069 DIST genpatches-5.11-25.extras.tar.xz 1772 BLAKE2B 0bd2afbd93cd7553c8e058f61c515ed9d47e9f328529e6cf36a7100b363dc8e4c3004afa06a0c0b95963bcf69a216ae6a7bf595062401725a4a25f942f44a3e8 SHA512 114094a87bad0dc4a265847fa18b88a2795daf151de8451bb4fbe4af70f3f4bcff8905d8d90522f85914bb7ba7227ebab7f69ab59112afb2187332b393450fec DIST genpatches-5.12-7.base.tar.xz 447756 BLAKE2B c7d1f923bf45adba7a60ae56eab5e6ac3e132f6fc9186da1bc10d48c19dbf7ab39fc07cbb93112b39b13fa921223b1f6aedb28e2d053600b7787a2bc2b55defc SHA512 ee12bac503ec5ff48d918240b5e16c03df01378d572421d648863d82db8c89a79316d1c0339b6156cc5c1a0de64cf20e81b2900fd23b96f0c274a171e90aa279 DIST genpatches-5.12-7.extras.tar.xz 1772 BLAKE2B 3f593739f9330a6dab17be9307c163d6ca4e39e821d79db2b6a3f88b3af8c973c713be26ebd11d155d18336f9613fa5b0c9c44e43c0674bfc4f9e0c5d7519874 SHA512 e273b619d284246670381a6a6bc5f9835a6ed7023bfae14b31783242ce504d6909a5dfb47e6a5cb5d81cb499fb897daaeb8e5d0306359a47ba22e0818d499d25 +DIST genpatches-5.12-8.base.tar.xz 486256 BLAKE2B 55607b8e42132706dd6d5b2716ec252fdae5b7b2d0e4c7874aa4d9f558172f207d7597eb77030651a5c490b86eedeaf1174e9908277e989e06a4cc048b1ceecd SHA512 3651b48fd077624d7e9b9471bddfa3ed0b5d4656374b73b92192de26925a12b3c4923dba9764ff12c1fad94047b404c61f23cd2eb4d4383775eaaa0ded3e7907 +DIST genpatches-5.12-8.extras.tar.xz 1772 BLAKE2B f8d4e1f2152ffa0fa46f592051faee455f0319ac11911c79d34f393109bac49d74d5c938f38037871ef777183b124066f4dfc46381c51a337fdef54589c981a0 SHA512 13ce1243c7f4b30a24c70cac04bdbe6ca29fa608638e5c47036ba4fa3e839dd0b7dd5d6cf2c628a7d86418c7eb5c520334d84b2b33e5db206c947fc5d4c6a8eb DIST genpatches-5.4-118.base.tar.xz 3359396 BLAKE2B 5617e29367808fd5be4d7cd95bbfa2680f07fcdf0c4b02f3a5750f715a0e728ba3c1cba82254495cf1496a53a174c6209821d57984c0810c7665ce325aad90ee SHA512 496d33188a6fa440cee3997b4367c57f46e398b35799a2f4a349f34f5947884e7c28df56c4990a48ae1c8cf46932bc86c7c1fcc9593ba7e1e786943b55373bf6 DIST genpatches-5.4-118.extras.tar.xz 1772 BLAKE2B 0da077edfd1be718e67ea06824f29b86c645597be80c9b7fd99fbab25b1638bb3e95d2a0ba3b0c6c31beddee7d6dd3fcc89c640139ff787ecdff1e7d0b5eff72 SHA512 9b99f9f6ae84f10db1dc3b75df6c4d095e6624286bd1de888efe3d063e06c9ff44dd51f18ed4d153c935ec6be48d045f8286db1a49ead4abe120e20620ac2307 DIST genpatches-5.4-123.base.tar.xz 3488228 BLAKE2B 0fe5c3056c3cb060f4921e3b7a4046e03e4e777d033619f0496eda68c645c6209fb07713a4bc2565000f9c17e6203a8bc5392fc597dd49167bb0348988b53026 SHA512 e71b8f9d622d3ea2fa8165a39a27240ac007d899d7324c60240221d7761c1287f14b631b074536460702922b8daf00bc2714358aaf7f69ac257af7d5d5b18bd1 @@ -35,6 +37,8 @@ DIST gentoo-kernel-5.11.22-1.x86.xpak 57639501 BLAKE2B 5d4cb13fcf9d60f0865d10489 DIST gentoo-kernel-5.12.6-1.amd64.xpak 66353212 BLAKE2B 978e03073a562ca7b73f2e825964e834bace17a4c8d8e7eeadcdad2acaea912ff05d5eb3281a29d42c3fa8c4dc9638528abb9bcecb65b58fffb7d9ad2f5fd245 SHA512 f7c411047069e32a6b43b9bb85ea3457e014f1fbeebd2324646b5d5987e6c3929df04273a0ce4433d2afed9818ff45243d23ebb2e9fe75b48db27a31bec770cd DIST gentoo-kernel-5.12.6-1.arm64.xpak 60212554 BLAKE2B 5cd63259c7797c3f65c4dca4f845cc967097c35428ce80581bdd9be6d339651ea11ef79963ae0ae3b56897f218e31493b7c28d76a11d31fae87ae7ea44042523 SHA512 d92e8fea3c8ec1a7f238c7a40f982af3ec4592d7a625185e6b44d4881224c77bf58483b21ccb0ceffb279a954f7aaf1f173ab607fe36b58f61340a2731278ebe DIST gentoo-kernel-5.12.6-1.x86.xpak 58097790 BLAKE2B 588237bb48bca688f49548b216e855533dc9b2fd927e835b3ad10e605b96e341df30b8754d7f801693239b0f8e976645fced49afe5d7af401b1b240f542e1b7c SHA512 8bd79b06836a1dc8a802eadb54de8d5e9ce2eb9c7af76671c59e8d9e093b3ba73631bd221b81339dee656835122303e40a27f16911bb6d167b7e0ad91c56fbcc +DIST gentoo-kernel-5.12.7-1.amd64.xpak 66367675 BLAKE2B bd18556dd73a9eaf2f73737641cc61b0833e70699da43d600ee13ad438563c475244c213618c051d90f589927dfbca43fe92c3ed6e47d87809e968282e98da83 SHA512 27696b01bb74b10af8059c0516eac4b30265358f1300baf27038298bba66779ab12a26ff03e56cffe63ea7207fa81d6bbfa9fe8302b2d5e489a51f364581853b +DIST gentoo-kernel-5.12.7-1.x86.xpak 58091403 BLAKE2B d4648d72e421aa8a2e85529e83394b8ac788a17eaef70d0e19f29c3f3d2272c3dbc914f4ab66c3137c9ff6c84b76b59711670eaec9f46cc93ca932335c8b6c23 SHA512 315bfe67d1aecbd16d91364eae039598f1d7886be4e42a1808fec3668372dcbfdfdbe3ed445c20035d0a799e83e03fc0f03e43f9855e1f87c79c8be0d41ba3d9 DIST gentoo-kernel-5.4.115-1.amd64.xpak 61381562 BLAKE2B e36468cb61a73daffd9709bc8e13eb1c11a0ec1e8f68df55c07eaa50e7538337534ca48342b019b308c99c121628f55c868a5577b2c1a5a4a67cdd72a6fea8ef SHA512 5bb1836cfd7b746aa5d8e947d6fe63c368f86a0d439e56106a77b3f3c3999d3761f238bfd76b5785035ff68869da271a2c3a4dfb5f09fb16b343e0d296ad9d60 DIST gentoo-kernel-5.4.115-1.arm64.xpak 56473345 BLAKE2B ba662f7d08629dc4fd8978de1db9f0f4400cde21802590a168f9737da03013e27c09a5ecbadcc99f482c935f20db61f9395bc006390b46bea45af305f1677620 SHA512 2ee5adf31d0a8c2bfa76cfadd5c56e818cf31cea3323c91517cd752ce4c87256c2a4f33583119977e37538669d5e2046f77fdd0b9c6adf15ccc498e7179a2088 DIST gentoo-kernel-5.4.115-1.x86.xpak 53174038 BLAKE2B 497eafe82f52493f8fb9c9703be26f6df39a8e7f5d123c8e26f46b53c6d13531674da658d965d50159e52275c1c91490136372bc14828a90164bb21aa8ccbf32 SHA512 c10f98b0160f5809aa734c9e74f189e9d55ea5e4b568a9fa6d1d269606d683dd117c193cea412d61ac9899b2690ac364a2f57a16582c58ed512386e78d029b8b diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.7.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.7.ebuild new file mode 100644 index 000000000000..c31025c57600 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.7.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##*.} + 1 )) +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 +} |