diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-03-18 01:29:23 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-03-18 01:31:01 +0100 |
commit | b0bfd1bce269b4a17b1075dfcd5c33879d956db9 (patch) | |
tree | bccffd4de5d0a0359b467b8c85ad76e7d3359ee0 | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.24 (diff) | |
download | gentoo-b0bfd1bce269b4a17b1075dfcd5c33879d956db9.tar.gz gentoo-b0bfd1bce269b4a17b1075dfcd5c33879d956db9.tar.bz2 gentoo-b0bfd1bce269b4a17b1075dfcd5c33879d956db9.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.11.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.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 c2fac709bbf5..ed406810706f 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -20,6 +20,8 @@ DIST genpatches-5.11-6.base.tar.xz 294752 BLAKE2B 324b5e8647c47b3d876ebc500664af DIST genpatches-5.11-6.extras.tar.xz 1768 BLAKE2B c9244edc9b61c2a190c72c93a33ea45144a788b9b331af3541c05fa200e706961471472fd586f5d6ea44c38858f62d65e4fad5424e27361ba27baa49e080b3be SHA512 db9e2da16874304103103f71f87799c4c7799ee87ea6343b0603d85cefb4ff41c49309025e4c74a870d88337caf0e478a73c8d3a755ae16760f9528c8ca77de7 DIST genpatches-5.11-7.base.tar.xz 309432 BLAKE2B 2ada3d18e2c5e55c56d00ce460083b1bcc0d4643f4ebc82a74acef6722c93c1585b9d4034692f5e332c39c0fa9a8661378e677710c5774c0a7e74bed0e0eec9f SHA512 87fa07527691a7b0c466db8625eb8892b8e7400af1f131265cb8e2e66e551f47a32d7cba9be6167d00e1f584de414bdb1409b504dad70e6139817999fb34a346 DIST genpatches-5.11-7.extras.tar.xz 1772 BLAKE2B cdd50d5c8d837cab21d3d06a259b3db19aad9de31e592665e5274e288fa66257bb20eb6b15770732de25bf9be3b901bdc497f5fa301ec7f025de4384dd657120 SHA512 29b62027052e57645b23ba3615697195e324aca7a1af5a46fe0b1d8d2c8a170979c6713c538788577ca22dc8b0d05d4070e656172f6c9388b8ff9a027b33cb5d +DIST genpatches-5.11-8.base.tar.xz 399768 BLAKE2B 13df51c5a4bf35b2a87a0a5ab86f94f8d2cb012db34b6bbc2fab65f4901a8066f00303408aa864cc735bfdded7ee27bebe476533edb8758b6c86b38d770f26e1 SHA512 5a0ce9facca4f5fe2d2d469e424cb35d77630151dd67733260eb759c43a549d63bf597de515403ef3ae47e020540d3aacbe52c28301288a2a4079a43c9ec4566 +DIST genpatches-5.11-8.extras.tar.xz 1772 BLAKE2B 2181060dc6ef787a5bb82d614774a576218291f822c968321744d0d81ac0b07919f9980cfb9b2f858f4551c2d84f7db9f58d6d85158cdca90454a8f17674ac4a SHA512 b507ec60456d1e95a28a4a7710df7b7187030444d21d9f65b3f5429aefd6851c31b2395ff30c76d257ab86e766d5bf7604befd3c117b624f02a77aa04ddefd04 DIST genpatches-5.4-104.base.tar.xz 3093716 BLAKE2B da8a9f572f4a22eb101a477ed2b2a81b0adaed65f1913c163b58dc958de661707733fb1e0d06e49ec342666ca0c212313d3a5fbca60c79779009b91361e23f42 SHA512 2ef214d2e4ea982c6702991519aaa183d6731f882fa59db5cc2d7832c7fcaf8de57dc2173f4a59922e5d90da2d046753b3eed609513c84c784c13d5be747303b DIST genpatches-5.4-104.extras.tar.xz 1768 BLAKE2B 7f335d61bd5f44cfa74ce2082259a48791ed90c21da4d05ff13c191adf1f658e68634c4cf9779274e6f775409695634ca40187754b0f9d50b406c26df26adbc4 SHA512 a8080605c59079063065d9bebc9d846ab8aab73f2f192f6c5becea2b51304a1e4d91e20d9aacd61f2cfa5b967bb8e30d620ddd60592017f308ad2f65ab7287a5 DIST genpatches-5.4-105.base.tar.xz 3163684 BLAKE2B e11b77067fb714f827d68ca0773ae5f097a4234f89eb0ea5bb04ef6cbf39d416a676696a8a97e1473dbd36205b84e681f3b0e94dec8cdab5c111883a7f911285 SHA512 42217305887d22987bcc88565c02b4dfd864449c10726ce4e819c4b3fe8af6d2898fdd453ebfb95a45af90843000e219f5447def048ca52ac7c509219396c2cc @@ -68,6 +70,8 @@ DIST gentoo-kernel-5.11.5-1.arm64.xpak 59869818 BLAKE2B 26d4431d1e9e3dd58f1d352a DIST gentoo-kernel-5.11.5-1.x86.xpak 57891193 BLAKE2B f9f1eed75c7a81067994fe07a8305e5d70001c4ac969ae4d39d222960cf70c5fe5591db0a4e19fbaca9faa53e6dc1206158c0ad071cf3907761a61b00eedf098 SHA512 9494f10ae5a2ad3a0232e9eca5cb16647e4967f5ded3b45b5752f2e380b1c21437b9239d2fc7336cd84a246b488dc405e389c844263834a1feeea9257b2f8779 DIST gentoo-kernel-5.11.6-1.amd64.xpak 64926961 BLAKE2B 3134919e40bd922dc334999c7b32d5810779c7833b2719ba0d5b2fb975afce70142faa3dd047c73f12384a74aa1eafd8e9900357feedb58dc8b074b563a61501 SHA512 fd4cfb53d2ca7c2a4869951c1dd9f32fe7878274d337b851b5dfd8fe3ab2bc7a0ec41164441ca49e0dbbde93dcfaa2969c1a60ae529b82c47ad7c1247be1b21c DIST gentoo-kernel-5.11.6-1.x86.xpak 57886583 BLAKE2B 6199bac90efa9c4d9db1b69151ddef53152406a8e8e3a67124dfef3abc4334ecfa387f70842c10751ff0b41efe9efdaa1aa0db675c86fb6b4f41f90ad597b3d4 SHA512 546185317fad3bac4e2908c9685b357cbdfd311ad4ff378b1d99c2b0212d4a5a68c8148efd48441647363d087d223a87ca2b7c8e6a4286513ca9eb9a74d44c72 +DIST gentoo-kernel-5.11.7-1.amd64.xpak 64458248 BLAKE2B 119a8440af915cd2b6040b6be0905614632bd6f99fd9f0d8cb3d3694e2a9720fd2b3623f5572441b570c1a46f1a3f49985a4c2f66107d327ad95761afcb6970d SHA512 4b03ee42ec8e25c286e85283026e3284509a689d1b91f1be3ec6312a8a85382a5718ca8f1c8708ec57118d2884bacf3d456c7448552390a98caefe16124afa4b +DIST gentoo-kernel-5.11.7-1.x86.xpak 57450576 BLAKE2B bce3c47f76d16da2b6865a0f890d34ad6b4cc9fb0e129c7c458e1aa33e2110d8633d3279ce8b50e3d012acda8e219c574c9d952f98c2b773d0a8783224af5223 SHA512 76dcf77c7f46706c44f21e975cc96aa48037631ec4349e5dd15b9488fc28b299ddf75db2f2c2147f64a32eb37ed7682c553d0a6b9940a89c70e227a097d7f00b DIST gentoo-kernel-5.4.100-1.amd64.xpak 61080710 BLAKE2B 84b33a1aa252b0957eb90ddd792f001942589d7f65399a5b007a2c831d0a1fa3b879814a55e5cf8b1ad6166970d3ac89838f57a2c61cec6b7b136b55d5ea4c7b SHA512 98b3dfd31a2830ed49dfc7094e9f37a39e7fbef54b648b4840122f2b53b8e970fb9c75a653445753d8e4efbd723716b9c56b2f99214c79832f3e49de63b3efbe DIST gentoo-kernel-5.4.100-1.arm64.xpak 56394488 BLAKE2B b8ea7a56a087e98706099cc151b652dba2a40e2a39ae99670b0989ce2f11c133f07b53dda1a9749f946719ab8a5b97a57ee0a12fcf3d9a568b498859420eeef5 SHA512 549ada0acf8874d3254c8a586f5c4d0ed4f08a103aee74befae38fc47d10c716d86f3f133b8ee3c49e61fcacda2298b04b5fe96bf35917b0963f922fe424e96f DIST gentoo-kernel-5.4.100-1.x86.xpak 52912122 BLAKE2B 5f1a8f7ccf3f9df6a89650d62df903896cf0342b9cf6e0fc265e67a887aa9a0608d62b023d9641711a2d9196958ddfbddec4e19f5f731356f5bf3a74421145f9 SHA512 6d1e5089bb817cf9e7401bb1be0b1d1433caea884b8ba4208c973fc7bbd879b65b69ace8fe3cba05bcb6aae0607ff1be9a63da42642ec2c32fe5ff7adf6fef28 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.7.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.7.ebuild new file mode 100644 index 000000000000..c31025c57600 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.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 +} |