Skip to content

Commit 4fdc2d0

Browse files
committed
cmake: warn users if HOST_TOOLS_HOME is missing
Warn users if HOST_TOOLS_HOME is missing in a Zephyr SDK installation as this indicates an incomplete installation. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 79789b3 commit 4fdc2d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/zephyr/host-tools.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
cmake_host_system_information(RESULT TOOLCHAIN_ARCH QUERY OS_PLATFORM)
44
set(HOST_TOOLS_HOME ${ZEPHYR_SDK_INSTALL_DIR}/sysroots/${TOOLCHAIN_ARCH}-pokysdk-linux)
5+
if(NOT EXISTS ${HOST_TOOLS_HOME})
6+
message(WARNING "${HOST_TOOLS_HOME} doesn't exists, perhaps you forgot to run: ${ZEPHYR_SDK_INSTALL_DIR}/setup.sh ?")
7+
endif()
58

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

0 commit comments

Comments
 (0)