You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
834 B
26 lines
834 B
$ErrorActionPreference = "Continue"
|
|
|
|
# Clear MSYS environment variables
|
|
Remove-Item Env:MSYSTEM -ErrorAction SilentlyContinue
|
|
$env:MSYSTEM = ""
|
|
|
|
# Set ESP-IDF environment
|
|
$env:IDF_PATH = "C:\Espressif\frameworks\esp-idf-v5.5.2"
|
|
$env:IDF_TOOLS_PATH = "C:\Espressif"
|
|
$env:IDF_PYTHON_ENV_PATH = "C:\Espressif\python_env\idf5.5_py3.11_env"
|
|
|
|
$toolPaths = @(
|
|
"C:\Espressif\python_env\idf5.5_py3.11_env\Scripts",
|
|
"C:\Espressif\tools\cmake\3.30.2\bin",
|
|
"C:\Espressif\tools\ninja\1.12.1",
|
|
"C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20251107\xtensa-esp-elf\bin"
|
|
)
|
|
$env:PATH = ($toolPaths -join ";") + ";" + $env:PATH
|
|
|
|
Set-Location "C:\git\channel3\esp32_channel3"
|
|
|
|
$python = "C:\Espressif\python_env\idf5.5_py3.11_env\Scripts\python.exe"
|
|
$idfpy = "$env:IDF_PATH\tools\idf.py"
|
|
|
|
Write-Host "Building..."
|
|
& $python $idfpy build
|