commit: 49689df379ce418c096213384f2e614a7d7ded6e Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri May 14 21:46:48 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri May 14 21:58:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49689df3
sys-kernel/gentoo-kernel-bin: Bump to 5.11.21 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 4 + .../gentoo-kernel-bin-5.11.21.ebuild | 117 +++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 8af508afc51..2da2a26fcaa 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.11-22.base.tar.xz 684008 BLAKE2B bd081c8a40b4ebba531a93be0288e DIST genpatches-5.11-22.extras.tar.xz 1772 BLAKE2B d0cb5b3c5b27f9f7ad9049541d0e19f37198d29c1bc4cf2dc0f2644c7cb46638e6adac030ce033eae048ab10de4a9adf60c3791733fcc01b1e7e6e1bf63a027d SHA512 c91a0538702f83869c75140af61eda6b4e889007117549eacd0877007dd5136eae45aac72390418e1791101e8a4dc19440678b7912bb01677ba788c76239bc9c DIST genpatches-5.11-23.base.tar.xz 780560 BLAKE2B 1a825e657879f0d6d6ec51c24ff52e844de9ed644f781057a7d901ae9e8a02f7b90ecee465f608502c0af510e58461b64a1f5125f5234272d6d79cd912fda828 SHA512 8c746072e5667ff35caf2bc44917a0016052cd8b8d67000f9a8ae666a75db4c42e2a5a8bbab8e7c6ec8cb85d0b71afc50aff7df88019ac3774f4b43527e6a88b DIST genpatches-5.11-23.extras.tar.xz 1768 BLAKE2B 0dc1b2b6d35024f967f941c2843cba1f32b0dbf98103b8d1d821a6e5f8abfeb7e9a3f0d8ca4b908b646c5211e3918da60f54b07d54b865afdd4d6906a40d4595 SHA512 5bcf298f79673b0731870a52bc8668fcae1d371c9df90488f396b9e4394ca020f7b962bde7af03a862b3973a694289fe32ae28226c90c82967dfa2929d154ce8 +DIST genpatches-5.11-24.base.tar.xz 937980 BLAKE2B 834f1acad5385708d36336cc4021a163a07c3e5e9c274cc13bfc011fd99f864134adb3370f712a2e2512677c80b268762e254251189ed46e3bd4081cd83ebf45 SHA512 55d6b28b85d68a9721c3cd8a622df27e76d80ff7a010c273a42d12ff55224f1cec512c8278a5749559e95dbdf2f01bf3d7dbcf7b827f0e2df58e5e08b73ab912 +DIST genpatches-5.11-24.extras.tar.xz 1772 BLAKE2B 5fab1d09919373c8c1dd0936c52da0909b577a17f2d386634a033e2c593fbdbcdfe18211171dce80f3d2ce8bbc1604b77a3a9fa99563cd228ee74c154ff472a2 SHA512 65b4033413fdc7ae8b3c0e6a915d21c879b3ecaa5ff2c4e87e2ce890dbaab161d16f41de6a740dd8096d4e215f021de125bc2913f5b711b28fe9985149a80e63 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-120.base.tar.xz 3365276 BLAKE2B d72fc4839a6716278fa6144c4ec33ac24dfe1689734699fbf9da96f9ca0c91630c79cc31df3e86d8661ea8cb4ed7295a31a56c6da097b2643c35a0391f8aebbf SHA512 a84f804aa8287c90e23693e8eb518b041bba05f3fbb1f3bcd2f9e120c758b871e3926ab73cfe1a2363488000d4ece206b95ea73726be0900172060b8a358a855 @@ -35,6 +37,8 @@ DIST gentoo-kernel-5.11.19-1.x86.xpak 57672197 BLAKE2B 6df796e0b3ea6370074282566 DIST gentoo-kernel-5.11.20-1.amd64.xpak 65858318 BLAKE2B f1df321519818dfb9793d0e777923e5bb9fb3482772ad0093963dad427dfdfc8900e5fc87a103b655befc23373d3c9b78afc59e44d02715f4eb3f7c59e002298 SHA512 1cbb4fb14434713af7c0fb530f47b2f4a34ccf8a951f2f206d7f7d6ba3bc05ec052398fdf905e0db33db7032746a01ce6cd422b7576fc681bf08d926f2b930e6 DIST gentoo-kernel-5.11.20-1.arm64.xpak 59763123 BLAKE2B d58f09c3ba6f128e1d5ededa610f362de5c5e3d83fa5fe90debb483e18f37df7fc560757c74bb35d2a65bb0bd535cef706f8c20a4610cb5402952543b8f221ac SHA512 0f5fccb84b71859f8e1df59f5f2f5c516d4a6efce9cdfddd39314c05bde34b389bc495364842a24f0044e433521cd99e2ecafc3b12529aa2231fbd04e79bfd87 DIST gentoo-kernel-5.11.20-1.x86.xpak 57648197 BLAKE2B 7fbcdcb48e752fd594287b06d9936535156f6cf4fe5370c5ac7a98c1e6dcf77bc3a78bcfce5baa101a47eae65fc58aff3a725644570fd816e9d2c56a74cd4f86 SHA512 ed2c69a0d395fe7f53018e4ffb4ad66cc08b9908b48f5d17f7fc18a5752f0f7264eb8355610fd0f23803191233fdd28d5bfe4e7eb24f5d1ebc56f8d584a6539c +DIST gentoo-kernel-5.11.21-1.amd64.xpak 65876585 BLAKE2B c16eb8a5715e5bb06fd558687a9cebf58639346c919b32664d7f03922fe0a250ec3be58a425fabd512a143331d22a3c7c20bde9c86f7bbd94d4b4d2c41b1e0ee SHA512 acaf8f44546ae78ddaf39a7b8d36d220dfcd72d6cf812f62a3cfcff4a803ba7385a915428cc5d5c01d8b92b3fed9020f185f8fc9c3dcab53d28be277f4b09f04 +DIST gentoo-kernel-5.11.21-1.x86.xpak 57640449 BLAKE2B 7ced7266ea2f1088979c0ba5c9b9a8ea2f72a92469ab805e767261d1845f30e2d498c1b42e762b97487e536f6f92aabc2db33ee5ff9ffd59e311763fac6d503b SHA512 898956702a54bc9314bfd8a8f825dad30d52cd3fa09f70c46a1698fb8203d92fae5c5a426aa91a7ab34647b1f889fa2068a3822925c438f57c4559be1feaaf44 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.11.21.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.21.ebuild new file mode 100644 index 00000000000..6208453ad7c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.21.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##*.} + 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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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 +}