mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 11:59:04 +00:00
feat(tools): Add backup option to use legacy export script
This feature serves as an immediate fix in case the new export approach causes issues. The user can simply set the environment variable `ESP_IDF_LEGACY_EXPORT`, and the old export script will be used.
This commit is contained in:
@@ -6,6 +6,14 @@ if defined MSYSTEM (
|
||||
|
||||
set SCRIPT_EXIT_CODE=0
|
||||
|
||||
:: Emergency backup option to use previous export.bat (export_legacy.bat) if the new export approach fails.
|
||||
:: To use it, set environmental variable like: set ESP_IDF_LEGACY_EXPORT=1
|
||||
if not "%ESP_IDF_LEGACY_EXPORT%"=="" (
|
||||
tools\legacy_exports\export_legacy.bat
|
||||
set SCRIPT_EXIT_CODE=%errorlevel%
|
||||
goto :eof
|
||||
)
|
||||
|
||||
:: Missing requirements check
|
||||
set MISSING_REQUIREMENTS=
|
||||
python.exe --version >NUL 2>NUL
|
||||
|
Reference in New Issue
Block a user