Fix AFR_METADATA_MODE on espressif
esp-idf checks for python dependencies before
configuring, which breaks metadata upload step in OCW
This commit marks python dependencies as checked if
AFR_METADATA_MODE is enabled.
@@ -11,6 +11,11 @@ endif()
# -------------------------------------------------------------------------------------------------
# Compiler settings
# -------------------------------------------------------------------------------------------------
+# Mark the python dependencies as checked so that esp-idf does not check them since this is not
+# needed when we are only generating metadata and not building the project.
+if(AFR_METADATA_MODE)
+ set(PYTHON_DEPS_CHECKED 1)
+endif()
set(esp_idf_dir "${AFR_VENDORS_DIR}/espressif/esp-idf")
# Provides idf_import_components and idf_link_components
