summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-07-22 07:29:24 +0200
committerMichał Górny <mgorny@gentoo.org>2022-07-22 07:29:49 +0200
commit78c0373700cb3ce4d1ec3b95965ca96445761280 (patch)
tree851db850cbb79620a42ea633df3a6011fdd6a64f /sys-kernel/gentoo-kernel-bin
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.132 (diff)
downloadgentoo-78c0373700cb3ce4d1ec3b95965ca96445761280.tar.gz
gentoo-78c0373700cb3ce4d1ec3b95965ca96445761280.tar.bz2
gentoo-78c0373700cb3ce4d1ec3b95965ca96445761280.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.56
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.15.56.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 ae9f2c35163e..3b7f15c76f63 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -16,6 +16,8 @@ DIST genpatches-5.15-58.base.tar.xz 2355372 BLAKE2B 27cb7a5b7ecb66f55a6c9b294e77
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.15-60.base.tar.xz 2403720 BLAKE2B cc8a8e72894d9139fc2c51412e09c7c7069523ce42ef67f2e6e14230d7ef75bafb58938314f4a93d0e6e1c5e544fea54f70b23f0ab6f7f02156bcadac26bc1ba SHA512 bf345a4ba71d02865344bafc19e996e7d2ce5ef2ff0b9a956b85a2f88a386f786670f569b812eabc0cc4d841c9ed45e050b3865350c6f38a61bad8372180246a
+DIST genpatches-5.15-60.extras.tar.xz 3932 BLAKE2B 2c9b704aa65d9ba6fab93252cd581efe31324fed7d1886bb118a25efe26daba4dd40d75cb263edf6df89323e9967b6f2277692fdcdbb6a50146e669f45c364c5 SHA512 e63206136bf81d5a9012d71396474f6214cbb7980ff4427fa60e69a7d96dde918174a964a6269e6278b4bad6f5faabfb79c1d0c5e3dfb4efc4f13fbc17979273
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
@@ -70,6 +72,10 @@ DIST gentoo-kernel-5.15.55-1.amd64.xpak 69331162 BLAKE2B 6893c7c1ad5a5ee7dd1da1a
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.15.56-1.amd64.xpak 69348640 BLAKE2B 0a7e627503f70195480faade068331535ff63f9090d01e539990e7ece44f551739f46713f871c3cc6be01cde9a649ccd6b987ad5655accede0ced1f0d657501a SHA512 e2aaeabb16928de5272f2202f6dc51cb4e5f41708c746b5badebce9438abf1350df1cd5a5f3d146c59742ce9d800ab3ecf4b947dda8ab745aa0d9d882cba4935
+DIST gentoo-kernel-5.15.56-1.arm64.xpak 64208963 BLAKE2B 5f60fa57e079d539e99d34c2f8d71fdd3d93fc4a56e872b8ab0e96d97fc9be4c05e8b2048d98c93a6689192eb60a46e7287928b3ff168183aaf00bc08a265cc5 SHA512 a51368363a532c1d3fa2969d919e94cd7e745153a3adb25c738d4bc472c18c6576707d9005f8e6afb91c817be3b76c51b52915e662c640d80484ae44322d142f
+DIST gentoo-kernel-5.15.56-1.ppc64le.xpak 58077139 BLAKE2B 61c8ba72108f4b727e3ae9b17dbdc7177ae3fb4dcbdc0904962d06dd1e233fcbe43c2529d1c9c387860a4318f535e0d69edba0f0e2028e243415be690eec1ca4 SHA512 6617cc6055a023a78413be0935976f7282a9dd87a8efe9d73b19460f71a7105f18acb1e6d6def37ff466c94525295aa750d54395c56c02b707195e0a8a602960
+DIST gentoo-kernel-5.15.56-1.x86.xpak 60096432 BLAKE2B 3764228fe0ccc04d65f15f4eb9985e2ca9227d4c76ad11d0783aeda59a7c542a84da165173e5f4d514151450c15db0fe66a010deb0a196f1c8ed4116d7a1132f SHA512 b7cba4ed77f83ca5c40e9e861a13c1d886dcef2b050b1734156d7e5291e06121e81b5415e7a9455b88ab2153c83f8fce8761c1caf276f87c7909af2e98dd9ced
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.56.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.56.ebuild
new file mode 100644
index 000000000000..0787e9b25ee5
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.56.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
+}