steps towards prometheus CI

This commit is contained in:
rusefi 2019-04-12 15:07:17 -04:00
parent d890830e93
commit b71a7ef2a4
4 changed files with 31 additions and 29 deletions

28
firmware/compile.bat Normal file
View File

@ -0,0 +1,28 @@
@echo off
rm -rf build\rusefi.hex
rm -rf build\rusefi.bin
git submodule update --init
rem PS:
rem git submodule update --recursive --remote
rem magic once needed
call update_version.bat
echo Starting compilation
rem the important piece (pass external args if needed)
make %1 %2 %3
rem cd build
rem if not exist rusefi.hex echo "compilation failed"
rem if not exist rusefi.hex exit -1
rem cd ..
if errorlevel 1 echo make compilation failed
if errorlevel 1 exit -1
echo Build complete success.
call generate_memory_usage_report.bat

View File

@ -1,29 +1,6 @@
@echo off
rm -rf build\rusefi.hex
rm -rf build\rusefi.bin
git submodule update --init
rem PS:
rem git submodule update --recursive --remote
rem magic once needed
call update_version.bat
echo Starting compilation
rem the important piece (pass external args if needed)
make %1 %2 %3
rem cd build
rem if not exist rusefi.hex echo "compilation failed"
rem if not exist rusefi.hex exit -1
rem cd ..
if errorlevel 1 echo make compilation failed
if errorlevel 1 exit -1
echo Build complete success.
call compile.bat
rem svn info > ../firmware_binary/version.txt
rem cp config/features.h ../firmware_binary
@ -38,8 +15,6 @@ rem 7z a firmaware_binary.zip rusefi.hex rusefi.ini features.h flash.bat
rem cd ../firmware
call generate_memory_usage_report.bat
echo Looking at size
arm-none-eabi-size --format=berkeley "build\rusefi.elf"
echo Compiler version
@ -49,4 +24,3 @@ echo Have the file, let's program the board right away
call flash_openocd
echo Done flashing

View File

@ -8,4 +8,4 @@ set PROMETHEUS_BOARD=405
set EXTRA_PARAMS="-DDUMMY -DSTM32F405xx -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_TRACE=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE"
set DEBUG_LEVEL_OPT="-O2"
set USE_BOOTLOADER=yes
call compile_and_program.bat -r
call compile.bat -r

View File

@ -8,4 +8,4 @@ set PROMETHEUS_BOARD=469
set EXTRA_PARAMS="-DDUMMY -DSTM32F469xx -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_TRACE=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE"
set DEBUG_LEVEL_OPT="-O2"
set USE_BOOTLOADER=yes
call compile_and_program.bat -r
call compile.bat -r