diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-29 23:55:17 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-01-29 23:55:55 +0100 |
commit | 56dd0c89973f4184b0e9e783b6a743eefdd14f48 (patch) | |
tree | 63f85866b0bbb57fe2bb9d2e849e6ef3955ebb24 | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.15.18 (diff) | |
download | gentoo-56dd0c89973f4184b0e9e783b6a743eefdd14f48.tar.gz gentoo-56dd0c89973f4184b0e9e783b6a743eefdd14f48.tar.bz2 gentoo-56dd0c89973f4184b0e9e783b6a743eefdd14f48.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.95
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.95.ebuild | 131 |
2 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 988690749f46..c139f4d0fa07 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-100.base.tar.xz 2822696 BLAKE2B 8958af480d9babf927d8b1ac5ff DIST genpatches-5.10-100.extras.tar.xz 3852 BLAKE2B 7ac718b6080adb6a641ef7b976185b09ddf7f225fcaede25afbf6a15bf855eb6dbbe44416fcddf1ea466c36433e04736c68f032a1c79bde858434427c6658a1b SHA512 558c9fc3279d7fb507ac8251369966dd40282776890da045d96eab328fd7300a93dab12afbfabc3dd52f61d49c0020b87cd4087d4c8f840f3443ed8ffe89c81d DIST genpatches-5.10-101.base.tar.xz 2955936 BLAKE2B 3370c569b41cace5d3a2712ade28dfe0abb2be3e4a5578356a6c53dc241a38eaf402900a1c1c1598dbad32f304244a286b538f98318f4cf6e66c18b74ec5bb7e SHA512 901de3d038a85c673a1645e5e58ab5ac195cfb1b449dbf424410db22e5855dadcb75f70b406bfee37220652f300db3a8588d093db9da3d011e2d5f100486d184 DIST genpatches-5.10-101.extras.tar.xz 3852 BLAKE2B dbf3e7e310992dbaf119a9f9e0784e63bc9a37588ffda6f532fb70c798ab50ca97e5083d3e63451d33d67ff46229b7c67ee0e92fc1d72d96f4a64cb605a232fc SHA512 31ca45cb7b38203f39e1b10d5e23835e226b3adcfe83fef0d9a6cf9d7fce88c1249f25aa19188d39042e44d733ab4a6cfab1ac37b5f945488e81e157a1b9cd8c +DIST genpatches-5.10-102.base.tar.xz 2961600 BLAKE2B cac29a452129492227feca71107c20eea35fc7712604c5d124c15e326c93cfba3105f1d5e08486e2b8f1934983ffe7a8a52e6b6994e101a55a5a1fca832c2fe3 SHA512 b40778eee0defffe381864edb70130a000a9380358f6061439e2e58f37ee798afacef9599d1454a519a29e72bbc1fbc8cdffc50454fb2ab3e12df4b36b45bc8a +DIST genpatches-5.10-102.extras.tar.xz 3852 BLAKE2B 771f6f91cc36f7c18ece75ea1b5f5bfd47a304ae60b6c1307164e5b96e3cc22eb987733368047d48193bac0b16ca7be9ddb092d8abbe1ea710614ff1bf31dfbe SHA512 8058f4cd33ab70adaebbf0ef6981950c35e7a3f2451c4e7f81ceda786838150d514661d3ac51764e48747e1db14d5d1c03de64798e2003c600dd28ad6a675e5e DIST genpatches-5.15-18.base.tar.xz 697228 BLAKE2B 01a377a9c1f2709ad2cde18e3094d37ba2414c7c3d949f236d41f5d36e8c4513331c4859740ec34bc8418d6fb2457fbb7d9f7c64f6f596795e1abc9a02c9e340 SHA512 14a652cf64e8e22539a61f14af715fd1a59644875a8a61473b5eb66bcc7b5f4bb34602463b208114bb4dbb73f159932983d48c0567a44b5090b9ff8f52920eaf DIST genpatches-5.15-18.extras.tar.xz 3852 BLAKE2B d3521142bf5ece893429ec7e1b6aec724fff15fbba2f80e9fb092af4d40bc258e034226989d2502ee258faa0c7e0aacd885499d22f4317060d61cd916e00e7fa SHA512 f1a98d3875541ec4b8f3461c1af8a9b37fd4f5a64e7d717e906f851bf4e976e4509df4b8cb67b9e210215cc33924d039599cecc8f4892dcbed510e00f8119df8 DIST genpatches-5.15-19.base.tar.xz 925776 BLAKE2B 040a1cabc9217a91e8bae89ef7878e61056f3eccc97472a27dd2b3c695b2bce59c487ff303048d1f98553349c0b6227d0a3dfa837ccfd6cfd7b1147606b4703f SHA512 b2facd0ba66001ce9327ef2d037097e78e4b9c8e02eb5b66f9ab9bacc6af5800ccfe576ca4383c263c597a67e92b96bb0287140396a602f15fbec403a4173a53 @@ -20,6 +22,10 @@ DIST gentoo-kernel-5.10.94-1.amd64.xpak 65625902 BLAKE2B 73053b4da769a768cb589e5 DIST gentoo-kernel-5.10.94-1.arm64.xpak 60935202 BLAKE2B 39bb07264772f1957e46fc7040893e40fd05b471ebd849f84ea430bc9a3a76aeb886024877889b2a8cf537c16e03e9e36eeb44131e35729a5a22da28bc6f24cd SHA512 6d81502f8961dd64f6001c1f81e6a233ad4839b14c67d822b5b3e0965a856c771ef4d5e1dabb1b279deebdf0049e16cc850e58a1b813471410cde2527992d264 DIST gentoo-kernel-5.10.94-1.ppc64le.xpak 55686563 BLAKE2B e6a5a588ddb205248a0bd2f8c5d1a27a523f11909c580a83efc63bf00a8d482add9b49fa7f14520e95e7183531e9d233ff8c06c9d08b2eaaf41cbb727d5a5196 SHA512 a316eaec3f88f4dbfcb8d4ba1e8333a361a07c9fdadde1f6f2532f2213ceff0ca1dd1e08498db85ff15c474d901fdb0a7afaada91ce6952c942e2bfe6c5e096b DIST gentoo-kernel-5.10.94-1.x86.xpak 57279632 BLAKE2B 3d2d14ec811893237b938e937055ddc234043d8137e9f2a97567749c3ab6cd9af8b3dc6d7fc708401d33181d1f9e6e566f978b27594dadad7b5fd6d4e9113db5 SHA512 e46025f507d9b25c6e5cf34c731fa94957553652db6ea23ebff4ce6e6105e8345a9753ff20e1a23257a3b7dacaff4c9ef9c0dde4b1af99269130dde83c17cb61 +DIST gentoo-kernel-5.10.95-1.amd64.xpak 65650777 BLAKE2B 7196ce60d1d4f3a17721f96691d36a8eb620e32fe94489c16bcad52c19875d0e6f2452fc69557fac03f5f768c6d68039af84ac6b75f1d7be849e77f7732aadcd SHA512 fbaefc72eeb1096bf85d34828ad7669ebefd4148ced3ae67671c2d95512f072f258f613fcf75cf9c44765ab1653301e3774b76b051a57aec6cf8dc19106b8ed5 +DIST gentoo-kernel-5.10.95-1.arm64.xpak 60977898 BLAKE2B 8419461a8835770b257b7c7bde37bc1811ef65e4ab775544469c9202c5380cc451b680d25bec30633cfc53b0397a618143ac3af776609418b861ded4b1980148 SHA512 ab0779cafb11ec1fac832bdc68df6d472c24e5230e55b10f61aa42ee2a8e033cc6ffac88c6f01875548cc504b51ca8f146da6fc5841fd54c0fddf42cc79a1048 +DIST gentoo-kernel-5.10.95-1.ppc64le.xpak 55800003 BLAKE2B 15d1cd5466c38111a096de0f218d66aeaabf5f27cdcaba09ee2d1ccc8fb8a531bba72929cb89bbffb2653d689501fb45d7caf4aecf2c88ec043658e0c4c69e9f SHA512 05aee25c61c0d986fd7aa8f557e56820a0548fcc458d0c5854d49be98196c58592d47d413aa51764e4606ece0255dbaec86aea689b547a4f408ba241c83fe5a0 +DIST gentoo-kernel-5.10.95-1.x86.xpak 57285663 BLAKE2B 0d37e605a844435b114ec72e364d851342aeb0a1a6788d9dd51a676a33c365cbef913be19dca3c70979aaaa33fef4992176714053b623e58b91678b54a5479e1 SHA512 128f800655a8f1114f4aef4d2553c044c6957c289d960048325953c3a0b7dcefb2e3cd441bc76363f05b9605dfa65a40017cc416a2a4dcc3f19dc2468771f012 DIST gentoo-kernel-5.15.16-1.amd64.xpak 69106038 BLAKE2B 78623923862279db4eaf1561fac7caf5e880a7a76a7abd636b25143f79ab0a1a84efa41bcddd0b85d080be4537d7dbbf7c7e7cee761b25836adbcba90a18846c SHA512 3251b45a41c696c047414d7eef2a3cb694d79b5de677b273ef32e45d785cb64b31a2418a621f1f2c306a9c7df5dab9278323671a6ec454085d1b63fc5cab0136 DIST gentoo-kernel-5.15.16-1.arm64.xpak 64049610 BLAKE2B 0d1ca4fc9a688627ccfcba8c5df1834e3788c321a46d9beb8e03521f786a2b5d8d9c5a5d53b45cae81b50f12d33cfff023ac1dbbbd0267d67ab0cd0cb37c925d SHA512 ce6b3741a01df1fd724d92a1543f71a09564230ada4b552bb05eb7480123db4406e25898566080ce81122fb64e94cf04fd161f1d04788b73a641cb213cf677c7 DIST gentoo-kernel-5.15.16-1.ppc64le.xpak 57775378 BLAKE2B 54cd093059112ef1f92eb813be1717757fc398e6c5e8b5b1e961c43c4f585aa385eddd339c73dea161b623194e66df915d580576cfb52199356c18db7245bebb SHA512 ecf60dd546c5a1a63b2dc66f4e368a7a5797b193f382024c372af0a53fc6d1dce33e9e79023bc593fdfb9d0ecadf1e48765852b790024f3b0ac01e696d8bbdf3 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.95.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.95.ebuild new file mode 100644 index 000000000000..75080d99ff99 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.95.ebuild @@ -0,0 +1,131 @@ +# Copyright 2020-2022 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##*.} + 7 )) +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 + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.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 ~arm64 ~ppc64 ~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 + # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg. + ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.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 + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv boot "${ED}"/ || die + fi + + # 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 +} |