File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -72,18 +72,20 @@ PY_O += $(addprefix $(BUILD)/, $(SRC_USERMOD_PATHFIX_C:.c=.o))
72
72
PY_O += $(addprefix $(BUILD ) /, $(SRC_USERMOD_PATHFIX_CXX:.cpp=.o ) )
73
73
PY_O += $(addprefix $(BUILD ) /, $(SRC_USERMOD_PATHFIX_LIB_C:.c=.o ) )
74
74
PY_O += $(addprefix $(BUILD ) /, $(SRC_USERMOD_PATHFIX_LIB_CXX:.cpp=.o ) )
75
+ endif # USER_C_MODULES
75
76
76
77
# CIRCUITPY
77
78
ifeq ($(CIRCUITPY_ULAB ) ,1)
78
79
ULAB_SRCS := $(shell find $(TOP ) /extmod/ulab/code -type f -name "* .c")
79
- SRC_MOD += $(patsubst $(TOP ) /% ,% ,$(ULAB_SRCS ) )
80
+ ULAB_SRC_PATHFIX := $(patsubst $(TOP ) /% ,% ,$(ULAB_SRCS ) )
81
+ SRC_MOD += $(ULAB_SRC_PATHFIX )
82
+ SRC_QSTR += $(ULAB_SRC_PATHFIX )
80
83
CFLAGS_MOD += -DCIRCUITPY_ULAB=1 -DMODULE_ULAB_ENABLED=1 -DULAB_HAS_USER_MODULE=0 -iquote $(TOP ) /extmod/ulab/code
81
84
$(BUILD ) /extmod/ulab/code/% .o : CFLAGS += -Wno-missing-declarations -Wno-missing-prototypes -Wno-unused-parameter -Wno-float-equal -Wno-sign-compare -Wno-cast-align -Wno-shadow -DCIRCUITPY
82
85
ifeq ($(CIRCUITPY_ULAB_OPTIMIZE_SIZE ) ,1)
83
86
$(BUILD ) /extmod/ulab/code/% .o : CFLAGS += -Os
84
87
endif # CIRCUITPY_ULAB_OPTIMIZE_SIZE
85
88
endif # CIRCUITPY_ULAB
86
- endif # USER_C_MODULES
87
89
88
90
# py object files
89
91
PY_CORE_O_BASENAME = $(addprefix py/,\
You can’t perform that action at this time.
0 commit comments