Skip to content

Commit f34eede

Browse files
jimmodpgeorge
authored andcommitted
samd/Makefile: Set MPY_CROSS_FLAGS.
Otherwise this port will be unable to freeze `@native`/`@viper` code. Signed-off-by: Jim Mussared <[email protected]>
1 parent 92c35ef commit f34eede

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ports/samd/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ LIBSTDCPP_FILE_NAME = "$(shell $(CXX) $(CXXFLAGS) -print-file-name=libstdc++.a)"
7979
LDFLAGS += -L"$(shell dirname $(LIBSTDCPP_FILE_NAME))"
8080
endif
8181

82+
MPY_CROSS_FLAGS += -march=$(MPY_CROSS_MCU_ARCH)
83+
8284
SRC_C += \
8385
mcu/$(MCU_SERIES_LOWER)/clock_config.c \
8486
help.c \

ports/samd/mcu/samd21/mpconfigmcu.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
CFLAGS_MCU += -mtune=cortex-m0plus -mcpu=cortex-m0plus -msoft-float
22

3+
MPY_CROSS_MCU_ARCH = armv6m
4+
35
SRC_S += shared/runtime/gchelper_m0.s
46

57
LIBM_SRC_C += $(addprefix lib/libm/,\

ports/samd/mcu/samd51/mpconfigmcu.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
CFLAGS_MCU += -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard
22

3+
MPY_CROSS_MCU_ARCH = armv7m
4+
35
MICROPY_VFS_LFS2 ?= 1
46
MICROPY_VFS_FAT ?= 1
57
FROZEN_MANIFEST ?= mcu/$(MCU_SERIES_LOWER)/manifest.py

0 commit comments

Comments
 (0)