From 45e047fd03d5c69e20312bbb7a26d921154aa124 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Sun, 20 Oct 2024 20:56:49 +0900 Subject: [PATCH] scripts: Rework Windows setup script for restructured bundle This commit reworks the Windows Zephyr SDK distribution bundle setup script to work with the restructured distribution bundle. Signed-off-by: Stephanos Ioannidis --- scripts/template_setup_win | 68 ++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/scripts/template_setup_win b/scripts/template_setup_win index d3e1b1cc..0c5e9036 100644 --- a/scripts/template_setup_win +++ b/scripts/template_setup_win @@ -23,21 +23,21 @@ exit /b 0 :entry -REM # Initialise toolchain list -set TOOLCHAINS= -for /f %%t in (sdk_toolchains) do ( - set TOOLCHAINS=!TOOLCHAINS! %%t +REM # Initialise GNU toolchain list +set GNU_TOOLCHAINS= +for /f %%t in (sdk_gnu_toolchains) do ( + set GNU_TOOLCHAINS=!GNU_TOOLCHAINS! %%t ) -REM Initialise list of toolchains to install -set INST_TOOLCHAINS= +REM Initialise list of GNU toolchains to install +set INST_GNU_TOOLCHAINS= REM # Read bundle version from file set /p VERSION=] [/h] [/c] +echo %~n0 [/t ^] [/h] [/c] echo. -echo /t ^ Install specified toolchain -echo all Install all toolchains -echo /h Install host tools -echo /c Register Zephyr SDK CMake package +echo /t ^ Install specified GNU toolchain +echo all Install all GNU toolchains +echo /h Install host tools +echo /c Register Zephyr SDK CMake package echo. -echo Supported Toolchains: +echo Supported GNU Toolchains: echo. -for %%t in (%TOOLCHAINS%) do ( +for %%t in (%GNU_TOOLCHAINS%) do ( echo %%t ) echo.