From 9016ba6b6c58b7c791755dd77833d36e178aa4ba Mon Sep 17 00:00:00 2001 From: Wang Wang Wang Date: Wed, 15 Dec 2021 15:26:42 +0800 Subject: [PATCH] system(esp32): Support make on esp32 --- component.mk | 22 +++++-------------- ...{esp_afe_sr_1mic.c => esp_afe_sr_1mic.ref} | 0 2 files changed, 6 insertions(+), 16 deletions(-) rename src/{esp_afe_sr_1mic.c => esp_afe_sr_1mic.ref} (100%) diff --git a/component.mk b/component.mk index e940c1b..d77d594 100644 --- a/component.mk +++ b/component.mk @@ -1,24 +1,14 @@ -COMPONENT_ADD_INCLUDEDIRS := lib/include \ - wake_word_engine/include \ - speech_command_recognition/include \ - acoustic_algorithm/include \ +COMPONENT_ADD_INCLUDEDIRS := include/$(IDF_TARGET) \ esp-tts/esp_tts_chinese/include \ -COMPONENT_SRCDIRS := speech_command_recognition +COMPONENT_SRCDIRS := src -LIB_FILES := $(shell ls $(COMPONENT_PATH)/wake_word_engine/lib*.a) \ - $(shell ls $(COMPONENT_PATH)/lib/lib*.a) \ - $(shell ls $(COMPONENT_PATH)/acoustic_algorithm/lib*.a) \ - $(shell ls $(COMPONENT_PATH)/speech_command_recognition/lib*.a) \ - $(shell ls $(COMPONENT_PATH)/esp-tts/esp_tts_chinese/lib*.a) \ +LIB_FILES := $(shell ls $(COMPONENT_PATH)/lib/$(IDF_TARGET)/lib*.a) \ + $(shell ls $(COMPONENT_PATH)/esp-tts/esp_tts_chinese/lib*.a) LIBS := $(patsubst lib%.a,-l%,$(LIB_FILES)) -COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/lib \ - -L$(COMPONENT_PATH)/wake_word_engine \ - -L$(COMPONENT_PATH)/speech_command_recognition \ - -L$(COMPONENT_PATH)/acoustic_algorithm \ +COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/lib/$(IDF_TARGET) \ -L$(COMPONENT_PATH)/esp-tts \ - $(LIBS) - + $(LIBS) \ No newline at end of file diff --git a/src/esp_afe_sr_1mic.c b/src/esp_afe_sr_1mic.ref similarity index 100% rename from src/esp_afe_sr_1mic.c rename to src/esp_afe_sr_1mic.ref