2015-07-10 06:01:56 -07:00
|
|
|
|
2019-07-14 12:00:56 -07:00
|
|
|
echo Compiler gcc version
|
|
|
|
arm-none-eabi-gcc -v
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
rd /s /q deliver
|
|
|
|
mkdir deliver
|
|
|
|
|
|
|
|
call clean.bat
|
2019-04-20 14:27:04 -07:00
|
|
|
echo "TIMESTAMP %date% %time%"
|
2019-12-02 16:11:07 -08:00
|
|
|
set EXTRA_PARAMS=-DDUMMY -DFIRMWARE_ID=\"default_no_assert\" -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE
|
2019-07-13 11:39:45 -07:00
|
|
|
make -j4 DEBUG_LEVEL_OPT='-O2'
|
|
|
|
set EXTRA_PARAMS=
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-06-08 14:35:55 -07:00
|
|
|
rem mv build\rusefi.elf deliver\rusefi_no_asserts.elf
|
2019-06-08 13:15:32 -07:00
|
|
|
mv build\rusefi.bin deliver\rusefi_no_asserts.bin
|
2019-06-08 15:38:08 -07:00
|
|
|
rem this file is needed for DFU generation
|
|
|
|
mv build\rusefi.hex deliver\rusefi_no_asserts.hex
|
2019-04-20 19:13:50 -07:00
|
|
|
echo Release compilation results 1/2
|
2019-04-20 14:27:04 -07:00
|
|
|
echo "TIMESTAMP %date% %time%"
|
2019-04-13 13:50:24 -07:00
|
|
|
ls -l build
|
2019-06-08 15:38:08 -07:00
|
|
|
if not exist deliver/rusefi_no_asserts.hex echo FAILED to compile NO ASSERTS version
|
|
|
|
if not exist deliver/rusefi_no_asserts.hex exit -1
|
2019-04-20 19:13:50 -07:00
|
|
|
|
|
|
|
call clean.bat
|
|
|
|
echo "TIMESTAMP %date% %time%"
|
2019-07-13 11:39:45 -07:00
|
|
|
set EXTRA_PARAMS=-DDUMMY -DFIRMWARE_ID=\"default\"
|
|
|
|
make -j4
|
|
|
|
set EXTRA_PARAMS=
|
2019-06-08 13:37:27 -07:00
|
|
|
|
|
|
|
mv build\rusefi.elf deliver\rusefi.elf
|
2019-06-08 15:38:08 -07:00
|
|
|
rem this file is needed for DFU generation
|
2019-06-08 13:37:27 -07:00
|
|
|
mv build\rusefi.hex deliver\rusefi.hex
|
2019-06-08 13:47:10 -07:00
|
|
|
rem Keeping file in place since hw_test.bat would take it from current location
|
|
|
|
cp build\rusefi.bin deliver\rusefi.bin
|
2019-04-20 19:13:50 -07:00
|
|
|
echo Debug compilation results 2/2
|
|
|
|
echo "TIMESTAMP %date% %time%"
|
|
|
|
ls -l build
|
2019-06-08 13:15:32 -07:00
|
|
|
if not exist deliver/rusefi.hex echo FAILED to compile DEFAULT with DEBUG
|
|
|
|
if not exist deliver/rusefi.hex exit -1
|
2019-07-13 12:01:48 -07:00
|
|
|
|
|
|
|
echo clean_compile_two_versions: Looks good!
|