Add build system support for programming ESP32-S2 using DFU utils

This commit is contained in:
Roland Dobai
2020-04-06 16:41:44 +02:00
parent 2aaab7eeef
commit ab9f714248
32 changed files with 444 additions and 53 deletions

View File

@@ -269,6 +269,13 @@ def get_sdkconfig_value(sdkconfig_file, key):
return value
def is_target_supported(project_path, supported_targets):
"""
Returns True if the active target is supported, or False otherwise.
"""
return get_sdkconfig_value(os.path.join(project_path, "sdkconfig"), 'CONFIG_IDF_TARGET') in supported_targets
def _guess_or_check_idf_target(args, prog_name, cache):
"""
If CMakeCache.txt doesn't exist, and IDF_TARGET is not set in the environment, guess the value from