File tree Expand file tree Collapse file tree
firmware/config/boards/subaru_eg33 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,18 +31,20 @@ DDEFS += -DEFI_EMBED_INI_MSD=TRUE
3131# Shared variables
3232ALLINC += $(BOARDINC )
3333
34- # this board has external QSPI NOR flash
35- # see also *STM32_WSPI*
36- DDEFS += -DHAL_USE_WSPI=TRUE
37- DDEFS += -DSNOR_SHARED_BUS=FALSE
38- DDEFS += -DWSPI_USE_MUTUAL_EXCLUSION=FALSE
39-
40- # This board uses ChibiOS MFS driver on internal flash
41- include $(PROJECT_DIR ) /hw_layer/ports/stm32/use_higher_level_flash_api.mk
42- # We have cache
43- DDEFS += -DSNOR_SPI_WORKAROUND_CACHE=TRUE
44- # We want big intermediate buffer
45- DDEFS += -DSNOR_BUFFER_SIZE=512
46-
47- # Serial flash driver
48- include $(PROJECT_DIR ) /hw_layer/drivers/flash/sst26f/sst26f_jedec.mk
34+ ifeq (,$(findstring EFI_BOOTLOADER,$(DDEFS ) ) )
35+ # this board has external QSPI NOR flash
36+ # see also *STM32_WSPI*
37+ DDEFS += -DHAL_USE_WSPI=TRUE
38+ DDEFS += -DSNOR_SHARED_BUS=FALSE
39+ DDEFS += -DWSPI_USE_MUTUAL_EXCLUSION=FALSE
40+
41+ # This board uses ChibiOS MFS driver on internal flash
42+ include $(PROJECT_DIR)/hw_layer/ports/stm32/use_higher_level_flash_api.mk
43+ # We have cache
44+ DDEFS += -DSNOR_SPI_WORKAROUND_CACHE=TRUE
45+ # We want big intermediate buffer
46+ DDEFS += -DSNOR_BUFFER_SIZE=512
47+
48+ # Serial flash driver
49+ include $(PROJECT_DIR)/hw_layer/drivers/flash/sst26f/sst26f_jedec.mk
50+ endif
You can’t perform that action at this time.
0 commit comments