diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-06-16 20:52:49 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-06-16 20:57:02 +0200 |
commit | 6efd86c3d0ebcfac5d584856c617dfc0222b39b5 (patch) | |
tree | c3b668ed95bae2cf2ddef694aad1262819e33fd1 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.12.11 (diff) | |
download | gentoo-6efd86c3d0ebcfac5d584856c617dfc0222b39b5.tar.gz gentoo-6efd86c3d0ebcfac5d584856c617dfc0222b39b5.tar.bz2 gentoo-6efd86c3d0ebcfac5d584856c617dfc0222b39b5.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.44
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.44.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 306a0c5f1e05..70347e31516c 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.10-46.base.tar.xz 1555716 BLAKE2B 51ecab1f2ea13578ff938e823386 DIST genpatches-5.10-46.extras.tar.xz 3404 BLAKE2B d03f28caa10fc24b4623e0c19c5dd1161f653a70868b0990c75a4beb72f8755b086f4e36da5806c3d6fa269e547f1aa557dea25f6dc94bb74d295ecdcfe33815 SHA512 dc6cbe9433e8e7620cbb39245249c8f318e6e40ed5bcee1aace03981b15d9ccde5eb0ede9ca2ab881944a27ac1e480fb3991dd183cd292e74bcc43370e5e667a DIST genpatches-5.10-47.base.tar.xz 1555884 BLAKE2B a4078ace7edfd91eb3ec2f63cb121571b2d5137837a33c96ed5e09201f34cf82fe3b7e88c6684f40a2125d88aeebe275e826ccb2d63b8bc96863edba5055643d SHA512 eea3cbb4b0a9c5979f4a7504eab5eb7e041601c78d3c1f4037c2eb91fe54e7e73c7bcbd88f6e69dc859f9eb7d029bc9f55b6ffa652bf6bc742013fa8d3b0c71a DIST genpatches-5.10-47.extras.tar.xz 3412 BLAKE2B 779b0a8bb908156bc902106a98e4308b3ebfe42ecfd5d651aab4dbb95c0ee890e353d26d51e1fdb7c7305419e8eda5103a01405be5b015ebeccde869798c68a4 SHA512 dadec8511140903f38e7d6657f3e8b750382cbb18271448d3d23a03962b0ceb4b70950d6dfdb643fc2223f53254b824a04d2eec540626a20a50b998a9ddfdc13 +DIST genpatches-5.10-48.base.tar.xz 1580692 BLAKE2B 85f19398f7a3967b471077c1957aa21ee6b34c1a0876ae6a64e5aaecec7a9c91274eeab73574e22961dd8f8e19bc4a69f4fcfb26e9809287ef0da964f64bd69c SHA512 20b894e85f002b057377b7685bc4a957ff1a2990ee6bf94d1db9e8ea1a3e9d20478445ae5aaaf005269505599c4a9b9b26a4ea7129d3c5e2ad18a530c4b6f5eb +DIST genpatches-5.10-48.extras.tar.xz 3408 BLAKE2B 6f347e53aa1eabf134fdd4f234d794820d9aedf126084615fe5eaf29c8e8f30828678b9df544ed39a9ea47e9bd9e5b1a93ea94a90a7aaf1234354cdd011cbabb SHA512 3d19cb7079c56c7675a16302c272a1da1b72b902d66f341428747aa12d1fbf949366e12ed5501bc15d92ca89eb93b32eea283156ac5317a75f11806907e55cad DIST genpatches-5.12-11.base.tar.xz 611232 BLAKE2B af0db172fa831bc84b1935d387e3d7b360c5a94d8499b6fa204f21b7a822c844e88a87f4a2724d0b8b508676ee564dbbe304893bfdd3197d67c8f6aeae011cb2 SHA512 f422bc1aca29732db09184ca2fcf7478536a87e73b59325f063c73103c8ce425858baa78b185eab61a80dda15e3818b45a669c69f7898382aa3563b315ad45b3 DIST genpatches-5.12-11.extras.tar.xz 3412 BLAKE2B 2eba600cd1e769a7252b063968b87cf5f54f285f791f84089fd1f3060e3400a76dd645841bbb213830cedf274e41959ed48cbee081d556c82f059e2a3de4db51 SHA512 2bc29ba1aa4b71b2407906f2c86339eb15fb124f964ddd3fa9f4a39dd94ac18fc95d0780cf1fdb99286b1a27aa88ada32665feffd9a3ca7f53bfb66f0212e7e2 DIST genpatches-5.12-12.base.tar.xz 650292 BLAKE2B 81b5a3b95390522c328acdb390fd1e8515028e55dee9a3693992ce2aa5c2defcea37b14c385d72e0c6a9b31f239c7d02eea45e4428332f477e897fa94c02d71e SHA512 bea0fee6fade3b1322a52ec2201b828ab28bfb3c0528ea562ac7e3cfaebeb758b971820a2b1ba695dafe219ceb2548c07713b3684491b893e6055ce4f8943916 @@ -18,6 +20,8 @@ DIST gentoo-kernel-5.10.38-1.x86.xpak 57251643 BLAKE2B 398526f7c368f91ed6d304348 DIST gentoo-kernel-5.10.43-1.amd64.xpak 65520009 BLAKE2B 9d71c795fe52691e17dccadc9a305f9f17234a48b9f6e214388752ec0aeb0ba69a61be21e7fe0f8d7f0544dc8941087547c73fc4c9ffc6b6ce22d1a48faae72d SHA512 9727fad904712e4c343608b7648be662b2b1d7d9f086fe8bf302074e86c8e0339b27e69a006e5a19152d1233594753732f9c79b3b6ffbbdb35cb04da375f13e7 DIST gentoo-kernel-5.10.43-1.arm64.xpak 61590121 BLAKE2B d55c9cb746f754ecdf1c12cd814dee77c444a86f94c9bfe15a566c7f7ee2e19b8674c5ac0fecc5042137de87e7af7102ffa4721ab282eaed3584ab46c99f669d SHA512 e8f84d16e506786be5fbaef1171283864292899338ec44e0408d960dd56a8cb87b91282879e39cb7e5dc0756aa3d76b551eb157b0f46f72b6cc119853450f42e DIST gentoo-kernel-5.10.43-1.x86.xpak 57258100 BLAKE2B 09b65aadff24fa8997c3e63a5935d228e67292293fbd664c833391708a073781954c8676ae59cf61b19af9b25ccf248297405fc96bbda296da77073fb74dd623 SHA512 08bb9c6cd4d62fd75407877e793812906210e8cb9f0f71c4f9ea8d81f62679461511df601fbf78618a1654b10d3784aba3a242afd68f056631537daddfeb741d +DIST gentoo-kernel-5.10.44-1.amd64.xpak 65489526 BLAKE2B 705a0b9ed1fb7d38f0cf32b1c8babcb62db42ccdd389294dc107a81ae466abac01666715f547ddfd44e97493ecbd37b57c0a2490e776faf6da6a1dfa5a4b9a79 SHA512 0d3a14cc22704eb811025cc1c26ecffac5c6cf4c7b9b074b10e70a7430fc33858a0644f6e79abf311d560a131d673fd3d02188f1c9f80e4e8f3c9e192b50e091 +DIST gentoo-kernel-5.10.44-1.x86.xpak 57201843 BLAKE2B 860cf1f1243722b9f446cb56dd5ff4a4a750f154d468d0b418af8d4d9775cfd5ea0e1bbc2a5232b4c5a1321b0643cd2d89c0625c506c23b3f7149701debeccc3 SHA512 a46300fdb0230f52765fe683afb6f447b8f58169a242bcf5edeb4f5de501d6eca5effb7b952c1339b25c24a39262d085429670a470756535d1f3ccc4b648b357 DIST gentoo-kernel-5.12.10-1.amd64.xpak 66370289 BLAKE2B 74f9046d711902b5cb650c0c1eac07f4dab42037fc93ee3f9ec70b14a708d1244ec65d54e11e1ab169384bdf2663816dba33e58d22853f30133341296ce65db8 SHA512 e42a2d5122d17a6abfe75c17585e96d0fcb87ab21dd3bfbddce6f22c7b73b66daf358b642c4b3658d2d5e43a3c586da5bd48e90e00520ec2cbd696493510f410 DIST gentoo-kernel-5.12.10-1.arm64.xpak 62567249 BLAKE2B e20ff0b59f3f0781cbb7d1a2eb290e46cdb8fc0f4aa189bb70f7ad5d02b54a5a30bdb3d91c779bfdb04daf01efe5c85376c4a3faa52cead80743aae588993e26 SHA512 ee5daf6872844476018ddab8445e3dbd25d1585a8cd2b6195028b8f8690cb262befcfdef3e0267a422f30c4ca0036dd6c985331cbacdc0c8e79f9c7c9755f4ba DIST gentoo-kernel-5.12.10-1.x86.xpak 58113734 BLAKE2B 093fc8ae00efefb2eb38cd0ce145f16e046be2f5110ad18d957ae122b97a1d4a6e6d8cce4c42f53ece1dabe9ebd99640c922686a8a00f7186bdc5f8b82f44144 SHA512 5c58a7277e1c3b1017ead2584dd6c768b2b4476f0da0c3dbd28facec64c1f37a3db9119d869720f6f63e3e1c53ffb8d69efef8f5008e0a71f8f55098d2ce9d83 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.44.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.44.ebuild new file mode 100644 index 000000000000..19484744cb5c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.44.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 +} |