mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 20:05:25 +02:00
mbedtls: remove dependency on driver component
- keep `esp_pm` dependency conditional in mbedtls - refactor `bt` cmakelist to keep dependencies as private Related: IDF-1265
This commit is contained in:
@@ -254,8 +254,10 @@ if(CONFIG_MBEDTLS_DYNAMIC_BUFFER)
|
||||
endif()
|
||||
|
||||
set_property(TARGET mbedcrypto APPEND PROPERTY LINK_INTERFACE_LIBRARIES mbedtls)
|
||||
set_property(TARGET mbedcrypto APPEND PROPERTY LINK_LIBRARIES idf::driver)
|
||||
set_property(TARGET mbedcrypto APPEND PROPERTY INTERFACE_LINK_LIBRARIES idf::driver)
|
||||
|
||||
if(CONFIG_PM_ENABLE)
|
||||
target_link_libraries(mbedcrypto PRIVATE idf::esp_pm)
|
||||
endif()
|
||||
|
||||
target_link_libraries(${COMPONENT_LIB} ${linkage_type} ${mbedtls_targets})
|
||||
|
||||
|
||||
@@ -35,7 +35,9 @@
|
||||
#include "soc/lldesc.h"
|
||||
#include "esp_heap_caps.h"
|
||||
#include "sys/param.h"
|
||||
#if CONFIG_PM_ENABLE
|
||||
#include "esp_pm.h"
|
||||
#endif
|
||||
#include "esp_crypto_lock.h"
|
||||
#include "hal/aes_hal.h"
|
||||
#include "aes/esp_aes_internal.h"
|
||||
|
||||
@@ -20,7 +20,9 @@
|
||||
#include "esp_log.h"
|
||||
#include "esp_attr.h"
|
||||
#include "esp_intr_alloc.h"
|
||||
#if CONFIG_PM_ENABLE
|
||||
#include "esp_pm.h"
|
||||
#endif
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/semphr.h"
|
||||
|
||||
Reference in New Issue
Block a user