forked from espressif/esp-idf
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:
@@ -1,5 +1,12 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
# Emergency backup option to use previous export.ps1 (export_legacy.ps1) if the new export approach fails.
|
||||
# To use it, set environmental variable like: $Env:ESP_IDF_LEGACY_EXPORT=1
|
||||
if ($env:ESP_IDF_LEGACY_EXPORT) {
|
||||
. ./tools/legacy_exports/export_legacy.ps1
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
$idf_path = "$PSScriptRoot"
|
||||
|
||||
if (-not (Test-Path "$idf_path/tools/idf.py") -or
|
||||
|
Reference in New Issue
Block a user