summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorLucian Copeland <hierophect@gmail.com>2020-04-23 13:33:41 -0400
committerLucian Copeland <hierophect@gmail.com>2020-04-23 13:33:41 -0400
commit8791ca6af3f5a63d286d9f5c3e26f55a1619ff86 (patch)
tree9709829a960b9f7503783b5ca9899a7b65ae52a0 /py
parentd0a210654767677d6d26f1d4d40c378e03e9ca8e (diff)
implement requested changes
Diffstat (limited to 'py')
-rw-r--r--py/circuitpy_mpconfig.h3
-rw-r--r--py/circuitpy_mpconfig.mk11
2 files changed, 5 insertions, 9 deletions
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h
index 89e9396dd..e09a6309f 100644
--- a/py/circuitpy_mpconfig.h
+++ b/py/circuitpy_mpconfig.h
@@ -179,8 +179,7 @@ typedef long mp_off_t;
// board-specific definitions, which control and may override definitions below.
#include "mpconfigboard.h"
-// CIRCUITPY_FULL_BUILD is defined in py/circuitpy_mpconfig.mk
-// Remove some lesser-used functionality to make small builds fit.
+// Turning off FULL_BUILD removes some functionality to reduce flash size on tiny SAMD21s
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (CIRCUITPY_FULL_BUILD)
#define MICROPY_CPYTHON_COMPAT (CIRCUITPY_FULL_BUILD)
#define MICROPY_COMP_FSTRING_LITERAL (MICROPY_CPYTHON_COMPAT)
diff --git a/py/circuitpy_mpconfig.mk b/py/circuitpy_mpconfig.mk
index 1c2afc33e..61dd9e6da 100644
--- a/py/circuitpy_mpconfig.mk
+++ b/py/circuitpy_mpconfig.mk
@@ -26,18 +26,15 @@
# Boards default to all modules enabled (with exceptions)
# Manually disable by overriding in #mpconfigboard.mk
-# Smaller builds can be forced for resource constrained chips, typically SAMD21s
-# without external flash. Avoid using this for incomplete ports, as it changes
-# settings in other files.
+# Smaller builds can be forced for resource constrained chips (typically SAMD21s
+# without external flash) by setting CIRCUITPY_FULL_BUILD=0. Avoid using this
+# for merely incomplete ports, as it changes settings in other files.
ifndef CIRCUITPY_FULL_BUILD
- ifeq ($(CIRCUITPY_SMALL_BUILD),1)
- CIRCUITPY_FULL_BUILD = 0
- else
CIRCUITPY_FULL_BUILD = 1
- endif
endif
CFLAGS += -DCIRCUITPY_FULL_BUILD=$(CIRCUITPY_FULL_BUILD)
+
ifndef CIRCUITPY_ANALOGIO
CIRCUITPY_ANALOGIO = 1
endif