summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucian Copeland <hierophect@gmail.com>2020-04-23 17:12:55 -0400
committerLucian Copeland <hierophect@gmail.com>2020-04-23 17:43:35 -0400
commitbd0df9e3bcd8179ac35ac7b3b3bc6bbc26e2a7ab (patch)
tree5af7e53e1b907cda3056b5eb031d14a7f65fda3b
parentb6f07a1c418153dbe90a33e0569fa099c71a8ad8 (diff)
Minor redundancy fix
-rw-r--r--ports/atmel-samd/mpconfigport.mk14
-rw-r--r--py/circuitpy_mpconfig.mk1
2 files changed, 3 insertions, 12 deletions
diff --git a/ports/atmel-samd/mpconfigport.mk b/ports/atmel-samd/mpconfigport.mk
index ee68c079a..92d47b186 100644
--- a/ports/atmel-samd/mpconfigport.mk
+++ b/ports/atmel-samd/mpconfigport.mk
@@ -64,22 +64,12 @@ ifndef CIRCUITPY_SAMD
CIRCUITPY_SAMD = 1
endif
-ifndef CIRCUITPY_ULAB
-ifneq ($(CIRCUITPY_FULL_BUILD),0)
-CIRCUITPY_ULAB = 1
-endif
-endif
-
ifndef CIRCUITPY_RGBMATRIX
-ifneq ($(CIRCUITPY_FULL_BUILD),0)
-CIRCUITPY_RGBMATRIX = 1
-endif
+CIRCUITPY_RGBMATRIX = $(CIRCUITPY_FULL_BUILD)
endif
ifndef CIRCUITPY_FRAMEBUFFERIO
-ifneq ($(CIRCUITPY_FULL_BUILD),0)
-CIRCUITPY_FRAMEBUFFERIO = 1
-endif
+CIRCUITPY_FRAMEBUFFERIO = $(CIRCUITPY_FULL_BUILD)
endif
endif # samd51
diff --git a/py/circuitpy_mpconfig.mk b/py/circuitpy_mpconfig.mk
index 9f0a1684a..30ab720d7 100644
--- a/py/circuitpy_mpconfig.mk
+++ b/py/circuitpy_mpconfig.mk
@@ -319,6 +319,7 @@ CFLAGS += -DCIRCUITPY_SERIAL_UART=$(CIRCUITPY_SERIAL_UART)
ifndef CIRCUITPY_ULAB
CIRCUITPY_ULAB = $(CIRCUITPY_FULL_BUILD)
endif
+CFLAGS += -DCIRCUITPY_ULAB=$(CIRCUITPY_ULAB)
# Enabled micropython.native decorator (experimental)
ifndef CIRCUITPY_ENABLE_MPY_NATIVE