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 find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 9 endif() 10 # map zephyr arch to libmetal machine 11 set (MACHINE "${CONFIG_ARCH}" CACHE STRING "") 12 13endif (WITH_ZEPHYR) 14