summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-08 15:56:03 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-08 15:56:03 +0200
commit39f81a3a7700414157622d5b919357f36d0fd958 (patch)
tree59b9b8b562e6bfeb2a97c1326208af3920bfb5f9 /sys-kernel/gentoo-kernel-bin
parentdev-util/scons: Remove old (diff)
downloadgentoo-39f81a3a7700414157622d5b919357f36d0fd958.tar.gz
gentoo-39f81a3a7700414157622d5b919357f36d0fd958.tar.bz2
gentoo-39f81a3a7700414157622d5b919357f36d0fd958.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.142
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.142.ebuild135
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 116765a1da02..0b6c0da2dbae 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-149.base.tar.xz 4094572 BLAKE2B 45a25b910fc88f030d97ef58709
DIST genpatches-5.10-149.extras.tar.xz 3868 BLAKE2B 2667cf3c9d447c855b6b6cea4b9100a300077fe74eae84b69fa0a6ee861c787e44e96518bceb93f1c2be83fd8f04251ebfca673dcd9da4ebf2ab98041a3dee4f SHA512 73bda9933661f78482eaa048c1467d1f3acbef606676547d1ef3c64c5ff95475d6d40153a47f247868a2cbf697e5a4d21d58b57b3be6763ef3de869c31b5ede6
DIST genpatches-5.10-150.base.tar.xz 4102688 BLAKE2B 4460fa61263bc1c753f856867b4aa533a5e96be1acabb6c770b97854b90fc54022876dbaacb5acef40be6a257db914efd800f328ff5bc79b2ac3b75aca9c5f4b SHA512 2337973c65408a4c14af7f7e34e17f62b8f0e5191ffa821d17de35364724d01036ed3867a32c2b09fef8edc68769ff04d01bf01f7db2c02a2750e2019d270533
DIST genpatches-5.10-150.extras.tar.xz 3868 BLAKE2B 92e49d3a7830cc36aa27c760453024123fff849dbbea36c983f267144edce15257470937e670e5da5f9b4fb90e659095f8f839faa5e30f8317130ea7c3d2cb4c SHA512 010479e3a3c61e01ecd6dfd7ad38c34d07eb10f424505d4f30004566c3cf7066f0d2668be5d2ee86092297ba347014e3468e1cd53372ce81c73a378cf1a8fc5f
+DIST genpatches-5.10-151.base.tar.xz 4118864 BLAKE2B 2b61b0ba7ba6bf36a35b86c2f3ddeae3fb1f0e6285cf68d828aae4b99c62003727a0dd9c57263fcbc10e39a4cc1fa14a7bd4e00029e1dbc558548c4f1478f19f SHA512 0a8923710df2b03aa71a064df637b5a2e48aeb3e240c416d67054003106918953c6b23f3051971cc8afa9785140cf7b8e02670fde145d86c6e2ab86088aadcc0
+DIST genpatches-5.10-151.extras.tar.xz 3872 BLAKE2B 4d023b4fc664a09f661ae1176d25068a2a693d231ee64058cf68538737e28c6f3a8cb706689bbb39280d2d9e8f15570996e1d258cca5b184a931f2bb1c900a16 SHA512 936d693f98553978bd8c35db3b3d48be639ae039da1d76f8f2cbe5d5bd85944e61046da5e0c6ac7c5a9e10bfa605b5b4ccf02db8a1f8ce886f4010fd85c75791
DIST genpatches-5.15-67.base.tar.xz 2856328 BLAKE2B a92c3afb5e0a6605587744c68b3bec4c63848e0c09469d99080258d97d3e96a0adae175600d7dbb00e566f4383ab00c6981585acf343111218aa21e503901f7d SHA512 3d100c04ce9e440177ff2156b8ce0c0443414963a47fc1c51a86a08cce998ad0b6289e70455ecd2965009226036486c1b6ee3768b1782aaad976cd144f9b48cb
DIST genpatches-5.15-67.extras.tar.xz 3936 BLAKE2B 168a92a9db40e6014864a96aff71fb87b351d7127c5eedc8e062e753ae65d7ebc628e9b0eded328f17e88562592d80522ccdd31a549c8104aee51e2833f81134 SHA512 0f2bdfa87ec2a610870089c903b301dc86dac52f4969386074a439be90674c4835800cf9250d8844b1ec3df88cc8dc0b31e4582ea309b7c817066a1341c692b2
DIST genpatches-5.15-68.base.tar.xz 2897744 BLAKE2B e1aebd74737e787df999aabb0153b7aab4b5df05d049e9a6260a3bacf8e827b4f767fe6fe8d07bea71a0e5ee7655d864da67736c17756ec1119a66fc58a4b82a SHA512 79996709882f76cae25639f273f2829d5ae671714f699008d7fbed68595e7cdd93e9d79c801e9f1eaf6ea89fbfe9df3302773e6f728f8cb5de4bd69b36fea65d
@@ -30,6 +32,10 @@ DIST gentoo-kernel-5.10.141-1.amd64.xpak 67580967 BLAKE2B 51ec54abbc4709f3a9edb4
DIST gentoo-kernel-5.10.141-1.arm64.xpak 60984765 BLAKE2B b046d60a9de68cf26669b1e0a9fc5020e7f9e78bccd6f165f88911c11964db7eb38b28acf823bcfcc80078243fdeffd32018d98679186154597f625215b85935 SHA512 899694fed1123c55c112c565331cb960140d83c19d8bb7a57eb888ebed0209e787639762571557baf3ce66eaf337b9ed92c665f1f257955d7952c0eff912661c
DIST gentoo-kernel-5.10.141-1.ppc64le.xpak 56010109 BLAKE2B 8976116f1c2dfa10c3dce6e59edf018aeec1ed9ef0ff4849c6ba5dfae5ea5e41c6835145f9a7eacf0236b2fed818f9d47f218cd1d0b2563e19f569d98dabec13 SHA512 5e685384f60394c197dfbd3a308ef1311512ffd2aa120e6217c4960cbcbef86120f0519d68ac119ee8cdbf37eeace3f9d8f764f43e499a4c0eea856d7bb69862
DIST gentoo-kernel-5.10.141-1.x86.xpak 57479244 BLAKE2B e5221f47966c64344305fd6e7ce6842ab27197accea52541846cf1994c5a4cabbcd4886a32e0029f26f78e950243683fe65160411c2e79e0596c6bdd1dda6de0 SHA512 0737de4ceea0b95de5ba4fcd4292732e565d6c9a3881ac3734879d586a8cf7a33f413571c065e9d04dc226a3cdc655318bcf125089d5b75da3c5bd2d9c701e19
+DIST gentoo-kernel-5.10.142-1.amd64.xpak 67514795 BLAKE2B f84cd8557f21d16d0935bb8bfaeb3f990b2c9bc9ef34da6afe76d1726026a36868d0f8a4f19d06ab5a77fafb8945c136154c523b849054d56912086c3c80f6b6 SHA512 6db1132d9e9f60fc9b96da6c83a954e2bccae465f01b054c8becdc81ca17151489db3f779b6f25bc835c0cab2dff1a05597472f03dddddc0084997d4b4e644a8
+DIST gentoo-kernel-5.10.142-1.arm64.xpak 60980409 BLAKE2B 5363b7cec892767dc206bffc9137124247dc28f8afb5b41e6f333da627261a6c418dadad3bc0b4f7b869167b36bd95df47977e1ac6eb6c09610bc2d58353bf21 SHA512 a5035bc9bd4decabed753f945b78e271fc5cb4b5846978c76693da5f383b0fbe845fb6be55330292bf7ccb374e42ee3ce55f3c92fd8f7841251493597cba7b43
+DIST gentoo-kernel-5.10.142-1.ppc64le.xpak 56017282 BLAKE2B 3b29e3a03bbbaa9686c082ddb166bbdf3c322da670e8707ee3117a426b6374a9d8847ef88be8756b583dc42201dbf1e8d5ff0becf109bec89c6cae3833c46bd7 SHA512 0f18895d17ab906e1c23ac6f48841a7e94770607960188ea042841f92115f5338de72eee5fe497edf766f9dcf1c5050886ed22668e58177b5887556665f35d23
+DIST gentoo-kernel-5.10.142-1.x86.xpak 57448094 BLAKE2B 85e94cbbfd3cbdaecec4e3776645154e420f7a6902f649eff3ad09f7938f4c582a34a106e4b5cd940683ab8e80147e1d8e427f369115f81b341382cb63e917d2 SHA512 116b47440ac6756e2df3c33a21c4bd98b0fa27615f867464ca67b329da9af18a9906a656ef8a4b26cf40a8bcaf979fe7a45b4379fb1fd896084f57464ab8cd6a
DIST gentoo-kernel-5.15.63-1.amd64.xpak 70784280 BLAKE2B 6f1c431dd478c0613b4a41ef477f7fdbef24bbc37ded6f515d29e599539088d043179261aedf9faabdaafffbb0b774fa77b7b9f0cb880d0d5e5c8ac3f40fcfda SHA512 04646181e0cc75fbbba8c5c90525cc955331834c371615b023312ca178a15eeaf47b4b4f5319b43f75946c3582db47002a0730fb5179ae4939d61103d3d3d588
DIST gentoo-kernel-5.15.63-1.arm64.xpak 64186381 BLAKE2B 09f288e2d2dcce3650b6f55ac185e7b0f5e8f61ef9ae8b103c26b3f34047ad4995c8a43fb937e0d4c5f85bdc08923774248f7a2deb0ae7173e57288f0e6db219 SHA512 b9d473bb67ff9546cfd4b86bbf558f96ad0fc72d810bce1c8e157ea5a6f83227f3aa6f4016d17576fb03b4aaaa38cfa63b37588d49554ba4edbf1d77127f2025
DIST gentoo-kernel-5.15.63-1.ppc64le.xpak 58094860 BLAKE2B 1b7e0f7435d8b99439d9a0da608d3721e60796d21ac8cddf7a2dda4970774c9a36148ca98bf06a027fc0ad027ecb1679db232bb343aba8556e77cc565c799d55 SHA512 368c6f13db28341fea141038587d528ae1e0e5cd0864bbda55ae82070082988e9c861ba7e36c947df81c0475616b8a896207953c536b687d9228b30011b74feb
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.142.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.142.ebuild
new file mode 100644
index 000000000000..da84e07f808e
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.142.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##*.} + 9 ))
+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
+}