From 411ef06391769fa469f0f501b267eb6686e89254 Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Fri, 26 May 2023 07:22:59 +0530 Subject: [PATCH] [ESP32] Kconfig fixes and link error fix for h2 (#26825) * [ESP32] Do not select factory data provider and device instance info provider when secure cert dac provider is selected * Fix the linker error when building for esp32h2 * Move ieee802154 under openthread config --- config/esp32/components/chip/CMakeLists.txt | 9 +++++++++ config/esp32/components/chip/Kconfig | 5 +---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config/esp32/components/chip/CMakeLists.txt b/config/esp32/components/chip/CMakeLists.txt index a5f26e3e46cec3..14a02232bde429 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -359,6 +359,9 @@ endif() if(CONFIG_OPENTHREAD_ENABLED) idf_component_get_property(openthread_lib openthread COMPONENT_LIB) list(APPEND chip_libraries $) + + idf_component_get_property(ieee802154_lib ieee802154 COMPONENT_LIB) + list(APPEND chip_libraries $) endif() if((NOT CONFIG_USE_MINIMAL_MDNS) AND (CONFIG_ENABLE_WIFI_STATION OR CONFIG_ENABLE_WIFI_AP)) @@ -436,6 +439,12 @@ list(APPEND chip_libraries $) idf_component_get_property(efuse_lib efuse COMPONENT_LIB) list(APPEND chip_libraries $) +idf_component_get_property(vfs_lib vfs COMPONENT_LIB) +list(APPEND chip_libraries $) + +idf_component_get_property(driver_lib driver COMPONENT_LIB) +list(APPEND chip_libraries $) + target_link_libraries(${COMPONENT_LIB} INTERFACE -Wl,--start-group ${chip_libraries} $ $ diff --git a/config/esp32/components/chip/Kconfig b/config/esp32/components/chip/Kconfig index 732f0533a3d708..9a1b92a28e1a0b 100644 --- a/config/esp32/components/chip/Kconfig +++ b/config/esp32/components/chip/Kconfig @@ -705,12 +705,9 @@ menu "CHIP Device Layer" depends on SEC_CERT_DAC_PROVIDER && SOC_ECDSA_SUPPORTED default y select MBEDTLS_HARDWARE_ECDSA_SIGN - select ENABLE_ESP32_FACTORY_DATA_PROVIDER - select ENABLE_ESP32_DEVICE_INSTANCE_INFO_PROVIDER help If DAC is being read from secure cert and SOC supports ECDSA signing using on-chip peripheral - then this option gets enabled. This option also selects few more that are required for commissioning - the device. + then this option gets enabled. Also, please disable ESP_SECURE_CERT_DS_PERIPHERAL from the menuconfig when this option is disabled endmenu