move logic out of bat (#941)
This commit is contained in:
parent
05ef1b6c3e
commit
48fceb66c3
|
@ -5,9 +5,7 @@ set LDSCRIPT = config/boards/NUCLEO_F767/STM32F76xxI.ld
|
|||
|
||||
set PROJECT_BOARD=microrusefi
|
||||
set PROJECT_CPU=ARCH_STM32F7
|
||||
set EXTRA_PARAMS=-DDUMMY ^
|
||||
-DEFI_FATAL_ERROR_PIN=GPIOE_3 ^
|
||||
-DDEFAULT_ENGINE_TYPE=MRE_BOARD_TEST
|
||||
set DEFAULT_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=MRE_BOARD_TEST
|
||||
|
||||
call config/boards/common_make.bat
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@ set LDSCRIPT = config/boards/NUCLEO_F767/STM32F76xxI.ld
|
|||
|
||||
set PROJECT_BOARD=microrusefi
|
||||
set PROJECT_CPU=ARCH_STM32F7
|
||||
set EXTRA_PARAMS=-DDUMMY ^
|
||||
-DEFI_FATAL_ERROR_PIN=GPIOE_3 ^
|
||||
-DDEFAULT_ENGINE_TYPE=MICRO_RUS_EFI
|
||||
|
||||
call config/boards/common_make.bat
|
||||
|
||||
|
|
|
@ -7,5 +7,10 @@ BOARDINC = $(PROJECT_DIR)/config/boards/nucleo_f767 $(PROJECT_DIR)/config/stm32f
|
|||
|
||||
LDSCRIPT= $(PROJECT_DIR)/config/boards/nucleo_f767/STM32F76xxI.ld
|
||||
|
||||
# Set this if you want a default engine type other than normal MRE
|
||||
ifeq ($(DEFAULT_ENGINE_TYPE),)
|
||||
DEFAULT_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=MICRO_RUS_EFI
|
||||
endif
|
||||
|
||||
# Override DEFAULT_ENGINE_TYPE
|
||||
DDEFS += -DSTM32F767xx -DEFI_USE_OSC=TRUE -DFIRMWARE_ID=\"microRusEfi\"
|
||||
DDEFS += -DSTM32F767xx -DEFI_USE_OSC=TRUE -DEFI_FATAL_ERROR_PIN=GPIOE_3 -DFIRMWARE_ID=\"microRusEfi\" $(DEFAULT_ENGINE_TYPE)
|
||||
|
|
Loading…
Reference in New Issue