2018-09-13 02:54:59 -04:00
|
|
|
# CMake toolchain file for ULP
|
|
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
|
|
|
|
# Compiler is only used for preprocessing
|
|
|
|
set(CMAKE_C_COMPILER "xtensa-esp32-elf-gcc")
|
2022-08-29 14:01:20 -04:00
|
|
|
set(CMAKE_CXX_COMPILER "xtensa-esp32-elf-g++")
|
2018-09-13 02:54:59 -04:00
|
|
|
|
|
|
|
set(CMAKE_ASM_COMPILER "esp32ulp-elf-as")
|
|
|
|
set(CMAKE_LINKER "esp32ulp-elf-ld")
|
|
|
|
|
2019-10-09 21:46:42 -04:00
|
|
|
|
2018-09-13 02:54:59 -04:00
|
|
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "${CMAKE_ASM${ASM_DIALECT}_COMPILER} \
|
2022-08-29 14:01:20 -04:00
|
|
|
--mcpu=esp32 <DEFINES> <INCLUDES> -o <OBJECT> -c <SOURCE>")
|
2018-09-13 02:54:59 -04:00
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-A elf32-esp32ulp -nostdlib" CACHE STRING "ULP Linker Base Flags")
|
|
|
|
set(CMAKE_ASM_LINK_EXECUTABLE "${CMAKE_LINKER} <FLAGS> <CMAKE_ASM_LINK_FLAGS> \
|
2019-10-09 21:46:42 -04:00
|
|
|
<LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|