@echo off rm -rf .dep/ rm -rf build\rusefi.hex rm -rf build\rusefi.bin rem todo add rem git submodule update --init rem magic once needed call update_version.bat echo Starting compilation rem the important piece make 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 cp config/features.h ../firmware_binary rem cp build/rusefi.hex ../firmware_binary rem cp build/rusefi.elf ../firmware_binary rem cp tunerstudio/rusefi.ini ../firmware_binary rem cd ../firmware_binary rem del firmaware_binary.zip rem 7z a firmaware_binary.zip rusefi.hex rusefi.ini features.h flash.bat rem cd ../firmware cd build rem Generate human-readable version of the .map memory usage report java -jar ../../java_tools/gcc_map_reader.jar rusefi.map > ../rusefi_ram_report.txt cd .. echo Looking at size arm-none-eabi-size --format=berkeley "build\rusefi.elf" echo Compiler version arm-none-eabi-gcc -v echo Have the file, let's program the board right away call flash_openocd echo Done flashing