forked from espressif/esp-idf
change(esp_security): Move anti-DPA configuration into the security component
This commit is contained in:
committed by
Mahavir Jain
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()
|
||||
|
Reference in New Issue
Block a user