2023-02-27 04:03:42 -05:00
|
|
|
# CMake toolchain file for ULP LP core
|
|
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
|
|
|
|
set(CMAKE_C_COMPILER "riscv32-esp-elf-gcc")
|
|
|
|
set(CMAKE_CXX_COMPILER "riscv32-esp-elf-g++")
|
|
|
|
set(CMAKE_ASM_COMPILER "riscv32-esp-elf-gcc")
|
|
|
|
|
2024-04-19 02:03:29 -04:00
|
|
|
set(CMAKE_C_FLAGS "-Os -ggdb -march=rv32imac_zicsr_zifencei -mdiv -fdata-sections -ffunction-sections"
|
2023-02-27 04:03:42 -05:00
|
|
|
CACHE STRING "C Compiler Base Flags")
|
2024-04-19 02:03:29 -04:00
|
|
|
set(CMAKE_CXX_FLAGS "-Os -ggdb -march=rv32imac_zicsr_zifencei -mdiv -fdata-sections -ffunction-sections"
|
2023-02-27 04:03:42 -05:00
|
|
|
CACHE STRING "C++ Compiler Base Flags")
|
2024-04-19 02:03:29 -04:00
|
|
|
set(CMAKE_ASM_FLAGS "-Os -ggdb -march=rv32imac_zicsr_zifencei -x assembler-with-cpp"
|
2023-02-27 04:03:42 -05:00
|
|
|
CACHE STRING "Assembler Base Flags")
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-march=rv32imac_zicsr_zifencei --specs=nano.specs --specs=nosys.specs"
|
|
|
|
CACHE STRING "Linker Base Flags")
|