1
0
mirror of https://github.com/azure-rtos/threadx synced 2025-02-06 08:08:27 +08:00
threadx/test/ports/azrtos_clean_tx_tz_mdk5.bat

31 lines
823 B
Batchfile
Raw Normal View History

@ECHO OFF
ECHO INFO: Cleaning %CD%...
ECHO INFO: Cleaning ThreadX_Library...
DEL out.txt 2> NUL
START /wait %AZRTOS_KEIL_UV% -j0 -c ThreadX_Library.uvprojx -o out.txt
IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR
TYPE out.txt 2> NUL
ECHO INFO: Cleaning demo_secure_zone...
DEL out.txt 2> NUL
START /wait %AZRTOS_KEIL_UV% -j0 -c demo_secure_zone\demo_secure_zone.uvprojx -o out.txt
IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR
TYPE out.txt 2> NUL
ECHO INFO: Cleaning demo_threadx_non-secure_zone...
DEL out.txt 2> NUL
START /wait %AZRTOS_KEIL_UV% -j0 -c demo_threadx_non-secure_zone\demo_threadx_non-secure_zone.uvprojx -o out.txt
IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR
TYPE out.txt 2> NUL
DEL out.txt 2> NUL
ECHO INFO: Cleaning completed successfully!
EXIT /B 0
:CLEAN_ERROR
DEL out.txt 2> NUL
ECHO ERROR: clean failed.
EXIT /B 1