commit:     55c61e0b810692661dc73bcd5a13f1ef75885560
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 15 14:45:52 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 15 14:46:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55c61e0b

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

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

 sys-kernel/gentoo-kernel-bin/Manifest              |   6 +
 .../gentoo-kernel-bin-5.15.55.ebuild               | 135 +++++++++++++++++++++
 2 files changed, 141 insertions(+)

diff --git a/sys-kernel/gentoo-kernel-bin/Manifest 
b/sys-kernel/gentoo-kernel-bin/Manifest
index 5d485293f553..355b65983e4a 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -12,6 +12,8 @@ DIST genpatches-5.15-57.base.tar.xz 2275504 BLAKE2B 
23dad9d2e9dfc1f77f6e39f8d9e6
 DIST genpatches-5.15-57.extras.tar.xz 3932 BLAKE2B 
670c631eb992f3ea25caa61037c8eb5135fdc1c9dc9e9cc91122f753fc2755f5e8a22a832267bb5e620a604a450cec7fe80d6b6ecbeb7fa5e5db2356df6b2163
 SHA512 
8f3685cae1613b3e93d33d67746267c4860d839d0a9917bd9668c7d917c83ee1300e1f7fe14eac5dc34de94f440de0127b65a2f862bc821c354e8c36beabb1a5
 DIST genpatches-5.15-58.base.tar.xz 2355372 BLAKE2B 
27cb7a5b7ecb66f55a6c9b294e77e14f8c231df39953e19e0c6375ffc084a92dcbdad22e430987d771c89516e4b66b2e938347ef13f932fd593c38fe7c670870
 SHA512 
70968b3808b1a08d3041f6e9aa08b96f54f98cc26932a66bc8eb91663f83054615057f4d14e03bdd7150f0d83ee371cf718a1bc70ae9f41124afe506287d754b
 DIST genpatches-5.15-58.extras.tar.xz 3932 BLAKE2B 
00c41224b6449df6c03c51b0528ee7da9b718d3feaec3dae3f58177983645e2f798ce8221708d7a470a057e37f1d7ebfc3ac843d97b3ce920e671247ccb6bcde
 SHA512 
194275a95d28aff48262aafbc770931b1add0861c1333122c1b82e95c5a39c318a1d57fb2bd5c986f806f84b417c2050287ba55d91d8d40e93541c41cffb7951
+DIST genpatches-5.15-59.base.tar.xz 2355388 BLAKE2B 
b7752f0691ff64a0bbffaa262a674942623b9b3aa5794b8ffdcc9aa23bc4cc63e65aad8d132e48ee765ab2a4711bb32735680794413166c1c358084e286f4f58
 SHA512 
d249a9e37ace3688f1f7f5aa368e45fb428220ab193d0ad569c2e1dbfa41b268348378928fda642d1d2521ff0cfacd5b7292b4a1e20555a1b0c7e5232bfd7410
+DIST genpatches-5.15-59.extras.tar.xz 3932 BLAKE2B 
7438a1bd3f63bd989b93b8d1bcc2474406670958291d7cbffaab792789461336d30465664e6d36c2cc91d77d82fb1ac521d13dfc7cf9691563dc417370dd3107
 SHA512 
127ab6f173b230c4b0656653af36a5086d021d3ac81d5549a60ca681c1873dba351aa33e3fe96da811dfa6e0a006cab14aa6894f03a9eac1a447df8f724d75cd
 DIST genpatches-5.18-12.base.tar.xz 549680 BLAKE2B 
d6973dfb0d7749fadfc511b1092dedc67b3f8a57e2a117674113f43177bde8608b6106c4c84fbf5f5a161b9710cfad28a3c2fd419fb3c4088d98f9a504ae0cb8
 SHA512 
c7ad63058bb77c92d3ecf618a41164476a56f2b7b879c667c7fc9666fa1d7f81b599d6ffc5f0fbaa3223e7d399dbb6348ddd511598581083f7b78d505dd81e7c
 DIST genpatches-5.18-12.extras.tar.xz 3920 BLAKE2B 
89642c29bae1b15664749c11e581ebf1d0b42801cbd3e436805faaacc419fa7d946a05e7d37bc8d056e36768d181b2e71dfdd6b28943ea112dad9f17a9c2bde1
 SHA512 
301cd52af9db5a8ec91891a0258a262261d87cf22cb01c27a531d0274ee23d0e928977abe8f5928d3dcba430d032a3cb418193bd1f3e09a923ca6e8718ec7420
 DIST genpatches-5.18-13.base.tar.xz 578484 BLAKE2B 
03215db005e5a3668898b1ac4c25aeee5f20d6802d00b11d24d41f506ca9f730f031f5cde187f81406a3c75937d65f854acd3c0e2d2cf9f9cb3ba99454304180
 SHA512 
bdf29085cf76022aa21faaee63033e3231b9757282633eb5897717128bc340cbf38b12a2918b169b452e85aafc9fadac2645df414f877f43950a3147e00dea68
@@ -54,6 +56,10 @@ DIST gentoo-kernel-5.15.54-1.amd64.xpak 69338355 BLAKE2B 
589f1252fbdc8738e7682de
 DIST gentoo-kernel-5.15.54-1.arm64.xpak 64199282 BLAKE2B 
2a354c8ccab94b1453b7f95a7f0d931d95ec165256647e634833c3b21a9756ea617e59687c8ebfcf164b071e29ef690feb38805ffd17e760c204061f5ba7a0b5
 SHA512 
27d6f9695e0f2cb36f05403b94efdd234e8045931fdcaad76245e1d6e25b673a537506b8234e159ca78e8f20c5c42933efa4c8e7d55975487e5e410292bd2f1e
 DIST gentoo-kernel-5.15.54-1.ppc64le.xpak 58010594 BLAKE2B 
64d377fd257b5f407253af1c272bba1b6124fedabba66cdf356ebcca2e9c2be43e45d4eb784e66d86c54b4a6f73df708ddd6ab9e2c87c9bd01431f3a77717612
 SHA512 
21783533758f78659f1af98fb1d54119ae06a182469a65d2bf5d552f965f53822e8d068223ea82241d82202a329c533a2534e66762c1d6b1e380d2ff4f10f6d3
 DIST gentoo-kernel-5.15.54-1.x86.xpak 60099796 BLAKE2B 
9b503e22cb08305befc396309d1a23a1fb075a9518336e18f16ef1d438a3be1f0b689751fb93d2f4799ce17bfa0ff01e6e415925b7547a7f41c339e9db8fd4b7
 SHA512 
9d92798e613575b201d6808b4ec2dd937769152d4ee58f69f94647b140508fda0b5ae36763b3b9facc715c65035026f050c4baffc28d2b49ad57ac5171440123
+DIST gentoo-kernel-5.15.55-1.amd64.xpak 69331162 BLAKE2B 
6893c7c1ad5a5ee7dd1da1a6de7621a72cca767bd2c8db47d1c5f1de6e647a8025fbfc9ae36aba1c54463a21bd508dd4bf8de9c854f773a27459894189d40459
 SHA512 
2a9f6d3631f02a002fa2974e254c15e526dac338d9bb6b404dd03dc710cb5c6b6b7b89912db48da9f018bf59c4ec35664875e87207c2b0e263eefa361d611363
+DIST gentoo-kernel-5.15.55-1.arm64.xpak 64196493 BLAKE2B 
a5094df09adb3e91a0bde677b9c7dfb13bd64dfe6af0cfa9816baf821846be5ffdb5702c9ebfbad74518c02ebd5b36deb4144a93ac46b4f28df4a0156438f480
 SHA512 
3e5614948de6594892d4026a227cb6b6413f059677a53243aa5dd98e98039f3679a6a8b464e7d15a1572c690c3b72d79f44fc91f134bbf1f3180f6cdfb04ea5b
+DIST gentoo-kernel-5.15.55-1.ppc64le.xpak 58138212 BLAKE2B 
f599000c52f2def1f3e66bc4b7fed651b185616c174edd3f2f7c471bf6fd4a56dcb425525398a6041614600150f0eb95c122df1210a110523052a3996de1aac3
 SHA512 
c803a7ae11df04b68fe16dfe8a364fb2302dc1a6f0fa1bd7ca1ce8b060616b44fec81ec52816a5943e6f9f2f459fd5d2d396d35ac29077a95e6260cb6b7c72a8
+DIST gentoo-kernel-5.15.55-1.x86.xpak 60080521 BLAKE2B 
080a8f23ddd98dd6490dd48dc3133b16ce6bfab65ad9892b1b586ccfaca4b7f6793dba2d550c494aa2e162ea50d56eff6c26626e40d4848cd6806370508493be
 SHA512 
cc1039a716e30db09737010d97cb055085e63305eed0cf88324a6e40d2d9903a05870f54dbf2a58aa2db345d0d69a1611531e36f9e6cea4b17215b338a3cb3dc
 DIST gentoo-kernel-5.18.10-1.amd64.xpak 71603500 BLAKE2B 
8a0d80fb825ae370cd28f587cd31b4bfb8bf4a679848abfb5c201738c75f0030deacbe77acb1ab367260bba8dd0aa69c5be691857e48e1424b98493ecb5ecd81
 SHA512 
10460c0153afaa9dfcc5df28e39e6a3b224cd0b614df977c5f84bcaf147178dddff5b4b7524b5a15b36aac873f7b0ed356dfd0771920cba1da7f0fee48144750
 DIST gentoo-kernel-5.18.10-1.arm64.xpak 65243483 BLAKE2B 
ff8b7846d93f4c57c54666e866f27f8a5fc11f21d546f8c028124e3f2508ee4351f4a3cd75cff254e0cb49b0888ef9ffe6e3affc9f7146b3cc565cbb08edf59b
 SHA512 
aec1358fff66b30c484be9b914f3ce2bf3ef88f41de71d717a5279a4df09aced85275255d9af112e54d4d71b827fc7cfb7b6a4383fc3c2024a72471ffff1a4be
 DIST gentoo-kernel-5.18.10-1.ppc64le.xpak 59437353 BLAKE2B 
2ea2d838fbfa1e72d9bf056c627ae983ef75ca1c04a3656282a4e6d701fc0ec65d46181fd4cb513e8ca692ed92bd01e3fbad4a3d7e3e2a3dbf9b441596289882
 SHA512 
999791b651b107f50b0a7262738b61c39f540b17e83edecc3616e6f8f73454ec8a10fdffe14358aa791cb0c98fd5365e50118edf9db8b31290d81f338bca9f80

diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.55.ebuild 
b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.55.ebuild
new file mode 100644
index 000000000000..0787e9b25ee5
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.55.ebuild
@@ -0,0 +1,135 @@
+# 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##*.} + 4 ))
+BINPKG=${P/-bin/}-1
+
+DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
+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
+}

Reply via email to