version into file

This commit is contained in:
rusefi 2019-03-29 11:24:53 -04:00
parent e126c5c8fc
commit 76b8be870e
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ echo Bootloader build success.
cd blbuild
rem Generate a header file with binary bootloader code
java -jar ../../../java_tools/bin2header.jar bootloader.bin %BOOTLOADER_CODE_DESTINATION_FILE% "static const volatile uint8_t bootloader_code[] BOOTLOADER_SECTION"
java -jar ../../../java_tools/bin2header.jar bootloader.bin %BOOTLOADER_CODE_DESTINATION_FILE% "%BOOTLOADER_COMMENT% static const volatile uint8_t bootloader_code[] BOOTLOADER_SECTION"
cd ..
rem Touch 'bootloader_storage.c' to update its modification date (needed for make)

View File

@ -6,6 +6,7 @@ rem set PROJECT_BOARD=Prometheus
rem set PROMETHEUS_BOARD=405
rem set EXTRA_PARAMS=-DDUMMY -DSTM32F405xx -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_CHECKS=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 BOOTLOADER_CODE_DESTINATION_PATH=".."
set BOOTLOADER_COMMENT="/*F4discovery*/"
rem set DEBUG_LEVEL_OPT="-O2"
call !compile_bootloader.bat -r