From c7d19dc0adab2d615e6044f7bbbf6b71255ae8df Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 14 Mar 2019 12:20:39 +1100 Subject: [PATCH] ports/{stm32,esp8266}: Set mpy-cross native arch for frozen native code. --- ports/esp8266/Makefile | 3 +++ ports/stm32/Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile index 64116b139b4d..2162c72f075d 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 b4c7a15c13cd..d0b90c7617b1 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 \