summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/esp8266/Makefile3
-rw-r--r--ports/stm32/Makefile3
2 files changed, 6 insertions, 0 deletions
diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile
index 64116b139..2162c72f0 100644
--- a/ports/esp8266/Makefile
+++ b/ports/esp8266/Makefile
@@ -59,6 +59,9 @@ COPT += -Os -DNDEBUG
LDFLAGS += --gc-sections
endif
+# Options for mpy-cross
+MPY_CROSS_FLAGS += -march=xtensa
+
SRC_C = \
strtoll.c \
main.c \
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index b4c7a15c1..d0b90c761 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -105,6 +105,9 @@ else
COPT += -Os -DNDEBUG
endif
+# Options for mpy-cross
+MPY_CROSS_FLAGS += -march=armv7m
+
SRC_LIB = $(addprefix lib/,\
libc/string0.c \
oofatfs/ff.c \