From 7058b01983add1a2375e07c4db5c694090ef78bc Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 26 Sep 2016 15:59:39 +1000 Subject: [PATCH] BT: Relink component on new BT library, auto-initialise submodule if missing --- components/bt/component.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/bt/component.mk b/components/bt/component.mk index 8290f9f4a4..a9233cc74a 100644 --- a/components/bt/component.mk +++ b/components/bt/component.mk @@ -16,8 +16,10 @@ COMPONENT_ADD_LDFLAGS := -lbt -L$(abspath lib) \ $(addprefix -l,$(LIBS)) \ $(LINKER_SCRIPTS) +include $(IDF_PATH)/make/component_common.mk ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS)) $(COMPONENT_LIBRARY): $(ALL_LIB_FILES) -include $(IDF_PATH)/make/component_common.mk +# automatically trigger a git submodule update if BT library is missing +$(eval $(call SubmoduleRequiredForFiles,$(ALL_LIB_FILES)))