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