File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ if(IDF_VERSION_MINOR GREATER_EQUAL 1)
108
108
list (APPEND IDF_COMPONENTS esp_netif)
109
109
endif ()
110
110
111
+ if (IDF_VERSION_MINOR GREATER_EQUAL 2)
112
+ list (APPEND IDF_COMPONENTS esp_system)
113
+ list (APPEND IDF_COMPONENTS esp_timer)
114
+ endif ()
115
+
111
116
# Register the main IDF component.
112
117
idf_component_register(
113
118
SRCS
@@ -169,5 +174,12 @@ foreach(comp ${IDF_COMPONENTS})
169
174
endif ()
170
175
endforeach ()
171
176
177
+ if (IDF_VERSION_MINOR GREATER_EQUAL 2)
178
+ # These paths cannot currently be found by the IDF_COMPONENTS search loop above,
179
+ # so add them explicitly.
180
+ list (APPEND MICROPY_CPP_INC_EXTRA ${IDF_PATH} /components/soc/soc/${IDF_TARGET} /include )
181
+ list (APPEND MICROPY_CPP_INC_EXTRA ${IDF_PATH} /components/soc/soc/include )
182
+ endif ()
183
+
172
184
# Include the main MicroPython cmake rules.
173
185
include (${MICROPY_DIR} /py/mkrules.cmake)
You can’t perform that action at this time.
0 commit comments