Skip to content

Commit b2ac90b

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 b2ac90b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmake/zephyr/host-tools.cmake

+3
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, prehaps 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

crosstool-ng

Submodule crosstool-ng updated 1643 files

0 commit comments

Comments
 (0)