summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-08-11 17:33:33 +0200
committerMichał Górny <mgorny@gentoo.org>2023-08-11 17:37:34 +0200
commitb8f123b2e22c77f59e5b4e9e3112f5d6dddadce8 (patch)
tree6ec121fbbc91d5f2f0883ca58df8b5d828d55bdd /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.253 (diff)
downloadgentoo-b8f123b2e22c77f59e5b4e9e3112f5d6dddadce8.tar.gz
gentoo-b8f123b2e22c77f59e5b4e9e3112f5d6dddadce8.tar.bz2
gentoo-b8f123b2e22c77f59e5b4e9e3112f5d6dddadce8.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.190
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.190.ebuild127
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 2d6204989b85..a11d1f48ffeb 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-198.base.tar.xz 5696280 BLAKE2B 538dc0baa1ba2df2771c23e7670
DIST genpatches-5.10-198.extras.tar.xz 3868 BLAKE2B fb33cb11d00237cf8649e868175fe31211dd3ccba5201ebbb9606cf0ff863a2519587758ddd6464e98716a2c8c0e210dbf833e70f25631877ec4ba55760d9b29 SHA512 19d64fa354c8a8cc895052d9259a7b25561f4614dfd0a8dc8645f70d19bf677c826715042263769b8740f14fe6b9a03e7f9cd1e0f27d9fa373223d9bf39c7416
DIST genpatches-5.10-199.base.tar.xz 5715396 BLAKE2B 1dcd8389ac735e808f8b06e221b4cee5ec5a8683b11b9e35e78f00fb0ecc62f362f8ac9281937f1a383d6642cf873c17cd5deb0efdf965d66f32257ff8b5cec9 SHA512 c5ad0d9eb2a83ba6ecb07690d815f3e3d480393b995f3553e1dc546a1ac07860800f4df1a74d3d25e54d6d4aa8a082690f86912e32d5556ccd9c92c592b3b06f
DIST genpatches-5.10-199.extras.tar.xz 3868 BLAKE2B 0c8bcd30c0602978641996c3e9a89b8c0812490d2bb0a2f26ffabc1c6a2775e922ecfcd1e083963fae7ba8548595accbdc65412f0c3950790dbc8a2b51e5ed52 SHA512 f30454e4d8eb74052ad9bccc8a740c336070d52fa66caf451192ecde46e91512adbe30eacfa6aa502dc461de557c6f011beab4ba28f8ee2c3866c2200c2a47fd
+DIST genpatches-5.10-200.base.tar.xz 5792276 BLAKE2B 4b7a7cb8f5afeaa04863f955d56c9575f1903ebbedafb21dc38e41da3d3f31d28f2d83d21e530b26ae7f537dd7ac76cd1d940e5e93a75874b1c356ccc8fc3a98 SHA512 426bf39754e40f1b7b8c31d2b516ca12c1184a858e7bc6ed1c26a8348002266c992022fd648075f7c1efc4b526a64d2c1f73dbe9d6ba9ed8fc095f5b7497aa12
+DIST genpatches-5.10-200.extras.tar.xz 3872 BLAKE2B ff768dfc12d019bb9f006ed29fc05ddbf847e05d0fd7f82f8b2a397da7c72348849aca40457c13461a9a4ecd1f9599d5dff59933851ca75df686141ed0055152 SHA512 91ec8fe51b1bfc4d88be9b1dd56f6a7c156aa189483f6c93222f478e91d9fadc6edd5c2cfc48843f589823956c421d30ad9c0e0d0b0702b1cdedae5a01acaf27
DIST genpatches-5.15-128.base.tar.xz 5056336 BLAKE2B 7b25accd5e2c987050480abac7b79cd280820ee8b3607c84a58b6bc1c30c97c209b1a392c9c92abb7494307ccd138358674e7a984cf4766c2889ec9cee069546 SHA512 be70279f9cf6bdccf0bb3436b13cabca61e6360eae2d33e576f408ef2d32ed3bbb449083b0a84c31f98328ddda68b587f689487fe8346df41e83ecdaf702063e
DIST genpatches-5.15-128.extras.tar.xz 3932 BLAKE2B 64d34eee4a4ee36c8d2431d8341723eb0ec32be703fbb3927e7984e9ea365b7907f38b2f013e725221bfb7d867eb63da4e784506615e1cacf9018c58981a2ce3 SHA512 b735304d7990925485ca45f1cd0f6434a96af45269bb3e10b9b67a41f84440654f62831a5160125f8d0c1ff4587ab00294caa1fa5223e8daf86dc0393bc8a695
DIST genpatches-5.15-129.base.tar.xz 5079636 BLAKE2B 9dc533ca9995f272c9f69c277e02f028cf04a1161b6ff18082dc132861549bf9a297a99768bd779ccf0c5ccd26e2bae321e8e233986c23123b3fa549f47a4c35 SHA512 43fd5a4739883915187fa04a5c04e106233ce8e76492240585b6b7dca8f74687c8326117383f84f8d4b8fc1de602b2a9aedfa596ce5a1275777fd15ae0f7a142
@@ -48,6 +50,10 @@ DIST gentoo-kernel-5.10.189-1.amd64.gpkg.tar 66314240 BLAKE2B 1ec0bfd7f66e48a701
DIST gentoo-kernel-5.10.189-1.arm64.gpkg.tar 59361280 BLAKE2B fba648c059f89a2f397b30d0c152ac3bb430b27132a6239f1dd0c3f517eb083efe06f48dff36efa0c8fc787556e5c2ed3f13c369f02c819508df17f4121424b9 SHA512 d8488ac246d59f57e81110291f4b3f473e800f19bba135bd2a9e8ee3abcd9ad0015d2f7a18a0b5f7d0015e5b7330bd6482904240958ff98e0881a1d2b28aade3
DIST gentoo-kernel-5.10.189-1.ppc64le.gpkg.tar 54927360 BLAKE2B 659ee4d1684fc2866fe3ad75167bd52e87426a6c0f065bc044bd8c6ec958f2170209f7099916ef4a6aeb4d84f9e3b4746746081e30e048ce08ecf8166af6e067 SHA512 be68ea3de116f91e0367a97165d57c00564f09d1182d7cb5059f9f2256bbeb6f6372fa8c81417201b19659c8ef50e08d91d3ba4f08063f343a735fb294ff9ec4
DIST gentoo-kernel-5.10.189-1.x86.gpkg.tar 56473600 BLAKE2B b57dc2ecfaff8495888ccd25b9c3209a504ebddfb51339f6d36403ac595be86dcc326477326f3cbfe3eee1a282e970d27579c001d785b0ef060d67f137dcf1ff SHA512 065677864880927401ce38c939ed888e6d1282eb5e28b88e15797784fd48cb1be5d0527b72b9ccabb2216a9b52a10750afa5fb6218e64e7c21a135fb1069ada3
+DIST gentoo-kernel-5.10.190-1.amd64.gpkg.tar 66344960 BLAKE2B 7dd961425f9964e85636701fb171e5836f338ace3748a0f9148a08c301e4784fd7eff5099173368203f613ae6a6b3228a8851c746a99268f11f7a4c27ddae0f9 SHA512 d58f6a8d63cb1acb4587c0b4c7b0fc3b679e712e14c0d71644ae93c6a0c837ab164993f211556fb3ea4b7d5da7fe7087c53b0b34215859edde89cef3b8bcac78
+DIST gentoo-kernel-5.10.190-1.arm64.gpkg.tar 59371520 BLAKE2B 73d45fa6303bfca921868ab5e14b6063f0bbddb58907d639b40ad905354916217b076875e69f36201fe9191ca5c76af4495202bb1148a4fe5c97a7c55b06c8d4 SHA512 063e369bec1b5ba6cf7a81395873f9a27df4cf48ab4b6f36090e7747284f8e9578df5ed7f90eb7b5b4749e411013f81c36a494a1bb14df12275473081589b296
+DIST gentoo-kernel-5.10.190-1.ppc64le.gpkg.tar 54937600 BLAKE2B 6cc7b10f60030bc946f595c418530ea7b19c532370b80ce365e31d5d6379d9a8076c5e0f373fab818282a047d408ed00a3752147f9d3000bb6721be8164ef616 SHA512 add2640f156632f57e5769854a550eebac54b120b289d8cef732208ff5d4cf62e7db0688718bec1bb87beb893a86d52b82bc211ed5dfb3a310807796fb3f2470
+DIST gentoo-kernel-5.10.190-1.x86.gpkg.tar 56483840 BLAKE2B 4a4a3e22d916b3df7c2d3e093450bd04fc814873615564ad4ee7e8e789b4d4370df188fc5b66906a3cc782eb0b65de8ce8ac677554376b084112d15c3c842b97 SHA512 24ff5a007b032f9f6af49baabe032fb97dd312e21f258337aef5327adb077f460c374f90ef321d04f6ab55197544c03970718776ce9738aa97b56bb21d4a3ace
DIST gentoo-kernel-5.15.122-1.amd64.gpkg.tar 69550080 BLAKE2B 19e838d91b771456a22a1c003c79af1abbd4f7eb1e8629bb0b226a3e54481bf5514038454ee082945035e543c249657305e92121ffc8fae97003f530725503ef SHA512 00b371cf9039215a02f5cf06790ff76443f8cb504e794b91e61746e75ed99f43fdf94602439744771cd40aeb547416dceb3122a4ecf83b5ae18f3b7628b07b05
DIST gentoo-kernel-5.15.122-1.arm64.gpkg.tar 62504960 BLAKE2B 7fa1d232e86175bc06fc26bf4bde90c3170e724566779697a8153f14d8c0a38f6a2b31900f02ea5de95cf122b5f955914aadfbd8061ad3d0a0d6d8c0ef23e988 SHA512 09591edcdca3c29e5f78a51a65a7e5169d55094de627be73973c6302b62454f18d28996a72a667814b2cbd8dbfeaac3ea642d6092d6d296c63b077ee979c0fc5
DIST gentoo-kernel-5.15.122-1.ppc64le.gpkg.tar 57118720 BLAKE2B ad11ad53e8e42220d1efc9948f72e72e41353e73357670f33ca30c8157b6d8e859b05d77ad31a033032134ea74a63bc3de53723ba118c566d4268a9c7d18c203 SHA512 377124529e69e09de0a4f0760d0500bb3550f5bf6752b6264a37dd320f6b99e3aad6636074d8189c4e2f437281d3e2ed7cca76ffdbdb77cd92b19852448d36a8
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.190.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.190.ebuild
new file mode 100644
index 000000000000..fb165f3f0e91
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.190.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 ))
+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}.gpkg.tar
+ -> ${BINPKG}.amd64.gpkg.tar
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.arm64.gpkg.tar
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.ppc64le.gpkg.tar
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.x86.gpkg.tar
+ )
+"
+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
+ app-alternatives/yacc
+"
+
+QA_PREBUILT='*'
+
+KV_LOCALVERSION='-gentoo-dist'
+KPV=${PV}${KV_LOCALVERSION}
+
+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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "${BINPKG}/image/lib/modules/${KPV}"
+}
+
+src_install() {
+ mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
+
+ # FIXME: requires proper mount-boot
+ if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
+ mv "${BINPKG}"/image/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
+}