1set(CMAKE_SYSTEM_NAME Generic) 2 3# Zephyr already sets toolchain absolute path 4# set(CMAKE_C_COMPILER riscv32-esp-elf-gcc) 5# set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++) 6# set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc) 7 8set(CMAKE_C_FLAGS "-march=rv32imc_zicsr_zifencei" CACHE STRING "C Compiler Base Flags") 9set(CMAKE_CXX_FLAGS "-march=rv32imc_zicsr_zifencei" CACHE STRING "C++ Compiler Base Flags") 10set(CMAKE_EXE_LINKER_FLAGS "-nostartfiles -march=rv32imc_zicsr_zifencei --specs=nosys.specs" CACHE STRING "Linker Base Flags") 11