mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feat(nvs_flash): Add a minimal XTS-AES layer for the bootloader
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
if(BOOTLOADER_BUILD)
|
||||
# bootloader build simplified version
|
||||
set(srcs "src/nvs_bootloader.c")
|
||||
|
||||
if(CONFIG_NVS_ENCRYPTION)
|
||||
list(APPEND srcs "src/nvs_bootloader_aes.c"
|
||||
"src/nvs_bootloader_xts_aes.c")
|
||||
endif()
|
||||
set(requires "esp_partition")
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
@@ -52,7 +57,9 @@ else()
|
||||
target_compile_options(${COMPONENT_LIB} PUBLIC --coverage)
|
||||
target_link_libraries(${COMPONENT_LIB} PUBLIC --coverage)
|
||||
else()
|
||||
target_sources(${COMPONENT_LIB} PRIVATE "src/nvs_encrypted_partition.cpp")
|
||||
target_sources(${COMPONENT_LIB} PRIVATE "src/nvs_encrypted_partition.cpp"
|
||||
"src/nvs_bootloader_aes.c"
|
||||
"src/nvs_bootloader_xts_aes.c")
|
||||
target_link_libraries(${COMPONENT_LIB} PRIVATE idf::mbedtls)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user