From fd9cc002e8f0b774861a13759570315fc374ecd8 Mon Sep 17 00:00:00 2001 From: Xie Yi Date: Mon, 4 Sep 2017 00:18:20 +0800 Subject: [PATCH] Fix support for some arduino libraries which don't put source files under a src directory (#605) * fix support for some arduino libraries * no longer need line 1 --- component.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.mk b/component.mk index 193bb49f..15d50c00 100644 --- a/component.mk +++ b/component.mk @@ -1,4 +1,4 @@ -ARDUINO_CORE_LIBS := $(patsubst $(COMPONENT_PATH)/%,%,$(wildcard $(COMPONENT_PATH)/libraries/*/src)) +ARDUINO_CORE_LIBS := $(patsubst $(COMPONENT_PATH)/%,%,$(sort $(dir $(wildcard $(COMPONENT_PATH)/libraries/*/*/)))) COMPONENT_ADD_INCLUDEDIRS := cores/esp32 variants/esp32 $(ARDUINO_CORE_LIBS) COMPONENT_PRIV_INCLUDEDIRS := cores/esp32/libb64