reducing scripts duplication

This commit is contained in:
rusefi 2019-06-08 15:10:54 -04:00
parent 0ed1e2ef21
commit c2f0fc2f17
4 changed files with 8 additions and 18 deletions

View File

@ -1,18 +1,21 @@
@echo off
set script_name=!compile_bootloader.bat
echo Entering %script_name%
rem Needed for board overrides
IF "%BOOTLOADER_CODE_DESTINATION_PATH%"=="" (SET BOOTLOADER_CODE_DESTINATION_PATH="..")
set BOOTLOADER_CODE_DESTINATION_FILE=%BOOTLOADER_CODE_DESTINATION_PATH%/bootloader_generated.hxx
rm -f %BOOTLOADER_CODE_DESTINATION_FILE%
echo Starting bootloader compilation...
echo %script_name%: Starting bootloader compilation...
make -j4 -f src/Makefile %1 %2 %3
if errorlevel 1 echo make compilation failed
if errorlevel 1 exit -1
echo Bootloader build success.
echo %script_name%: Bootloader build success.
cd blbuild
rem Generate a header file with binary bootloader code
@ -21,3 +24,6 @@ cd ..
rem Touch 'bootloader_storage.c' to update its modification date (needed for make)
copy /b bootloader_storage.c +,,
pwd
call ../config/boards/clean_env_variables.bat

View File

@ -13,9 +13,3 @@ set BOOTLOADER_CODE_DESTINATION_PATH="../Prometheus/405"
set DEBUG_LEVEL_OPT="-O2"
call !compile_bootloader.bat -r
rem Clean up so that no one inherits this value
set PROJECT_BOARD=
set EXTRA_PARAMS=
set DEBUG_LEVEL_OPT=

View File

@ -13,8 +13,3 @@ set BOOTLOADER_CODE_DESTINATION_PATH="../Prometheus/469"
set DEBUG_LEVEL_OPT="-O2"
call !compile_bootloader.bat -r
rem Clean up so that no one inherits this value
set PROJECT_BOARD=
set EXTRA_PARAMS=
set DEBUG_LEVEL_OPT=

View File

@ -15,8 +15,3 @@ set BOOTLOADER_COMMENT="/*F4discovery*/"
rem set DEBUG_LEVEL_OPT="-O2"
call !compile_bootloader.bat -r
rem Clean up so that no one inherits this value
set PROJECT_BOARD=
set EXTRA_PARAMS=
set DEBUG_LEVEL_OPT=