mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
add toolchain setting for esp32s2
This commit is contained in:
3
Kconfig
3
Kconfig
@@ -40,7 +40,8 @@ mainmenu "Espressif IoT Development Framework Configuration"
|
|||||||
menu "SDK tool configuration"
|
menu "SDK tool configuration"
|
||||||
config SDK_TOOLPREFIX
|
config SDK_TOOLPREFIX
|
||||||
string "Compiler toolchain path/prefix"
|
string "Compiler toolchain path/prefix"
|
||||||
default "xtensa-esp32-elf-"
|
default "xtensa-esp32-elf-" if IDF_TARGET_ESP32
|
||||||
|
default "xtensa-lx7-elf-" if IDF_TARGET_ESP32S2BETA
|
||||||
help
|
help
|
||||||
The prefix/path that is used to call the toolchain. The default setting assumes
|
The prefix/path that is used to call the toolchain. The default setting assumes
|
||||||
a crosstool-ng gcc setup that is in your PATH.
|
a crosstool-ng gcc setup that is in your PATH.
|
||||||
|
9
tools/cmake/toolchain-esp32s2beta.cmake
Normal file
9
tools/cmake/toolchain-esp32s2beta.cmake
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
set(CMAKE_SYSTEM_NAME Generic)
|
||||||
|
|
||||||
|
set(CMAKE_C_COMPILER xtensa-lx7-elf-gcc)
|
||||||
|
set(CMAKE_CXX_COMPILER xtensa-lx7-elf-g++)
|
||||||
|
set(CMAKE_ASM_COMPILER xtensa-lx7-elf-gcc)
|
||||||
|
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "-nostdlib" CACHE STRING "Linker Base Flags")
|
||||||
|
set(CMAKE_C_FLAGS "-mlongcalls" CACHE STRING "C Compiler Base Flags")
|
||||||
|
set(CMAKE_CXX_FLAGS "-mlongcalls" CACHE STRING "C++ Compiler Base Flags")
|
Reference in New Issue
Block a user