34 lines
662 B
Batchfile
34 lines
662 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
for %%I in ("%~dp0..") do set "SRC_ROOT=%%~fI"
|
|
|
|
:process_arg
|
|
if "%1"=="" goto end_process_arg
|
|
set name=%1
|
|
set value=
|
|
|
|
:process_arg_value
|
|
if NOT "%value%"=="" set value=%value% %2
|
|
if "%value%"=="" set value=%2
|
|
shift
|
|
if "%2"=="!" goto set_arg
|
|
if "%2"=="" goto set_arg
|
|
goto process_arg_value
|
|
|
|
:set_arg
|
|
set %name%=%value%
|
|
shift
|
|
shift
|
|
goto process_arg
|
|
:end_process_arg
|
|
|
|
pushd "%SRC_ROOT%\Bin" || exit /b 1
|
|
hex2000.exe UKSSTMS320F28335.out -boot -sci8 -map UKSSTMS320F28335.map -o UKSSTMS320F28335.hex -i
|
|
set "BUILD_RESULT=%errorlevel%"
|
|
popd
|
|
if not "%BUILD_RESULT%"=="0" exit /b %BUILD_RESULT%
|
|
|
|
call "%SRC_ROOT%\build_bin.bat"
|
|
exit /b %errorlevel%
|