2020-07-09 07:27:20 -07:00
|
|
|
#!/bin/bash
|
2020-06-19 10:32:57 -07:00
|
|
|
|
|
|
|
echo "Compiler gcc version"
|
|
|
|
arm-none-eabi-gcc -v
|
|
|
|
|
|
|
|
rm -rf deliver
|
|
|
|
mkdir deliver
|
|
|
|
|
2020-07-09 07:27:20 -07:00
|
|
|
#bash clean.sh
|
2020-07-06 15:46:26 -07:00
|
|
|
#echo "TIMESTAMP $(date "+%D %T.%2N")"
|
2020-07-01 15:04:37 -07:00
|
|
|
|
2020-07-06 15:46:26 -07:00
|
|
|
#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"
|
2021-03-05 16:28:17 -08:00
|
|
|
#make -j$(nproc) DEBUG_LEVEL_OPT='-O2'
|
2020-07-06 15:46:26 -07:00
|
|
|
#EXTRA_PARAMS=""
|
2020-06-19 10:32:57 -07:00
|
|
|
|
2020-06-19 11:46:33 -07:00
|
|
|
# mv build/rusefi.elf deliver/rusefi_no_asserts.elf
|
2020-07-06 15:46:26 -07:00
|
|
|
#mv build/rusefi.bin deliver/rusefi_no_asserts.bin
|
2020-06-19 10:32:57 -07:00
|
|
|
# this file is needed for DFU generation
|
2020-07-06 15:46:26 -07:00
|
|
|
#mv build/rusefi.hex deliver/rusefi_no_asserts.hex
|
|
|
|
#echo "Release compilation results 1/2"
|
|
|
|
#echo "TIMESTAMP $(date "+%D %T.%2N")"
|
|
|
|
#ls -l build
|
|
|
|
#[ -e deliver/rusefi_no_asserts.hex ] || { echo "FAILED to compile NO ASSERTS version"; exit 1; }
|
2020-06-19 10:32:57 -07:00
|
|
|
|
2020-07-09 07:27:20 -07:00
|
|
|
bash clean.sh
|
2020-06-19 10:32:57 -07:00
|
|
|
echo "TIMESTAMP $(date "+%D %T.%2N")"
|
2020-07-01 15:37:24 -07:00
|
|
|
EXTRA_PARAMS="-DDUMMY -DFIRMWARE_ID=\\\"default\\\""
|
2021-03-05 16:28:17 -08:00
|
|
|
make -j$(nproc)
|
2020-06-19 10:32:57 -07:00
|
|
|
EXTRA_PARAMS=""
|
|
|
|
|
2020-06-19 11:46:33 -07:00
|
|
|
mv build/rusefi.elf deliver/rusefi.elf
|
2020-06-19 10:32:57 -07:00
|
|
|
# this file is needed for DFU generation
|
2020-06-19 11:46:33 -07:00
|
|
|
mv build/rusefi.hex deliver/rusefi.hex
|
2020-06-19 10:32:57 -07:00
|
|
|
# Keeping file in place since hw_test.bat would take it from current location
|
2020-06-19 11:46:33 -07:00
|
|
|
cp build/rusefi.bin deliver/rusefi.bin
|
2020-06-19 10:32:57 -07:00
|
|
|
echo Debug compilation results 2/2
|
|
|
|
echo "TIMESTAMP $(date "+%D %T.%2N")"
|
|
|
|
ls -l build
|
2020-07-01 11:09:01 -07:00
|
|
|
[ -e deliver/rusefi.hex ] || { echo "FAILED to compile DEFAULT with DEBUG"; exit 1; }
|
2020-06-19 10:32:57 -07:00
|
|
|
|
|
|
|
echo "clean_compile_two_versions: Looks good!"
|