mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
change(esp_security): Move anti-DPA configuration into the security component
This commit is contained in:
parent
b729a0a732
commit
c125d21c71
@ -119,10 +119,6 @@ if(NOT BOOTLOADER_BUILD)
|
||||
list(APPEND srcs "esp_etm.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_CRYPTO_DPA_PROTECTION_SUPPORTED)
|
||||
list(APPEND srcs "esp_dpa_protection.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_DIG_SIGN_SUPPORTED)
|
||||
list(APPEND srcs "esp_ds.c")
|
||||
endif()
|
||||
|
@ -6,9 +6,19 @@ if(NOT BOOTLOADER_BUILD)
|
||||
list(APPEND srcs "src/crypto/${IDF_TARGET}/clk.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_CRYPTO_DPA_PROTECTION_SUPPORTED)
|
||||
list(APPEND srcs "src/crypto/esp_dpa_protection.c")
|
||||
endif()
|
||||
|
||||
list(APPEND priv_requires "soc")
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS "include"
|
||||
PRIV_REQUIRES ${priv_requires})
|
||||
|
||||
if(NOT BOOTLOADER_BUILD)
|
||||
if(CONFIG_SOC_CRYPTO_DPA_PROTECTION_SUPPORTED)
|
||||
target_link_libraries(${COMPONENT_LIB} PRIVATE "-u esp_crypto_dpa_prot_include_impl")
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user