esp_phy: decouple esp_phy component from esp_wifi and bt

* add esp-phy-lib submodule
* move libphy.a and phy_init.c from esp_wifi to esp_phy
* move librtc.a from esp_wifi to esp_phy
* move libbtbb.a from bt to esp_phy
* corresponding updates to build system
This commit is contained in:
Shu Chen
2021-06-03 16:17:31 +08:00
parent 72f1c47554
commit 6061a547e5
33 changed files with 257 additions and 185 deletions
+3 -3
View File
@@ -582,7 +582,7 @@ endif()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "${include_dirs}"
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
REQUIRES nvs_flash soc esp_timer esp_pm
REQUIRES nvs_flash soc esp_timer esp_pm esp_phy
PRIV_REQUIRES esp_ipc
LDFRAGMENTS "linker.lf")
@@ -594,11 +594,11 @@ if(CONFIG_BT_ENABLED)
elseif(CONFIG_IDF_TARGET_ESP32C3)
target_link_libraries(${COMPONENT_LIB} INTERFACE
"-L${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32c3")
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app btbb)
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
elseif(CONFIG_IDF_TARGET_ESP32S3)
target_link_libraries(${COMPONENT_LIB} INTERFACE
"-L${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32s3")
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app btbb)
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
endif()
endif()