py/dynruntime.mk: Allow building assembly source in natmods.
Allow inclusion of assembly source files in dynamic native modules.
This commit is contained in:
parent
d53c3b6ade
commit
2e8816de91
|
@ -35,7 +35,7 @@ CFLAGS += -U _FORTIFY_SOURCE # prevent use of __*_chk libc functions
|
|||
|
||||
MPY_CROSS_FLAGS += -march=$(ARCH)
|
||||
|
||||
SRC_O += $(addprefix $(BUILD)/, $(patsubst %.c,%.o,$(filter %.c,$(SRC))))
|
||||
SRC_O += $(addprefix $(BUILD)/, $(patsubst %.c,%.o,$(filter %.c,$(SRC))) $(patsubst %.S,%.o,$(filter %.S,$(SRC))))
|
||||
SRC_MPY += $(addprefix $(BUILD)/, $(patsubst %.py,%.mpy,$(filter %.py,$(SRC))))
|
||||
|
||||
################################################################################
|
||||
|
@ -134,6 +134,11 @@ $(BUILD)/%.o: %.c $(CONFIG_H) Makefile
|
|||
$(ECHO) "CC $<"
|
||||
$(Q)$(CROSS)gcc $(CFLAGS) -o $@ -c $<
|
||||
|
||||
# Build .o from .S source files
|
||||
$(BUILD)/%.o: %.S $(CONFIG_H) Makefile
|
||||
$(ECHO) "AS $<"
|
||||
$(Q)$(CROSS)gcc $(CFLAGS) -o $@ -c $<
|
||||
|
||||
# Build .mpy from .py source files
|
||||
$(BUILD)/%.mpy: %.py
|
||||
$(ECHO) "MPY $<"
|
||||
|
|
Loading…
Reference in New Issue