reducing scripts duplication
This commit is contained in:
parent
8981534093
commit
b64fc05b07
|
@ -1,3 +1,3 @@
|
|||
echo I am clean.bat
|
||||
echo Entering firmware\clean.bat
|
||||
rd /s /q .dep
|
||||
rd /s /q build
|
||||
|
|
|
@ -2,7 +2,7 @@ rem
|
|||
rem STM32F767 version of the firmware for Nucleo-F746ZG board
|
||||
rem
|
||||
|
||||
bundle_nameset script_name=!compile-nucleo_f746.bat
|
||||
set script_name=!compile-nucleo_f746.bat
|
||||
echo Entering %script_name%
|
||||
|
||||
cd ../../..
|
||||
|
|
|
@ -2,7 +2,7 @@ rem
|
|||
rem STM32F767 version of the firmware for Nucleo-F767ZI board
|
||||
rem
|
||||
|
||||
bundle_nameset script_name=!compile-nucleo_f767.bat
|
||||
set script_name=!compile-nucleo_f767.bat
|
||||
echo Entering %script_name%
|
||||
|
||||
cd ../../..
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
bundle_nameset script_name=build_version.bat
|
||||
set script_name=build_version.bat
|
||||
echo Entering %script_name% with %bundle_name%
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
set COMPILE_FOLDER=%1
|
||||
set COMPILE_SCRIPT=%2
|
||||
|
||||
bundle_nameset script_name=combile_and_upload.bat
|
||||
set script_name=combile_and_upload.bat
|
||||
echo Entering %script_name% with %COMPILE_FOLDER% %COMPILE_SCRIPT%
|
||||
|
||||
|
||||
|
@ -20,9 +20,11 @@ cd firmware
|
|||
call clean.bat
|
||||
cd ..
|
||||
|
||||
|
||||
cd firmware\config
|
||||
pwd
|
||||
cd %COMPILE_FOLDER%
|
||||
pwd
|
||||
echo Invoking %COMPILE_SCRIPT%
|
||||
|
||||
call %COMPILE_SCRIPT%
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
echo Entering simulator\clean.bat
|
||||
rm -rf .dep
|
||||
rm -rf build
|
||||
|
|
Loading…
Reference in New Issue