From 0f0cc93f7b9f7bbd3116f3962c2aded5f99d3c70 Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Thu, 17 Nov 2016 16:52:01 +1100 Subject: [PATCH] Fix module inclusion (got broken by IDF build changes). --- components/modules/component.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/modules/component.mk b/components/modules/component.mk index 50f15b44..367c300c 100644 --- a/components/modules/component.mk +++ b/components/modules/component.mk @@ -6,7 +6,7 @@ -include $(PROJECT_PATH)/build/include/config/auto.conf include $(PROJECT_PATH)/components/modules/uppercase.mk -MODULE_NAMES:=$(call uppercase,$(subst .c,,$(wildcard *.c))) +MODULE_NAMES:=$(call uppercase,$(patsubst $(COMPONENT_PATH)/%.c,%,$(wildcard $(COMPONENT_PATH)/*.c))) FORCE_LINK:=$(foreach mod,$(MODULE_NAMES),$(if $(CONFIG_LUA_MODULE_$(mod)), -u $(mod)_module_selected1)) COMPONENT_ADD_LDFLAGS=$(FORCE_LINK) -lmodules $(if $(CONFIG_LUA_MODULE_BTHCI),-lbtdm_app)