summaryrefslogtreecommitdiff
path: root/test/ports/azrtos_build_tx_mdk5.bat
blob: 4ebb115c123b951014aa2b1d79683efa4f5f40be (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: Building %CD%...

ECHO INFO: Building ThreadX_Library...
DEL out.txt 2> NUL
START /wait %AZRTOS_KEIL_UV% -j0 -b ThreadX_Library.uvprojx -o out.txt
IF %ERRORLEVEL% GEQ 2 GOTO BUILD_ERROR
TYPE out.txt 2> NUL

ECHO INFO: Building ThreadX_Demo...
DEL out.txt 2> NUL
START /wait %AZRTOS_KEIL_UV% -j0 -b ThreadX_Demo.uvprojx -o out.txt
IF %ERRORLEVEL% GEQ 2 GOTO BUILD_ERROR
TYPE out.txt 2> NUL

DEL out.txt 2> NUL
ECHO INFO: Build completed successfully!
EXIT /B 0

:BUILD_ERROR
TYPE out.txt 2> NUL
ECHO ERROR: build failed.
EXIT /B 1