summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-03-14 12:20:39 +1100
committerDamien George <damien.p.george@gmail.com>2019-03-14 12:22:49 +1100
commitc7d19dc0adab2d615e6044f7bbbf6b71255ae8df (patch)
tree79d87eeb6f6ca90e2044e7d5f9ca1d46d643718e
parent5a6026c614e0b7dd26fcf277f01169c95c5d93a4 (diff)
ports/{stm32,esp8266}: Set mpy-cross native arch for frozen native code.
-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 \