summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Burelli <l.burelli@arduino.cc>2023-07-05 18:03:11 +0200
committerDamien George <damien@micropython.org>2023-07-20 23:54:53 +1000
commit31ef7c186bbac067d3bbcaf0876cbef113ee0df6 (patch)
treed5ab1aca7d71a80c738e0f77fbc8933d16ffe351
parent4548928449c63f72fce5917c683664bf3ca0501f (diff)
esp32: Collect properties from IDF-managed components as well.
Some targets like the ESP32-S3 use the IDF Component Manager to provide additional dependencies to the build. Make sure to include these extra components when collecting properties used by MicroPython-specific build steps, like qstr preprocessing. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
-rw-r--r--ports/esp32/esp32_common.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/esp32/esp32_common.cmake b/ports/esp32/esp32_common.cmake
index c7d629cd6..37a19316b 100644
--- a/ports/esp32/esp32_common.cmake
+++ b/ports/esp32/esp32_common.cmake
@@ -191,8 +191,9 @@ target_include_directories(${MICROPY_TARGET} PUBLIC
target_link_libraries(${MICROPY_TARGET} micropy_extmod_btree)
target_link_libraries(${MICROPY_TARGET} usermod)
-# Collect all of the include directories and compile definitions for the IDF components.
-foreach(comp ${IDF_COMPONENTS})
+# Collect all of the include directories and compile definitions for the IDF components,
+# including those added by the IDF Component Manager via idf_components.yaml.
+foreach(comp ${__COMPONENT_NAMES_RESOLVED})
micropy_gather_target_properties(__idf_${comp})
micropy_gather_target_properties(${comp})
endforeach()