summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Ebensberger <philipp.ebensberger@3bricks-software.de>2022-06-22 20:43:27 +0200
committerDamien George <damien@micropython.org>2022-06-24 17:58:27 +1000
commit84339aa8ec7839e803147d022533a68e3bdd532a (patch)
tree86c6ec051a7956af36b8b7afd491a5d3721c3276
parentb1aec393b132b69bab94ec88ea1fdc4ace081313 (diff)
mimxrt/Makefile: Modify handling of SDCARD option.
Removes separate `if` case in Makefile for setting SDCARD option define.
-rw-r--r--ports/mimxrt/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/ports/mimxrt/Makefile b/ports/mimxrt/Makefile
index ed7cc0630..ee8281dd6 100644
--- a/ports/mimxrt/Makefile
+++ b/ports/mimxrt/Makefile
@@ -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 += \