File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ function(idf_verify_environment)
128
128
# Warn if the toolchain version doesn't match
129
129
#
130
130
# TODO: make these platform-specific for diff toolchains
131
- gcc_version_check("5.2.0" )
132
- crosstool_version_check("1.22.0-80-g6c4433a" )
131
+ # gcc_version_check("5.2.0")
132
+ # crosstool_version_check("1.22.0-80-g6c4433a")
133
133
134
134
endfunction ()
135
135
Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ macro(project name)
83
83
# Now the configuration is loaded, set the toolchain appropriately
84
84
#
85
85
# TODO: support more toolchains than just ESP32
86
- set (CMAKE_TOOLCHAIN_FILE $ENV{IDF_PATH} /tools/cmake/toolchain-esp32.cmake)
86
+ #set(CMAKE_TOOLCHAIN_FILE $ENV{IDF_PATH}/tools/cmake/toolchain-esp32.cmake)
87
+ set (CMAKE_TOOLCHAIN_FILE $ENV{IDF_PATH} /tools/cmake/toolchain-esp8266.cmake)
87
88
88
89
# Declare the actual cmake-level project
89
90
_project(${name} ASM C CXX)
Original file line number Diff line number Diff line change
1
+ set (CMAKE_SYSTEM_NAME Generic)
2
+
3
+ set (CMAKE_C_COMPILER xtensa-lx106-elf-gcc)
4
+ set (CMAKE_CXX_COMPILER xtensa-lx106-elf-g++)
5
+ set (CMAKE_ASM_COMPILER xtensa-lx106-elf-gcc)
6
+ set (CMAKE_OBJCOPY_COMPILER xtensa-lx106-elf-objcopy)
7
+
8
+ set (CMAKE_EXE_LINKER_FLAGS "-nostdlib" CACHE STRING "Linker Base Flags" )
You can’t perform that action at this time.
0 commit comments