secure_boot(esp32c2): Fix case when SB key is pre-loaded

This commit is contained in:
KonstantinKondrashov
2022-05-24 01:36:12 +08:00
committed by BOT
parent 505e18237a
commit dd4642b6ba
2 changed files with 11 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ static esp_err_t secure_boot_v2_check(bool *need_fix)
{
esp_err_t err = ESP_OK;
esp_efuse_block_t block = EFUSE_BLK_SECURE_BOOT;
#ifndef CONFIG_SECURE_BOOT_FLASH_ENC_KEYS_BURN_TOGETHER
#ifndef CONFIG_SOC_EFUSE_CONSISTS_OF_ONE_KEY_BLOCK
if (esp_efuse_get_key_dis_read(block)) {
ESP_LOGE(TAG, "eFuse BLOCK%d should be readable", block);
abort();