Skip to content

Commit 40eb341

Browse files
authored
(fix) micropython.mk SRC_USERMOD_LIB_C path (#384)
1 parent bec577b commit 40eb341

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

micropython.mk

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,16 @@ LVGL_MPY: $(LVGL_MPY)
8787

8888
CFLAGS_USERMOD += -Wno-unused-function
8989
CFLAGS_EXTRA += -Wno-unused-function
90-
SRC_USERMOD_LIB_C += $(subst $(TOP)/,,$(shell find $(LVGL_DIR)/src $(LVGL_DIR)/examples $(LVGL_GENERIC_DRV_DIR) -type f -name "*.c"))
90+
91+
# LVGL SRC
92+
SRC_USERMOD_LIB_C += $(shell find $(LVGL_DIR)/src -type f -name "*.c")
93+
94+
# LVGL GENERIC DRIVER
95+
SRC_USERMOD_LIB_C += $(shell find $(LVGL_GENERIC_DRV_DIR) -type f -name "*.c")
96+
97+
# LVGL EXAMPLES
98+
ifeq ($(LV_BUILD_EXAMPLES), 1)
99+
SRC_USERMOD_LIB_C += $(shell find $(LVGL_DIR)/examples -type f -name "*.c")
100+
endif
101+
91102
SRC_USERMOD_C += $(LVGL_MPY)

0 commit comments

Comments
 (0)