mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_make_cmake_toolchain: set correct CMAKE_SYSTEM_PROCESSOR for x86, aarch64 and riscv64
@ 2023-09-04  9:39 Philipp Zabel
  2023-09-08  8:17 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2023-09-04  9:39 UTC (permalink / raw)
  To: ptxdist; +Cc: Philipp Zabel

Follow commit 2523af9c557f ("ptxd_make_meson_cross_file: set corect
meson architecture for x86, aarch64 and riscv64"). This fixes the
aarch64 build of vulkan-loader with assembly enabled, which expects
CMAKE_SYSTEM_PROCESSOR to be 'aarch64' [1].

[1] https://github.com/KhronosGroup/Vulkan-Loader/blob/afdd025ead2b63b2c73d900ab128a2d3b512cdf0/scripts/parse_asm_values.py#L73

Fixes: 03cf8ff9c4b9 ("vulkan-loader: version bump 1.3.261.0 -> 1.3.261.1")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 scripts/lib/ptxd_make_cmake_toolchain.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/lib/ptxd_make_cmake_toolchain.sh b/scripts/lib/ptxd_make_cmake_toolchain.sh
index 3d2482e87718..78975ca98652 100644
--- a/scripts/lib/ptxd_make_cmake_toolchain.sh
+++ b/scripts/lib/ptxd_make_cmake_toolchain.sh
@@ -25,6 +25,11 @@ export PTXDIST_CMAKE_TOOLCHAIN_CROSS
 ptxd_make_cmake_toolchain_target() {
     local sysroot_prefix="${PTXDIST_PATH_SYSROOT_PREFIX}:"
 
+    case "${PTXCONF_ARCH_STRING}" in
+	i386) PTXCONF_ARCH_STRING=x86 ;;
+	arm64) PTXCONF_ARCH_STRING=aarch64 ;;
+	riscv) PTXCONF_ARCH_STRING=riscv64 ;;
+    esac
     SYSTEM_NAME="Linux" \
 	SYSTEM_VERSION="1" \
 	\
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-08  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-04  9:39 [ptxdist] [PATCH] ptxd_make_cmake_toolchain: set correct CMAKE_SYSTEM_PROCESSOR for x86, aarch64 and riscv64 Philipp Zabel
2023-09-08  8:17 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox