summaryrefslogtreecommitdiff
path: root/test/ports/azrtos_clean_tx_mdk5.bat
blob: 441763661566dea2979e99e1b55ec74042da1ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@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 ThreadX_Demo...
DEL out.txt 2> NUL
START /wait %AZRTOS_KEIL_UV% -j0 -c ThreadX_Demo.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
TYPE out.txt 2> NUL
ECHO ERROR: clean failed.
EXIT /B 1