kopia lustrzana https://github.com/espressif/esp-idf
make esp_wifi component depend on CONFIG_NO_BLOBS
If CONFIG_NO_BLOBS is enabled, esp_wifi won't link wifi library.pull/3335/head
rodzic
958c2792e3
commit
c0df805ded
|
@ -9,13 +9,15 @@ set(COMPONENT_ADD_INCLUDEDIRS "include")
|
|||
set(COMPONENT_PRIV_INCLUDEDIRS)
|
||||
set(COMPONENT_REQUIRES)
|
||||
set(COMPONENT_PRIV_REQUIRES "wpa_supplicant" "nvs_flash")
|
||||
set(COMPONENT_ADD_LDFRAGMENTS "linker.lf")
|
||||
|
||||
if(NOT CONFIG_NO_BLOBS)
|
||||
set(COMPONENT_ADD_LDFRAGMENTS "linker.lf")
|
||||
endif()
|
||||
|
||||
register_component()
|
||||
|
||||
target_link_libraries(${COMPONENT_TARGET} "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib_${IDF_TARGET}")
|
||||
|
||||
if(NOT CONFIG_NO_BLOBS)
|
||||
target_link_libraries(${COMPONENT_TARGET} "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib_${IDF_TARGET}")
|
||||
target_link_libraries(${COMPONENT_TARGET} coexist core espnow mesh net80211 phy pp rtc smartconfig wpa2 wpa wps)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -5,17 +5,16 @@
|
|||
COMPONENT_ADD_INCLUDEDIRS := include
|
||||
COMPONENT_SRCDIRS := src
|
||||
|
||||
LIBS ?=
|
||||
ifndef CONFIG_NO_BLOBS
|
||||
LIBS += core rtc net80211 pp wpa smartconfig coexist wps wpa2 espnow phy mesh
|
||||
LIBS := core rtc net80211 pp wpa smartconfig coexist wps wpa2 espnow phy mesh
|
||||
COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/lib_$(IDF_TARGET) \
|
||||
$(addprefix -l,$(LIBS))
|
||||
|
||||
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
||||
|
||||
COMPONENT_SUBMODULES += lib_$(IDF_TARGET)
|
||||
|
||||
ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib_$(IDF_TARGET)/lib%.a,$(LIBS))
|
||||
COMPONENT_ADD_LINKER_DEPS += $(ALL_LIB_FILES)
|
||||
endif
|
||||
|
||||
COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/lib_$(IDF_TARGET) \
|
||||
$(addprefix -l,$(LIBS)) \
|
||||
|
||||
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
||||
|
||||
COMPONENT_SUBMODULES += lib_$(IDF_TARGET)
|
||||
|
||||
ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib_$(IDF_TARGET)/lib%.a,$(LIBS))
|
||||
COMPONENT_ADD_LINKER_DEPS += $(ALL_LIB_FILES)
|
||||
|
|
Ładowanie…
Reference in New Issue