16 lines
612 B
CMake
16 lines
612 B
CMake
# Reject SDK features that can program permanent chip state or auto-create hardware keys.
|
|||
|
|
foreach(_microbu_option
|
||
|
|
CONFIG_SECURE_BOOT
|
||
|
|
CONFIG_SECURE_FLASH_ENC_ENABLED
|
||
|
|
CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK
|
||
|
|
CONFIG_BOOTLOADER_ANTI_ROLLBACK_ENABLE
|
||
|
|
CONFIG_SECURE_DISABLE_ROM_DL_MODE
|
||
|
|
CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE
|
||
|
|
CONFIG_NVS_ENCRYPTION
|
||
|
|
CONFIG_NVS_SEC_KEY_PROTECT_USING_HMAC
|
||
|
|
CONFIG_ESP_TEE)
|
||
|
|
if(${_microbu_option})
|
||
|
|
message(FATAL_ERROR "${_microbu_option} is forbidden: this firmware must not program eFuses or auto-provision hardware keys")
|
||
|
|
endif()
|
||
|
|
endforeach()
|