Skip to content

Commit

Permalink
mimxrt/Makefile: Modify handling of SDCARD option.
Browse files Browse the repository at this point in the history
Removes separate `if` case in Makefile for setting SDCARD option define.
  • Loading branch information
alphaFred authored and dpgeorge committed Jun 24, 2022
1 parent b1aec39 commit 84339aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ports/mimxrt/Makefile
Expand Up @@ -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 += \
Expand All @@ -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 \
Expand Down Expand Up @@ -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 += \
Expand Down

0 comments on commit 84339aa

Please sign in to comment.