set(CMAKE_SYSTEM_NAME Generic) # Zephyr already sets toolchain absolute path # set(CMAKE_C_COMPILER xtensa-esp32-elf-gcc) # set(CMAKE_CXX_COMPILER xtensa-esp32-elf-g++) # set(CMAKE_ASM_COMPILER xtensa-esp32-elf-gcc) set(CMAKE_C_FLAGS "-mlongcalls -Wno-frame-address" CACHE STRING "C Compiler Base Flags") set(CMAKE_CXX_FLAGS "-mlongcalls -Wno-frame-address" CACHE STRING "C++ Compiler Base Flags") set(CMAKE_EXE_LINKER_FLAGS "-nostartfiles -nodefaultlibs" CACHE STRING "Linker Base Flags")