Skip to content

Commit 3d304a4

Browse files
committed
cmake: Set HOST_TOOLS_HOME based on OS_PLATFORM
To support both x86_64 and aarch64 host env we need to set HOST_TOOLS_HOME correct and we utilize OS_PLATFORM from cmake_host_system_information to do that (which on linux will be the result of `uname -m`). Signed-off-by: Kumar Gala <[email protected]>
1 parent cf1a636 commit 3d304a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/zephyr/host-tools.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
set(HOST_TOOLS_HOME ${ZEPHYR_SDK_INSTALL_DIR}/sysroots/x86_64-pokysdk-linux)
3+
cmake_host_system_information(RESULT TOOLCHAIN_ARCH QUERY OS_PLATFORM)
4+
set(HOST_TOOLS_HOME ${ZEPHYR_SDK_INSTALL_DIR}/sysroots/${TOOLCHAIN_ARCH}-pokysdk-linux)
45

56
# Path used for searching by the find_*() functions, with appropriate
67
# suffixes added. Ensures that the SDK's host tools will be found when

0 commit comments

Comments
 (0)