diff options
| author | Jeff Epler <jepler@gmail.com> | 2021-04-02 13:07:55 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2021-04-02 13:09:23 -0500 |
| commit | fb7b968b1027010178bb2b64bdccbad3beb642e6 (patch) | |
| tree | 8048850aa6782224f4905a0987eac1eaf7b57f8a | |
| parent | 3f158450f9c8e0a8fe7d32a42df94826b45dd480 (diff) | |
py.mk: locate ulab sources with shell-find.
| -rw-r--r-- | py/py.mk | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -106,9 +106,8 @@ $(BUILD)/extmod/modbtree.o: CFLAGS += $(BTREE_DEFS) endif ifeq ($(CIRCUITPY_ULAB),1) -SRC_MOD += $(patsubst $(TOP)/%,%,$(wildcard $(TOP)/extmod/ulab/code/*.c)) -SRC_MOD += $(patsubst $(TOP)/%,%,$(wildcard $(TOP)/extmod/ulab/code/*/*.c)) -SRC_MOD += $(patsubst $(TOP)/%,%,$(wildcard $(TOP)/extmod/ulab/code/*/*/*.c)) +ULAB_SRCS := $(shell find $(TOP)/extmod/ulab/code -type f -name "*.c") +SRC_MOD += $(patsubst $(TOP)/%,%,$(ULAB_SRCS)) CFLAGS_MOD += -DCIRCUITPY_ULAB=1 -DMODULE_ULAB_ENABLED=1 -iquote $(TOP)/extmod/ulab/code $(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 endif |
