mimxrt/Makefile: Modify handling of SDCARD option.

Removes separate `if` case in Makefile for setting SDCARD option define.
This commit is contained in:
Philipp Ebensberger 2022-06-22 20:43:27 +02:00 committed by Damien George
parent b1aec393b1
commit 84339aa8ec
1 changed files with 2 additions and 5 deletions

View File

@ -376,6 +376,7 @@ endif
# Set default values for optional variables
MICROPY_HW_SDRAM_AVAIL ?= 0
MICROPY_HW_SDRAM_SIZE ?= 0
MICROPY_PY_MACHINE_SDCARD ?= 0
# Configure default compiler flags
CFLAGS += \
@ -395,6 +396,7 @@ CFLAGS += \
-DMICROPY_HW_FLASH_SIZE=$(MICROPY_HW_FLASH_SIZE) \
-DMICROPY_HW_SDRAM_AVAIL=$(MICROPY_HW_SDRAM_AVAIL) \
-DMICROPY_HW_SDRAM_SIZE=$(MICROPY_HW_SDRAM_SIZE) \
-DMICROPY_PY_MACHINE_SDCARD=$(MICROPY_PY_MACHINE_SDCARD) \
-DSPI_RETRY_TIMES=1000000 \
-DUART_RETRY_TIMES=1000000 \
-DXIP_BOOT_HEADER_ENABLE=1 \
@ -452,11 +454,6 @@ CFLAGS += \
endif
endif
# Configure feature specific compiler flags
ifeq ($(MICROPY_PY_MACHINE_SDCARD),1)
CFLAGS += -DMICROPY_PY_MACHINE_SDCARD=1
endif
# All settings for Ethernet support are controller by the value of MICROPY_PY_LWIP
ifeq ($(MICROPY_PY_LWIP), 1)
CFLAGS += \