35 lines
907 B
Batchfile
35 lines
907 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
|
|
|
|
echo. > temp_postBuildStep_Debug.bat
|
|
|
|
echo "%SRC_ROOT%\Bin\hex2000.exe" "%SRC_ROOT%\Bin\UKSSTMS320F28335.out" -boot -sci8 -map "%SRC_ROOT%\Bin\UKSSTMS320F28335.map" -o "%SRC_ROOT%\Bin\UKSSTMS320F28335.hex" -i >> temp_postBuildStep_Debug.bat
|
|
echo "%SRC_ROOT%\Bin\hex2000.exe" "%SRC_ROOT%\Bin\UKSSTMS320F28335.out" -boot -sci8 -map "%SRC_ROOT%\Bin\UKSSTMS320F28335.map" -o "%SRC_ROOT%\Bin\UKSSTMS320F28335.bin" -b >> temp_postBuildStep_Debug.bat
|
|
|
|
call temp_postBuildStep_Debug.bat
|
|
del temp_postBuildStep_Debug.bat
|
|
|
|
endlocal
|