host-tools.cmake 566 B

123456789101112
  1. # SPDX-License-Identifier: Apache-2.0
  2. set(HOST_TOOLS_HOME ${ZEPHYR_SDK_INSTALL_DIR}/sysroots/${TOOLCHAIN_ARCH}-pokysdk-linux)
  3. # Path used for searching by the find_*() functions, with appropriate
  4. # suffixes added. Ensures that the SDK's host tools will be found when
  5. # we call, e.g. find_program(QEMU qemu-system-x86)
  6. list(APPEND CMAKE_PREFIX_PATH ${HOST_TOOLS_HOME}/usr)
  7. # TODO: Use find_* somehow for these as well?
  8. set_ifndef(QEMU_BIOS ${HOST_TOOLS_HOME}/usr/share/qemu)
  9. set_ifndef(OPENOCD_DEFAULT_PATH ${HOST_TOOLS_HOME}/usr/share/openocd/scripts)