diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-16 19:07:11 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-16 19:07:48 +0100 |
commit | 7e9eb6976fc9749a75623a408297224101a1e3eb (patch) | |
tree | b785fdc3818d60da5cb0a27b5a243266755a791a /sys-kernel/gentoo-kernel-bin | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.15.24 (diff) | |
download | gentoo-7e9eb6976fc9749a75623a408297224101a1e3eb.tar.gz gentoo-7e9eb6976fc9749a75623a408297224101a1e3eb.tar.bz2 gentoo-7e9eb6976fc9749a75623a408297224101a1e3eb.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.101
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.101.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 f52fd75bfc66..2a616b086d83 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -1,5 +1,7 @@ DIST genpatches-5.10-107.base.tar.xz 3012848 BLAKE2B 912470b5bad9a695029f8949dcbe161d16dfa82d68f76b0e868575418c5f2676f10fb91057913997fe5854beadf3a395a31ef72257d236785f7c99888ea116c1 SHA512 91ac6af37722f3debcc24acbc7b20e9c333479880bfcd74c1ef76a30e565e5551385ce5acb4087f5fde16cb6afdcd83fee275af63ba7b87b8841dafffa0b57b5 DIST genpatches-5.10-107.extras.tar.xz 3876 BLAKE2B d067bba64a51aee7eb835bc865660aa253bb08a49603b2b3bf7acd5cde0afc2db96dce1e4aa850a4b87dc064fdb0d394567ff182c178c5e59480e437d9a317ff SHA512 2e837983c89e7e79e23415ef382e0bd4e2103c0bd6cf1d6db0324b21e74f1bbf01e98f87ed6f41544f2b0b8f5dac426ebc7e27d4b87c7a38f013c611f9560499 +DIST genpatches-5.10-108.base.tar.xz 3036772 BLAKE2B 83a6a8d4bead879f56931f8920176e8c2c20d3de91a88eb0c2de3783e9f04493ea41721ef8cb53661dce3e927cabb10f91ecb1d2cde6c1084764ef595acd5b38 SHA512 ddf6f2ca84cf6816ca0560f0b22875c55e6a10a57d54d5baa04998de42265cd03c756483ad4b17b84b56af6e3d65ecef754ba527468e36d470e9748cb3d22b8d +DIST genpatches-5.10-108.extras.tar.xz 3876 BLAKE2B f7de9f6c0d250e38f05c58f9af88f7f28fc933ec582a64aaac188fc6aab5ac2b053a43b833a74001c5517d4f91d7244c768870f12bb3635a8ceb6517e6d92d02 SHA512 0db6d9d1cd21280228152b7b08f7a9a321a9a8d2fad1c33f43c71af3200ee1a0c2688e5469633513a7fddcb753a8d7cb6abf2dcd5f1b97b9c9117c272a7b5190 DIST genpatches-5.15-25.base.tar.xz 1018612 BLAKE2B 493b8c695f2bfcdfa36712143ffad423883273b48e0ae45db226d9e12b809764538716fa8dc257d0cb211f9db50f6af437cc8d19dde0e8af5a10accf85a3b4be SHA512 f268ace309d283079e0f491a3a77de56d4a18fa31bba643be4d215f931baf6a251d1e28c358d4b606b0ea15fc34e71f6b13901f5eb95f18ebad79f384bb6e5a9 DIST genpatches-5.15-25.extras.tar.xz 3876 BLAKE2B 17a20913e907e6b6a87afdd7775b7f9811bc3eed5374b957244242fdbc655519606063656bb8e5f51ded3168f73e99832d0cdf66e830811dc1e5ea0c0b8a2582 SHA512 1b8f4424996351a70c26f5a90c2490078c1a8daa80da578e2e3b3d1c4be6a4474d40cbd2e6fae8b1f1b9389cdaf2257e01a14ac6c2f7ece8a883d745555a686e DIST genpatches-5.15-26.base.tar.xz 1059876 BLAKE2B d3a7b03647f3ce4a10ac4b75e52723d26cd56f880ca786883c236b3569c7312555ca57325a039bf9713cb44b930190b2e099de6ef9d677a9cd5e8ef9179fb52e SHA512 241f1cf431626fd0f406f5a661363a29293a23057c58a4cf63bce6383d126e4f276be371eda670abec8699036d46c1896788f1f56d47239fdb9eeec6d5c8a51b @@ -14,6 +16,10 @@ DIST gentoo-kernel-5.10.100-1.amd64.xpak 65628548 BLAKE2B edb42e3b5bc34349dd9970 DIST gentoo-kernel-5.10.100-1.arm64.xpak 60932203 BLAKE2B 395d967eda0922328b1ecd3cf1ca21574db76d7a39f89700fd1c1b30fd7c06449541d38581ca5ca5cb85af94c819b181f31872e58f567a630350953939f3966f SHA512 10f980f0e565390bdc86512ff5979763180e2f1289d8436ea8bee2427aff3df9451d082566d3851dbc84af722ed23e894c262af70ff59c72014e4929cbcef801 DIST gentoo-kernel-5.10.100-1.ppc64le.xpak 55823761 BLAKE2B e0be918a29ba69deca2ac884b2b2b71f589f9b103fa485db06531f37e1421dc936352c2be0f736a90eb2a0ca48885207762a68d6d7b9b23e20b1e360b94ac3e9 SHA512 3ba76dc3eb17c2580f13aca9260092dc70d659cdbb52bb3efc7f7c9930df210891a39d91eb7ecfe7fa1d7f5ce7e8be03ecb924430c9d2df7b7d45f657c676250 DIST gentoo-kernel-5.10.100-1.x86.xpak 57284327 BLAKE2B 41870628faf312aa153fca3176696fa960fc8bfaf78f1322ee542d221c61ba83a38c91db99263fba8603097a9865886bbe78a336603004048711e98edf823092 SHA512 fc67b7c968a5be0959f2babe5b2b1057826e49a2c9e4a14d188572ea03ee9582cfd7de9990d099af50f2003e2970b58394196b23a36436449ca7f6c1bb29a913 +DIST gentoo-kernel-5.10.101-1.amd64.xpak 65646777 BLAKE2B 119dcba090593d077394cc5ec1fb4382c5b95447f32b3a3ebbf5258d4472cee1ca86e0817af2f45fba1a9fc3166e39fc1579aedeb5c3a4112ed1a8f0a7686a94 SHA512 26675cca7efbbb59bb64a9f25a066cc40608d83acb762d88a7bd84cd11ee956ecca1f1466a945d98e10051eeae40844cf6693ed72372bad9f844a5aa42e9743e +DIST gentoo-kernel-5.10.101-1.arm64.xpak 60926396 BLAKE2B 3b5a06981a48e7b9f8c400aad3da2589a3e5b6a5c0d44329bae8afc5907f59196e39956a404ee9fcf287abd1377a761f5e0994136be185c52622953dfc9e7aff SHA512 9640af92f8476242e994c12c8f17110354f24976be834c360a02f050098b641990db87149edae7a4d349c62e193ae0f02ea16d524b4d107feee6030d54e800b6 +DIST gentoo-kernel-5.10.101-1.ppc64le.xpak 55677736 BLAKE2B cfd45e9c4e79f32519f50dad4345e8193b5d4a9bd590054011f66f88c8a4c25df4397c4d364e537e7bf00671b12ef4fdd44f8143546091be7ab248607688c8fd SHA512 258c82818bdc6739cb6cd05391e8daba21b5f71fc38402cc8d6531f9ac53a0b7b65c2ec4e755451aca734b00bcd6ead21099f7fef2b3dbee88b5b3e4a45f20c3 +DIST gentoo-kernel-5.10.101-1.x86.xpak 57283126 BLAKE2B bcaf5b1054bd086fcf1853aebb1dd13a1f672dd4ea631a06c7fbd78b35e07dfe842aac07344026925fab1499fa02196a9d9f00fbc3d77a4dd5dc0e508c498844 SHA512 51f618f5e6339db02f682462fe317a6001f9ab082b895db69b0a0bdaf9f0856082ee4381754b46f4dfe0d3a5bdc8b208b92d03fde9bbfb26c2b8c6477aaf90e0 DIST gentoo-kernel-5.15.23-1.amd64.xpak 69156149 BLAKE2B d44b2969462458282bbea66c2cd7e2cb7c9b603be520d77bd0b9e39b43ed182bc6a5a61185d40d015369c4a377d130267b93c108a2373518113f6faaa00ed3ba SHA512 067589d15c75311adef79c454ec68516076d891cf2d94569881c5b5dcbafc8a1cf229a62dc4810df4b68f8f1eeb0424db3036509f6e4189c76c49ae3c2449621 DIST gentoo-kernel-5.15.23-1.arm64.xpak 64071650 BLAKE2B 51d83f9ae6593e93c73b7f9dd575d4200804d3df7d3c1d0a52098d69a7a277d1ea5682bccfdadf769f319527ed7b41ce216aaebe75559fbaa4cde956b63cf66e SHA512 3e149646a757163bb6205ac7ce0e19b1d3812d160d8874a120c8eafeb2d3552c34f56a33f31d417ddeed2adbcdec37eed492f6a2b7b384729462cd6861a70fe1 DIST gentoo-kernel-5.15.23-1.ppc64le.xpak 57841330 BLAKE2B 92ea96a25fb0bfcfac67bbed26bcb3aef78b253007c890045936c304223652751846d76ba5e963e3979c753f5f7cf6a680f6a7f2b20a1f25fca6c3443ddc107d SHA512 daa756525faf67274dcdd780b501e70e4b326466fb563637fb9e9ffa6d65eec9b3f3f37721b855ff640368c81a8a7ae553f7c3a76072bbd779226bf41e54a8d4 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.101.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.101.ebuild new file mode 100644 index 000000000000..75080d99ff99 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.101.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 +} |