commit: de781c981d9d93bc217f979a6c5901edec511ab8 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri May 28 20:25:42 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri May 28 21:48:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de781c98
sys-kernel/gentoo-kernel-bin: Bump to 5.10.41 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 4 + .../gentoo-kernel-bin-5.10.41.ebuild | 117 +++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 3f592213837..b9831cc5d24 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.10-42.base.tar.xz 1435860 BLAKE2B b94289861c81107745f259905e2e DIST genpatches-5.10-42.extras.tar.xz 1772 BLAKE2B f53190eced945d803d029a643a27d33f56836be87fb7809a102a8e9ddaa9355d2dd49ec24e833b234f4069127a8c3bba98cec956e7126cc33bb2973086554449 SHA512 c8e32721135178c3c99323f02c97591206192880f77c751473f4094fccc01f7a3bb4ccf4d8dff82f8d1a535b2845449e7dd381590c4fc8b0adf75f212fd336a4 DIST genpatches-5.10-43.base.tar.xz 1461848 BLAKE2B fb1bf2fe69c6698cdbd3458950109dcfd534b31fe22a51019514b619d119bd26b36ba1697164044d5b2dbbe3c3f8e72b076b87dd32ce59866932d9ee67bee591 SHA512 9bf520ec729d96f4f8dfa0d8f30cf12abe87d3f4278120afcc152c8c995662ee081d419a3b29bbc85c5e4a7b23cda1ec1b372c46058319bdd06a9b475f3d84d0 DIST genpatches-5.10-43.extras.tar.xz 1772 BLAKE2B 1c2c2ec1b7a2814572b464a02e582821bb04c143524dd98ccdb330463230e1370167b8fdcf269d137f4087d21b60ba07dc72c5da2d47f8dafbb1a9598611b804 SHA512 e8085e8d9c5a82d9d8b10d2212577fc3878beaad4e52f145bd5490b3e7f440762f95ecb7a2266eb99a91ce7d98fbf48f241eba86329aa35a1d9103733e7195a1 +DIST genpatches-5.10-44.base.tar.xz 1463796 BLAKE2B b4e002718b2542c1806eb89cd552f11e3ed9b3a2c2e531c590d05d8796bd6a462457c1afebf1794e10dd2419c45102acb7d4e371055b1ae750a959bb3720ab96 SHA512 4e0d54ddc9a43427c418a9c0891b8dd02088a9b75ca011328401af994c54a5fc5498db228f3ecd6aa752afd058483f460e86fbe4393c24815974300108e7324c +DIST genpatches-5.10-44.extras.tar.xz 1768 BLAKE2B 287454aae7ff60ac375b570e5132c33f81471348af58b999ca1355d15e7fd1f0839c369e28e18496dd0f9a43d6bbaed03318a9358a5b9384c3f27c109f7447e5 SHA512 d69a0a32dbd79eafe4168bccf55c0b0765e5311bd2f81ef93ce4f709990b6a789eb057b2afac7364b18e5f811b9610e7d8e10efff07a6e396c8e897b76a50378 DIST genpatches-5.11-25.base.tar.xz 1030312 BLAKE2B c3e0f5840c32292d36be31a8606934bfa1ccb7e31f04cd214574009577907d00912bacce1f85dddeda77ba99f40f61fa5aa5259a693c74abd63a05be5a44f2aa SHA512 5adbe3770562b57d7180a44ccca8e665cc5b0d9ba5168c4b3555b348708edd7469464bd770124d9a8641095bdbe786d843ae3da64b845d577999c9e40360c970 DIST genpatches-5.11-25.extras.tar.xz 1772 BLAKE2B 0bd2afbd93cd7553c8e058f61c515ed9d47e9f328529e6cf36a7100b363dc8e4c3004afa06a0c0b95963bcf69a216ae6a7bf595062401725a4a25f942f44a3e8 SHA512 114094a87bad0dc4a265847fa18b88a2795daf151de8451bb4fbe4af70f3f4bcff8905d8d90522f85914bb7ba7227ebab7f69ab59112afb2187332b393450fec DIST genpatches-5.12-7.base.tar.xz 447756 BLAKE2B c7d1f923bf45adba7a60ae56eab5e6ac3e132f6fc9186da1bc10d48c19dbf7ab39fc07cbb93112b39b13fa921223b1f6aedb28e2d053600b7787a2bc2b55defc SHA512 ee12bac503ec5ff48d918240b5e16c03df01378d572421d648863d82db8c89a79316d1c0339b6156cc5c1a0de64cf20e81b2900fd23b96f0c274a171e90aa279 @@ -34,6 +36,8 @@ DIST gentoo-kernel-5.10.39-1.x86.xpak 57235316 BLAKE2B 6061e3cafc53ea2cb6a0053ae DIST gentoo-kernel-5.10.40-1.amd64.xpak 65506415 BLAKE2B 91f5c3f13350c922d40740c4c1aa16938aaef9249beeff2615ce4ab4426d371482edca90160f4729e4bbd97c4d373a886e8ba701e4a7d8a40050014b66d68deb SHA512 91a96bb4a0d4f44868df55ead4b997b8735da51a1f37ad9054eac15e9f552b7505dd155b1bd01f698ec26b9ebbe0cfd6b98e93e1a6c9167d7ec15133de36c25f DIST gentoo-kernel-5.10.40-1.arm64.xpak 59237288 BLAKE2B 21e19596314712a4d535d188744a9b7e7f3b155f767ff4c85dd9aed3dd46867f52bc649b8ea4dd76355b5a462d297d4c20757707ed3a0bca136cb56dd1caa699 SHA512 b352c943d33430b5e04c63ff0d33e80aac2171d6e1048f8a1029730e0a8b08bd7ebaf40d0afe4174b8600cd8c47322304e49c2fb72ab5a19b53d3fdb34ffbcfd DIST gentoo-kernel-5.10.40-1.x86.xpak 57236415 BLAKE2B 803f67facaaa6f162f34290c79bd0a33c6121221da09b9f09083df5cd6fbf3aee8517926fd80261352194ebb4b977c27d06b77a06ff01ef0fa7f17573260e186 SHA512 c78f1388bc34658a2c2e261085752a581110bd2650d06e6bef4ee3a4e62fd323c8e33ae74b6a795700ef2e205d872e914ee4358c0d1bfac43f7c209fd305c103 +DIST gentoo-kernel-5.10.41-1.amd64.xpak 65519229 BLAKE2B 1e11591d6aff9976116eff850c9a776e3da59731b6326886c47a47a49e242206a1711c7acef2bf591f26088f1e48a0e5430b55080acf23e94a061da234aacad2 SHA512 a255ae0856d940d051d69eef998b83de172d821f497b9fa752e97775e9dc0836ba5f0dcdfb019038c9799ff4a460e6b2fc30aa48c0f77060446d7f6c75b97e71 +DIST gentoo-kernel-5.10.41-1.x86.xpak 57258381 BLAKE2B e66c7ae5e45d5e2a5258bbc297565c50978c8097e14ce34f8219d021b823bdb776b55f01aa3137fa44cb3016c8cd2459594dfbe8cb0e511f48ce6aa7b566610b SHA512 22d74f1015898f9cb835e435a6b48b017ff3712deaa44c1b250c646ce0853aa71b00e7d027b84d5669113d5b7ca29348970255daa1bad3cd965a0a55ef127a5d DIST gentoo-kernel-5.11.22-1.amd64.xpak 65882786 BLAKE2B aa98de82c4f47a586474f6f888a12fa3fb4605bd3dae576a36a9edfd10b669cb586d975dd6dfd4fac0ca3906e56a14250effb44b54ea6646898b12ddeeb6ae28 SHA512 1cd5f40f7ae0500158d05e3da14788a407faef9c471001fa5cb403e6cbbd062130645166cab28f3ad79cb6318dd0fb5961a515952a91de35f34b44483931c5a2 DIST gentoo-kernel-5.11.22-1.arm64.xpak 59725454 BLAKE2B bffe7733b1ab766ab7afae20c77696ab36bed989dae7fef60e6eba752da8f918240e0d28fdce01d5813775c4013df80ba495e6ed7163838bde2896ffce96fb06 SHA512 8b1e4b0f6ca7294a457574f23557df1cc99dc6be41f3a36f6a871cb8a21d52f0556279afe400301bbdf715d4e07134da845c37318a1e6df9e14e379cf4252f68 DIST gentoo-kernel-5.11.22-1.x86.xpak 57639501 BLAKE2B 5d4cb13fcf9d60f0865d1048985a920a85cd13aac338c475a0cf3c2ebdc2414b5130b6d511456d52881ef37bf0f8623cb3b60694d990a274ae1e048788f44f02 SHA512 c116911b8941980ceb1026d603c038758dca821a390274b5165dc9e101962872b8051889e5685ea304d51996be602170c5aea5080f7e66421f707d4563974df7 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.41.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.41.ebuild new file mode 100644 index 00000000000..6208453ad7c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.41.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 +}