mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
Merge branch 'bugfix/fix_mbedtls_cmake_warning' into 'master'
mbedtls: fixed CMake build warning Closes IDFGH-4975 See merge request espressif/esp-idf!13568
This commit is contained in:
commit
9f149a647d
@ -99,16 +99,19 @@ if(SHA_PERIPHERAL_TYPE STREQUAL "dma")
|
|||||||
set(SHA_DMA_SRCS "${COMPONENT_DIR}/port/sha/dma/esp_sha_gdma_impl.c"
|
set(SHA_DMA_SRCS "${COMPONENT_DIR}/port/sha/dma/esp_sha_gdma_impl.c"
|
||||||
"${COMPONENT_DIR}/port/crypto_shared_gdma/esp_crypto_shared_gdma.c")
|
"${COMPONENT_DIR}/port/crypto_shared_gdma/esp_crypto_shared_gdma.c")
|
||||||
endif()
|
endif()
|
||||||
|
target_sources(mbedcrypto PRIVATE "${SHA_DMA_SRCS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(AES_PERIPHERAL_TYPE STREQUAL "dma")
|
if(AES_PERIPHERAL_TYPE STREQUAL "dma")
|
||||||
target_include_directories(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/aes/dma/include")
|
|
||||||
|
|
||||||
if(CONFIG_IDF_TARGET_ESP32S2)
|
if(CONFIG_IDF_TARGET_ESP32S2)
|
||||||
set(AES_DMA_SRCS "${COMPONENT_DIR}/port/aes/dma/esp_aes_crypto_dma_impl.c")
|
set(AES_DMA_SRCS "${COMPONENT_DIR}/port/aes/dma/esp_aes_crypto_dma_impl.c")
|
||||||
else()
|
else()
|
||||||
set(AES_DMA_SRCS "${COMPONENT_DIR}/port/aes/dma/esp_aes_gdma_impl.c")
|
set(AES_DMA_SRCS "${COMPONENT_DIR}/port/aes/dma/esp_aes_gdma_impl.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/aes/dma/include")
|
||||||
|
target_sources(mbedcrypto PRIVATE "${AES_DMA_SRCS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/esp_hardware.c"
|
target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/esp_hardware.c"
|
||||||
@ -119,8 +122,6 @@ target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/esp_hardware.c"
|
|||||||
"${COMPONENT_DIR}/port/aes/esp_aes_common.c"
|
"${COMPONENT_DIR}/port/aes/esp_aes_common.c"
|
||||||
"${COMPONENT_DIR}/port/aes/${AES_PERIPHERAL_TYPE}/esp_aes.c"
|
"${COMPONENT_DIR}/port/aes/${AES_PERIPHERAL_TYPE}/esp_aes.c"
|
||||||
"${COMPONENT_DIR}/port/sha/${SHA_PERIPHERAL_TYPE}/sha.c"
|
"${COMPONENT_DIR}/port/sha/${SHA_PERIPHERAL_TYPE}/sha.c"
|
||||||
"${SHA_DMA_SRCS}"
|
|
||||||
"${AES_DMA_SRCS}"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# CONFIG_ESP_TLS_USE_DS_PERIPHERAL can be enabled only for the supported targets.
|
# CONFIG_ESP_TLS_USE_DS_PERIPHERAL can be enabled only for the supported targets.
|
||||||
|
Loading…
Reference in New Issue
Block a user