1# use "Generic" as CMAKE_SYSTEM_NAME
2
3if (WITH_ZEPHYR)
4  set (CMAKE_SYSTEM_NAME "Generic"        CACHE STRING "")
5  string (TOLOWER "Zephyr"                PROJECT_SYSTEM)
6  string (TOUPPER "Zephyr"                PROJECT_SYSTEM_UPPER)
7  if (NOT WITH_ZEPHYR_LIB)
8    include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
9  endif ()
10  if (CONFIG_CPU_CORTEX_M)
11    set (MACHINE "cortexm" CACHE STRING "")
12  endif (CONFIG_CPU_CORTEX_M)
13endif (WITH_ZEPHYR)
14