diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-02 23:01:56 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-02 23:05:56 +0200 |
commit | 24110498370b0fc3745ddb7310e9243189352148 (patch) | |
tree | fc4cb75d13e8dca399e5a87cb76c0c2558b8af57 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.4.116 (diff) | |
download | gentoo-24110498370b0fc3745ddb7310e9243189352148.tar.gz gentoo-24110498370b0fc3745ddb7310e9243189352148.tar.bz2 gentoo-24110498370b0fc3745ddb7310e9243189352148.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.34
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.10.34.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 8ce111bb7d5b..97a73ba90078 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.10-35.base.tar.xz 1115708 BLAKE2B c07da3088341dabf91bb2e693586 DIST genpatches-5.10-35.extras.tar.xz 1772 BLAKE2B d53e3c4172e37bb0ab0a7d5010438fec49735d02ea6476a05873673d4876086c7c2b50927a6c728e17142649b32085937ca1a8aeb1ba98ccd1ed6158ae86b4f0 SHA512 46854cc6dc4f72efd8475e7eac8ba3c87e800980dd612380bc64a3958cee89b1339a079e7fdd08c5d50303db22f5ee00b371c3989fd39503cce82aff8081de9e DIST genpatches-5.10-36.base.tar.xz 1128612 BLAKE2B 8ffa236953f848761e4f74e35096dea4cddeead895d7fdb092665112a0321989ee437a4899f7728a644ef8f44f68677418b65bb9b49f01d5f7826b8d1590df64 SHA512 3ba39383654da7cdcac689df52acc3c4f9b596c08630aca61775c10095d98c61e846689fc1486e048b8753ac51ce7f41c1262ad3a57e9d3f7058e8c401cb17c1 DIST genpatches-5.10-36.extras.tar.xz 1772 BLAKE2B 47a29ee8be54c19f7562f1d8d6be3488cb8b470e7eb9d3957cf9f67ce7adcd59e1e705aea9823c2e817a8bbef5eafa0629314f50b4d44b329437f63bacb70e9e SHA512 3258596692745afa4857933ebeaa06a53f605ce640d79808ba45d40f3b4cd26dd2bec458d17c16da74f706cb296e00e860c9dd968c4477b104406b956428ac6f +DIST genpatches-5.10-37.base.tar.xz 1128824 BLAKE2B a8ebcd3b109cf553f145ee5643324c26c9919b6582137c4ffb3b2bb10bf9c1547e2937c66dc1be69ed528f3df542d95d1470499f78e8749fd23c74506a4c7f45 SHA512 b24d8ff8ec1bf8afdaacf35cfef381a87d61ff319fe90c00684bf9b9210831c9b91e28fd22bc2e0b24179fe7ff6bbcc40a12d6eb11c90e5a62614ff92167c3f8 +DIST genpatches-5.10-37.extras.tar.xz 1772 BLAKE2B 5113e357d91826a6927de7bb4cc655055ac872bfb221abdf6d1c81f1275557c4204e655ebfb992b6c976183d2e5112e96850aa5ee10e3c2d2d4612223ad14f56 SHA512 7287b929dadeff3624e94543a03c0f83b6c3af0ef87161a02b8d98f5d804f261438224ecb923783c613a9d408ae0196e0ec7499b233da6aff9d46e523721b45d DIST genpatches-5.11-16.base.tar.xz 567216 BLAKE2B cee97030c5e59b9d7eea622bd4b8d99f8ec86cfb5e559abcee5184d0fc9acecc5f3b048f0c8f8949f5ea52169ad60e182c2239778d4cf758f41daa1cd593fd71 SHA512 f3d320de79222c26d5fc16030752fce85d3b4cd2c9a769da59aec64f410c1a63f76d7c4c429932a046a4611a12fab2c2f259f7ba4821b7381d1e0a7a2c2df9d4 DIST genpatches-5.11-16.extras.tar.xz 1768 BLAKE2B 12e78dfc00d3ce8e0b9903f62a6c4b1219e4559a9e6e736d5e4f807a429d91531d39e69f46667297f65824a074af4cf7665e741086efafff83bac195fe649455 SHA512 091b3f9f3589a098c35c3172f1192c56b774f6fcf90c30230a4a6de237db14895f13a75e51324acf83c5b5d8af14f636034eb3bbb33b6070804adf62ab7ad194 DIST genpatches-5.11-17.base.tar.xz 626484 BLAKE2B 4b6d07334c1da48619d820b102df5bfc2d15113d97415e9ad789e8484a39a66509cc360019368834c525a66af0b577b165c5bb898756a60372f1bb21802ee8b6 SHA512 36ca2dcdccd03be5f3c3a350c4f721d5f00adda12c87ba08146b13fd034644ed82eb9e3151ed6210fcc16a37a7ae10d4353be5477a320110e8d89fff74218ec4 @@ -51,6 +53,8 @@ DIST gentoo-kernel-5.10.32-1.x86.xpak 57243485 BLAKE2B 60cbb54acd5f311f1d79d997c DIST gentoo-kernel-5.10.32-2.arm64.xpak 59279295 BLAKE2B 61aba86c3ab67ddcea5bae71a12e354aea1b319a2bb0acfdea062bc036cb9d7880c1729000aa961eb6bfe8b1a8bf43c4a4e0a15b620e0a9940bc19b56151d271 SHA512 26345c3246e710bd7c9106269619850e37749afa8f8fb6364230cc45486f614e18deec356b35bef1ca311623cd87c396285a12e6c6bb7d0908ddbfa09fdba5cb DIST gentoo-kernel-5.10.33-1.amd64.xpak 65526470 BLAKE2B 205070bff9d1a7f7e58a26fcca367c325272d0f7e0cab1bda70fbe451ee7f5ee9a9a52d89cadc43d879e1d026a0feae2d8cd3756b53ab1b94f797af88bd3b038 SHA512 d01f6e9e00bad450cc71e2cf079d0306ce2d3f234d477cf44507d984c64efb77be3b20b27c05d81b41cd3329e6bec654a284202dd409c74f625af65d4f1d9c15 DIST gentoo-kernel-5.10.33-1.x86.xpak 57243809 BLAKE2B 209b1c49bb4d43ca73a438b021bee5274a003caf6c94fe1448f61bd39ba4ce6ddb021125b998e386edc16662c5266945c876b2ad4d5986f177088a2425a31895 SHA512 5399b3788dea2172112d3e52082bfd5a2120accf50acdd0a5a4897e495413b706a237c5f82ae6dd9a6e8a95c41aaa1f06c475043fa4c88bf81dac11b1fab79e9 +DIST gentoo-kernel-5.10.34-1.amd64.xpak 65503671 BLAKE2B 130669ba72a60ab46b5925a425cde7ce6ca9e4a6097bb07f579c237933c9e7d6c5515a66844eff947d2f7710a5ef3c3345b0f5c3fcb48475d13a4dacd82410e9 SHA512 4075bc549479915431eba85258b3614ca6a0809a069b2f595acbaf550be9ed0002b862fc7c10dcd87950e195da9c9bc455fa93182d42a67db276cafee662fb5d +DIST gentoo-kernel-5.10.34-1.x86.xpak 57242621 BLAKE2B 14d65a4c58ba3e115ec868dac865f1ccc44db854815b14a657b08d07de8a0e5ba37cff3f1546b6a033b0578bf1c8fcf7f55a7d37d6e14b1ebce1df92d78bab94 SHA512 b5c32babfbc891d0f7e1f4c6aa6ef18ae46819e2c65bec54123e62bea50a345888571ab26ef2c56455f81869554fdb1516e942ba77bca49d5861d9ae23a0914a DIST gentoo-kernel-5.11.13-1.amd64.xpak 64685029 BLAKE2B 7d6794c5fd15434d2ad93d36678476e4a6aa3ad9ff77140a0bc8d74b0c87155898e8f1f76dfd40f72c878d9ddca7b7f1a9f0d4be2a600c5e2c18a77a3439e9d5 SHA512 d8c0fb975ee35e6d71b3b255800179805c9e70bfa7ef5299a38145c6cfd4f60720281c70f2d16a409a10c4ee6c6f26ac2e0c3151b114ced91c747371b59885b0 DIST gentoo-kernel-5.11.13-1.arm64.xpak 59816443 BLAKE2B f3bd4b929cd103f95b91f0c0f28f324f8e316e1cc4b310742d159b8dbdb6c288d9424984e0859873924ac7eb34f12278b2086ad48fbf11da955f0b390dfda619 SHA512 6aae6cd29857eb897a167e359f9628692803bb75a0a1f235468a1b95e9c2f3d9525f33d6673b5c12edb5d9feba29210a79d8030d151a5b7260119a81eef57e1d DIST gentoo-kernel-5.11.13-1.x86.xpak 57618749 BLAKE2B d7e3d71d8eb7c35b4f86bb95cdf945f4fa7eadd0b87e380ef37f3b63385a15566246e91f12bffc0a7e3e42285f702cd99387fd9b7e11cb59fe3bc2a9da83f160 SHA512 51450b58469fdd8b663ee7b997b392232c658281fd243c2508f8feb190a74f5ab952b1041e64a9b4204cc1e08fe328f06262ca46966e16a0f0c962b389254fc1 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.34.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.34.ebuild new file mode 100644 index 000000000000..6208453ad7c9 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.34.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 +} |