|
|
@ -157,19 +157,19 @@ endif |
|
|
|
# Options for mpy-cross
|
|
|
|
MPY_CROSS_FLAGS += -march=armv7m |
|
|
|
|
|
|
|
LIB_SRC_C += $(addprefix lib/,\
|
|
|
|
SHARED_SRC_C += $(addprefix shared/,\
|
|
|
|
libc/string0.c \
|
|
|
|
mp-readline/readline.c \
|
|
|
|
netutils/dhcpserver.c \
|
|
|
|
netutils/netutils.c \
|
|
|
|
netutils/trace.c \
|
|
|
|
netutils/dhcpserver.c \
|
|
|
|
readline/readline.c \
|
|
|
|
runtime/gchelper_native.c \
|
|
|
|
runtime/interrupt_char.c \
|
|
|
|
runtime/mpirq.c \
|
|
|
|
runtime/pyexec.c \
|
|
|
|
runtime/stdout_helpers.c \
|
|
|
|
runtime/sys_stdio_mphal.c \
|
|
|
|
timeutils/timeutils.c \
|
|
|
|
utils/gchelper_native.c \
|
|
|
|
utils/pyexec.c \
|
|
|
|
utils/interrupt_char.c \
|
|
|
|
utils/stdout_helpers.c \
|
|
|
|
utils/sys_stdio_mphal.c \
|
|
|
|
utils/mpirq.c \
|
|
|
|
) |
|
|
|
|
|
|
|
ifeq ($(MICROPY_FLOAT_IMPL),double) |
|
|
@ -359,18 +359,18 @@ SRC_O += \ |
|
|
|
ifeq ($(MCU_SERIES),f0) |
|
|
|
SRC_O += \
|
|
|
|
resethandler_m0.o \
|
|
|
|
lib/utils/gchelper_m0.o |
|
|
|
shared/runtime/gchelper_m0.o |
|
|
|
else |
|
|
|
ifeq ($(MCU_SERIES),l0) |
|
|
|
CSUPEROPT = -Os # save some code space |
|
|
|
SRC_O += \
|
|
|
|
resethandler_m0.o \
|
|
|
|
lib/utils/gchelper_m0.o |
|
|
|
shared/runtime/gchelper_m0.o |
|
|
|
else |
|
|
|
SRC_O += \
|
|
|
|
system_stm32.o \
|
|
|
|
resethandler.o \
|
|
|
|
lib/utils/gchelper_m3.o |
|
|
|
shared/runtime/gchelper_m3.o |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
@ -542,6 +542,7 @@ endif |
|
|
|
OBJ += $(PY_O) |
|
|
|
OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o)) |
|
|
|
OBJ += $(LIBM_O) |
|
|
|
OBJ += $(addprefix $(BUILD)/, $(SHARED_SRC_C:.c=.o)) |
|
|
|
OBJ += $(addprefix $(BUILD)/, $(EXTMOD_SRC_C:.c=.o)) |
|
|
|
OBJ += $(addprefix $(BUILD)/, $(DRIVERS_SRC_C:.c=.o)) |
|
|
|
OBJ += $(addprefix $(BUILD)/, $(HAL_SRC_C:.c=.o)) |
|
|
@ -555,7 +556,7 @@ OBJ += $(BUILD)/pins_$(BOARD).o |
|
|
|
# This file contains performance critical functions so turn up the optimisation
|
|
|
|
# level. It doesn't add much to the code size and improves performance a bit.
|
|
|
|
# Don't use -O3 with this file because gcc tries to optimise memset in terms of itself.
|
|
|
|
$(BUILD)/lib/libc/string0.o: COPT += -O2 |
|
|
|
$(BUILD)/shared/libc/string0.o: COPT += -O2 |
|
|
|
|
|
|
|
# We put several files into the first 16K section with the ISRs.
|
|
|
|
# If we compile these using -O0 then it won't fit. So if you really want these
|
|
|
@ -728,7 +729,7 @@ GEN_CDCINF_FILE = $(HEADER_BUILD)/pybcdc.inf |
|
|
|
GEN_CDCINF_HEADER = $(HEADER_BUILD)/pybcdc_inf.h |
|
|
|
|
|
|
|
# List of sources for qstr extraction
|
|
|
|
SRC_QSTR += $(SRC_C) $(SRC_CXX) $(SRC_MOD) $(LIB_SRC_C) $(EXTMOD_SRC_C) |
|
|
|
SRC_QSTR += $(SRC_C) $(SRC_CXX) $(SRC_MOD) $(SHARED_SRC_C) $(EXTMOD_SRC_C) |
|
|
|
# Append any auto-generated sources that are needed by sources listed in
|
|
|
|
# SRC_QSTR
|
|
|
|
SRC_QSTR_AUTO_DEPS += $(GEN_CDCINF_HEADER) |
|
|
|