mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
a8e81f88f1
Closes https://github.com/espressif/esp-idf/issues/6432 Closes https://github.com/espressif/binutils-esp32ulp/issues/23
17 lines
807 B
CMake
17 lines
807 B
CMake
# CMake toolchain file for ULP
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
# Compiler is only used for preprocessing
|
|
set(CMAKE_C_COMPILER "xtensa-esp32s3-elf-gcc")
|
|
set(CMAKE_CXX_COMPILER "xtensa-esp32s3-elf-g++")
|
|
|
|
set(CMAKE_ASM_COMPILER "esp32ulp-elf-as")
|
|
set(CMAKE_LINKER "esp32ulp-elf-ld")
|
|
|
|
# Use ESP32-S2 ULP tools here, because ESP32-S3 uses the same ULP coprocessor type
|
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "${CMAKE_ASM${ASM_DIALECT}_COMPILER} \
|
|
--mcpu=esp32s2 <DEFINES> <INCLUDES> -o <OBJECT> -c <SOURCE>")
|
|
set(CMAKE_EXE_LINKER_FLAGS "-A elf32-esp32s2ulp -nostdlib" CACHE STRING "ULP Linker Base Flags")
|
|
set(CMAKE_ASM_LINK_EXECUTABLE "${CMAKE_LINKER} <FLAGS> <CMAKE_ASM_LINK_FLAGS> \
|
|
<LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|