Append Git commit hash to firmware BIN filename

This commit is contained in:
2026-09-22 12:56:45 +03:00
parent ee7dce4615
commit 2a9f42331c
5 changed files with 34 additions and 9 deletions

View File

@@ -23,12 +23,11 @@ shift
goto process_arg
:end_process_arg
echo. > temp_postBuildStep_Debug.bat
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%
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
call "%SRC_ROOT%\build_bin.bat"
exit /b %errorlevel%