diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-03-09 17:14:54 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-03-09 17:26:02 +0100 |
commit | 21ae9add587b1d3adaf28896d04e7fb8ccf6f6f6 (patch) | |
tree | 4671ffd712c91f85618bdd2812a6cb97d6b388e8 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.22 (diff) | |
download | gentoo-21ae9add587b1d3adaf28896d04e7fb8ccf6f6f6.tar.gz gentoo-21ae9add587b1d3adaf28896d04e7fb8ccf6f6f6.tar.bz2 gentoo-21ae9add587b1d3adaf28896d04e7fb8ccf6f6f6.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.11.5
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.11.5.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 c250390cb5f7..638de39823e8 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -12,6 +12,8 @@ DIST genpatches-5.11-4.base.tar.xz 247120 BLAKE2B 64e8bb77aa399a797a9dd9726ba51a DIST genpatches-5.11-4.extras.tar.xz 1768 BLAKE2B 4e7641168121f833915d68989504a437d496debf78acd943350582b5594c112a73b240e01cdfedf65d352f925d7d4e2cbf2f6ea67dfad1200971a4f9da28996b SHA512 4e0788eeb2080728ef8161e5605c171c45740dac2d7b16c428cadb9bee09bd6f129f98a5790368eceef7b3f8d4f5e2ca5d12df52346bcb84c44fb826d72072f0 DIST genpatches-5.11-5.base.tar.xz 282264 BLAKE2B d08bd2393a682ad1003551b5873f6a905503dcb2b9c21c5cf5af4f760abea3614f097872538cfebc4e1efe1305530d37fe287d2c0615ea1133d06e158f3c39a6 SHA512 ee2762cdf98eac908fd0836aee7b8c01a931a4e8516954b962757bdf9482f083644ed1ec6526418785db11a9c87ef3a7bc9a458d7a1a3a867e908302fef330c5 DIST genpatches-5.11-5.extras.tar.xz 1768 BLAKE2B b05e8e796eabebfe572ec26146e36152b2e653f2b1a0fc9169a7cc0e8022d27b396e541b2e683ac1cd077ba31c47f9d663a5deb71d1cbd940ea7d85aa80ec4fa SHA512 d97f60b3329fbd7ef274ba2a6ce95bf516886fa58a5ff13f00998c550b11150bda56210bcc173ba2982fa8beeed6bad8529b8fdce60bd36c12d7b64a7db1f2fa +DIST genpatches-5.11-6.base.tar.xz 294752 BLAKE2B 324b5e8647c47b3d876ebc500664af314c7288966d4b375858e66e3d71200ec6624ea7c1fdf348650e9a3780ec3b9058b8e4b2836d5f86ce15d65f3904a1a4ed SHA512 467bafdf407ad2752279935cf5de62de1e5db868efde563369ceb2dda73455a83c313dd60a6ef633fa13e60a69c538de833335b9d2c95ac2d8a63d48994c5958 +DIST genpatches-5.11-6.extras.tar.xz 1768 BLAKE2B c9244edc9b61c2a190c72c93a33ea45144a788b9b331af3541c05fa200e706961471472fd586f5d6ea44c38858f62d65e4fad5424e27361ba27baa49e080b3be SHA512 db9e2da16874304103103f71f87799c4c7799ee87ea6343b0603d85cefb4ff41c49309025e4c74a870d88337caf0e478a73c8d3a755ae16760f9528c8ca77de7 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 @@ -44,6 +46,8 @@ DIST gentoo-kernel-5.11.3-1.arm64.xpak 59778759 BLAKE2B 350fcd7e21b5884f3b0fb0fb DIST gentoo-kernel-5.11.3-1.x86.xpak 57808390 BLAKE2B c8fa0b6c4736face65fad6d3caa83311eb1457a1bedb65401c073d800c90634298e929b4acf6e2212dd3b2f863dc06b28ad67992ca1c81b21531bf335ca21e1b SHA512 2f5aa0e7595120c8bf0b552c88a22b2ddf2d2a0028c8e2154250b07d526d66becf6e459fae64b67f69f1c91f7afc1109e7c13b72b2f48aca1a3b36ec6ce18fae DIST gentoo-kernel-5.11.4-1.amd64.xpak 64915116 BLAKE2B b7fac7ed149cac31c3bb670f8aac990aa46e34177537ceff2dcbe9a45345f295089643463258199961def60e040728f4bdf1a4833baefacea7e589d9a377c749 SHA512 6c8c9528e06f8d0abf01dd762eaa4057cc4823bcdfe95d4e9cb1d4dc0f51f696d3ec98c201549d981b008afbde3377f82ebe3b7d7ad5017499b7c6b83b38c6e6 DIST gentoo-kernel-5.11.4-1.x86.xpak 57890628 BLAKE2B 53a80025da8ccd72921e21ddb16538f111b953c9cdafdb791b26b926e3ffacce76eec7850bb2f72c6b721b89aa617e33f4e49822600d294293d7d0b2b0bdd4e5 SHA512 39864af55c3e8a4d07702de0db922e28c176841e9c7599251acdd67c55820bec940eff29867f0eb9161367f8d0362a7bcf7f99a14b2b36709e76aed1709e0a75 +DIST gentoo-kernel-5.11.5-1.amd64.xpak 64924579 BLAKE2B b4484bb69d8355f63acecadac5a604ab57f61ae87a4341cba16c6b3cdc35d19c64c6d8042fedc69aa1272c151d09ba5957b9b26f2a6ab067a46451fd0a928b9b SHA512 218d649adc456f13055e7ec7ce3de1ead2cfdcc41d6d5d023de67dcc7a21679154dfe057dcf72592ab7a7315a8cf1a4d7a96f7904c21f0f8e219f3a277dae21f +DIST gentoo-kernel-5.11.5-1.x86.xpak 57891193 BLAKE2B f9f1eed75c7a81067994fe07a8305e5d70001c4ac969ae4d39d222960cf70c5fe5591db0a4e19fbaca9faa53e6dc1206158c0ad071cf3907761a61b00eedf098 SHA512 9494f10ae5a2ad3a0232e9eca5cb16647e4967f5ded3b45b5752f2e380b1c21437b9239d2fc7336cd84a246b488dc405e389c844263834a1feeea9257b2f8779 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.5.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.5.ebuild new file mode 100644 index 000000000000..c31025c57600 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.5.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 +} |