diff --git a/records/tools/uvision.uvproj.tmpl b/records/tools/uvision.uvproj.tmpl index bcad287..66ad145 100644 --- a/records/tools/uvision.uvproj.tmpl +++ b/records/tools/uvision.uvproj.tmpl @@ -75,9 +75,9 @@ 1 - 1 - ..\..\..\scripts\post_build.bat "#KARM\ARMCC\bin\fromelf --bin $L@L.axf -o $L@L" "#KARM\ARMCC\bin\fromelf --text -s $L@L.axf -o $L@L\symbols" "#KARM\ARMCC\bin\armar --create $L@L\@L.ar $L*.o" - python ..\..\..\scripts\generate_blobs.py $L@L + 0 + ..\..\..\scripts\post_build.bat $KARM $L @L + 0 0 diff --git a/scripts/post_build.bat b/scripts/post_build.bat index 0795e40..20cd79b 100644 --- a/scripts/post_build.bat +++ b/scripts/post_build.bat @@ -17,9 +17,14 @@ :: 2 user commands are not enough so this allows passing the control string :: -::echo %1 -::echo %2 -::echo %3 -cmd /c %1 -cmd /c %2 -cmd /c %3 \ No newline at end of file +set KEIL_ARM=%1 +REM make sure fromelf is part of path +set path=%KEIL_ARM%\ARMCC\bin;%path% +set base_path=%2 +set trgt_name=%3 +set base_name=%base_path%%trgt_name% +fromelf --bin %base_name%.axf -o %base_name% +fromelf --text -s %base_name%.axf -o %base_name%\symbols +armar --create %base_name%\%trgt_name%.ar %base_path%*.o +set SCRIPTS=..\..\..\scripts +python %SCRIPTS%\generate_blobs.py %base_name%