steps towards prometheus CI
This commit is contained in:
parent
9c87b13ac7
commit
7f6c8ed931
|
@ -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
|
|
@ -1,29 +1,6 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rm -rf build\rusefi.hex
|
call compile.bat
|
||||||
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.
|
|
||||||
|
|
||||||
|
|
||||||
rem svn info > ../firmware_binary/version.txt
|
rem svn info > ../firmware_binary/version.txt
|
||||||
rem cp config/features.h ../firmware_binary
|
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
|
rem cd ../firmware
|
||||||
|
|
||||||
|
|
||||||
call generate_memory_usage_report.bat
|
|
||||||
|
|
||||||
echo Looking at size
|
echo Looking at size
|
||||||
arm-none-eabi-size --format=berkeley "build\rusefi.elf"
|
arm-none-eabi-size --format=berkeley "build\rusefi.elf"
|
||||||
echo Compiler version
|
echo Compiler version
|
||||||
|
@ -49,4 +24,3 @@ echo Have the file, let's program the board right away
|
||||||
call flash_openocd
|
call flash_openocd
|
||||||
|
|
||||||
echo Done flashing
|
echo Done flashing
|
||||||
|
|
||||||
|
|
|
@ -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 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 DEBUG_LEVEL_OPT="-O2"
|
||||||
set USE_BOOTLOADER=yes
|
set USE_BOOTLOADER=yes
|
||||||
call compile_and_program.bat -r
|
call compile.bat -r
|
||||||
|
|
|
@ -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 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 DEBUG_LEVEL_OPT="-O2"
|
||||||
set USE_BOOTLOADER=yes
|
set USE_BOOTLOADER=yes
|
||||||
call compile_and_program.bat -r
|
call compile.bat -r
|
||||||
|
|
Loading…
Reference in New Issue