commit:     3ba513216e7e49deffa7a0873914430b23138d62
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 19 18:20:31 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 19 18:21:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ba51321

sys-kernel/gentoo-kernel-bin: Bump to 5.10.38

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/gentoo-kernel-bin/Manifest              |   4 +
 .../gentoo-kernel-bin-5.10.38.ebuild               | 117 +++++++++++++++++++++
 2 files changed, 121 insertions(+)

diff --git a/sys-kernel/gentoo-kernel-bin/Manifest 
b/sys-kernel/gentoo-kernel-bin/Manifest
index 425cbedf13d..ebedf9786d5 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.10-39.base.tar.xz 1213832 BLAKE2B 
8fdae4f5c9665c8ec3f7fa4f202d
 DIST genpatches-5.10-39.extras.tar.xz 1772 BLAKE2B 
2551e576e899dfb659a5b0ef1851697462ffb9625882ee6d737abe1c41d0738ae25e94146bbd09de0f6d98b0f7754d0dc72d30367f94ab38d88bccbe60430b23
 SHA512 
c03e8ca3735c53af9fa84ff0148a02af5ff578a83198482bda8f2a67cf4ff501916a2dbf89b7d7bbfd3aa97b748eca56bf42e18c7394b980b52dd24f10875bdd
 DIST genpatches-5.10-40.base.tar.xz 1346696 BLAKE2B 
1e7ccb8b9ecbaabe1c325428fe2a40488dc93c97da51ec50941ddc71443b1b8014928742007d240bd963c3e54a0b7b936c8dce12215b08af11ff8918f908befa
 SHA512 
8c62a5127614eff1740177f9b463d231b45b8e864f80bdcaa2a0973cdaccaa1b2b6be3a97b2659da5a83cca6a0dba43c8638549766823793f8ca06dc2fba564b
 DIST genpatches-5.10-40.extras.tar.xz 1772 BLAKE2B 
1695374f5c2951b763b9e2af67f47475c1de3b8038e5ff106cff4683e6430808490ea2ce19e4e8371c3d1b3e7433720bcbdbe8bbb7547a8002e06ab24ad9b908
 SHA512 
ee7eb2371e92a516b20ee984fcbeb20f67233d78eb74cbe4f6f8fdb856bdf7759b5a1b1beb6139a2125b157908bbc8eb538b4c7cf2a6011294cde296367201ec
+DIST genpatches-5.10-41.base.tar.xz 1421952 BLAKE2B 
513d7aac0ee791d615fdaf336a29e677a6ef43411dc04e86173eec95322b3d01b658fdbde8dcd6bd9a195bc95a8f86e9d895d5825a4898d608a156a6cc26faec
 SHA512 
8566ae1faf7812c52a29844365a0ef8f026b845a7a7e85a04a4ddb490cbb00748b6ddc843244aa1871abcc23c3dc9095d43cfa14efaee14b7d58564a87870d57
+DIST genpatches-5.10-41.extras.tar.xz 1768 BLAKE2B 
70b1c510506b1df8ef210b10a203711d07d0b170bb40a4619cfcb99754f20fc14b648f1c2f4516f3baebf327706444d6d8e375bc3277c03b2f623c959c863791
 SHA512 
198db6b840eb22deb594e336a3c64bb32c13a12ad682b5d431d0365d276b6412ada9594c85d274ecfb20ee2bf2045bc60dc244edf7d0c8d0ac1f21ecab4f9748
 DIST genpatches-5.11-22.base.tar.xz 684008 BLAKE2B 
bd081c8a40b4ebba531a93be0288e50ab526b5bb588ac3332757a3a20be15158557f31b6a0c82d616739192d73bd6507817cd403d04460ab955caddfb7ef764f
 SHA512 
0a08fdf3f5f9e3ba8217d2e25820fb2da39a712eb919273465ad3500ba0c4359f0524b016e0d34c10d93bfc7acd20220c39f3aa71ba092f5ad328ff0c066229f
 DIST genpatches-5.11-22.extras.tar.xz 1772 BLAKE2B 
d0cb5b3c5b27f9f7ad9049541d0e19f37198d29c1bc4cf2dc0f2644c7cb46638e6adac030ce033eae048ab10de4a9adf60c3791733fcc01b1e7e6e1bf63a027d
 SHA512 
c91a0538702f83869c75140af61eda6b4e889007117549eacd0877007dd5136eae45aac72390418e1791101e8a4dc19440678b7912bb01677ba788c76239bc9c
 DIST genpatches-5.11-23.base.tar.xz 780560 BLAKE2B 
1a825e657879f0d6d6ec51c24ff52e844de9ed644f781057a7d901ae9e8a02f7b90ecee465f608502c0af510e58461b64a1f5125f5234272d6d79cd912fda828
 SHA512 
8c746072e5667ff35caf2bc44917a0016052cd8b8d67000f9a8ae666a75db4c42e2a5a8bbab8e7c6ec8cb85d0b71afc50aff7df88019ac3774f4b43527e6a88b
@@ -34,6 +36,8 @@ DIST gentoo-kernel-5.10.36-1.x86.xpak 57246018 BLAKE2B 
990349168a8ee58f30392afbd
 DIST gentoo-kernel-5.10.37-1.amd64.xpak 65507544 BLAKE2B 
352874a4908597f0ca341c2ef2f2c392bf371feb7bd1ed740e32456b82b6358e923465f6ac1320acd3904b0969991c2d36a235a9e46922c931ee3853f783ea22
 SHA512 
f8ce7ad55404117c2d572e934e10cb017bb1a9d3b9ae52ab754fa4abf2a3037666696f48934098d4a70689a3488b79793b96f869e1af41cae8cdfc2bdbc4664b
 DIST gentoo-kernel-5.10.37-1.arm64.xpak 59280432 BLAKE2B 
8acb2d667cd188932e930026e9f0f77d44c2308148ee13b378a216b3bbf7b8fb6016481d0e6bfcfef56e5b775a0bc7641e7a51e0b0c9efa610ac1508173b230e
 SHA512 
4868a26f6a994360ae2361566824c4f3e358b14743e8647edc3c8d2bc34042398c357d4ea429835c21e0395330b270a163356c72799b679a76e42ec27394a6db
 DIST gentoo-kernel-5.10.37-1.x86.xpak 57235922 BLAKE2B 
7d5ae9c3159a6240dc95bbec78b502ea1fcadba932064ce194d36524beeb8c0b54303ac43c6a17167e6a14e782f063073683f8678ec90bf7616c3f2b13e22a48
 SHA512 
71958bfb241bf1235d5ac1f7d14cde0eda0423a96461f4026be5442b3583311208cd0ad2e76c57463431e88cdc498684b2a4e9f064e9844e1a7e37e777191ef5
+DIST gentoo-kernel-5.10.38-1.amd64.xpak 65538346 BLAKE2B 
76d5e8b10d970fc54d1dcb5d21702a1726e91cc9e8076b4d2372aec073798a23335271859f1a950b87243367cd8d7f346e3a782f01a83f04cb8c26686cb222a0
 SHA512 
0f6077e98326eb33a602c7bb76641f4ba43f6c9510b8ae729e0ef134f915727eb556b7d6123ec79ec648b36b242a545f6e98515d1586d7612491c4e14bc9cf87
+DIST gentoo-kernel-5.10.38-1.x86.xpak 57251643 BLAKE2B 
398526f7c368f91ed6d3043483a48988730fb9ee928b9eff3b7495cdd5ec0bada1f8b81895ecde852dc0832b97dadb4dd4ec1f2304e273e664d4d18bd90af57a
 SHA512 
5477ac06ecaf2ffec60befee3d09f358461b423744f03f6c9d90b4528c032602e29a1df862c65525bd076806735764d312e7a277faadf63053b3d7a3fc818c48
 DIST gentoo-kernel-5.11.19-1.amd64.xpak 65896925 BLAKE2B 
7bad7ad368668bf79b5ac630b4e9bedfee4c81d7a27459fac002d5d4cb40496922f134bf41a2c479a184b64fbda0da6eb45e37724b1c6e29ebb56e3838b81052
 SHA512 
56c49da22f0a7c8870e7a57e2bdced8eba2b0295ffe7e3a5977b22e39fa43000077cccdad893643a0abb9a82aa9f57a32a8a47873839d549627cbba435b3010b
 DIST gentoo-kernel-5.11.19-1.arm64.xpak 59764011 BLAKE2B 
719a3282547c4980ae5b1980be86e4a0b7f881577aee11fec21dcd374b1b89303d0cd6f9528b373a48a61ce0d5bbc6304ca2302a038e81e1bccb34b6d3af2139
 SHA512 
8b526f37e6d444d43e0b39936b6fa6e644d986794333bb33381fcdb6d78d3e9343ba4353ad558955eee4ce15c777bc2c13224851254fa84868d8e16a29d0243e
 DIST gentoo-kernel-5.11.19-1.x86.xpak 57672197 BLAKE2B 
6df796e0b3ea63700742825665e4c5703290b00d2fc205b46e01a6da1609c4d44bb4e8a9c8c7631bfa85da76c93ea3eb01f16aa1614440bac55f466ba2f0e15f
 SHA512 
a2106657d40dad990a7034c5fb0a13e2cd16025a88e3dcac861f5bd16f755e2268b1b8622c6be293fda457dfb5e20583db9f56d792d7fe679f3e7f2c65d6396d

diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.38.ebuild 
b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.38.ebuild
new file mode 100644
index 00000000000..6208453ad7c
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.38.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
+}

Reply via email to