|
|
@@ -131,7 +131,11 @@ static esp_err_t s_calculate_image_public_key_digests(uint32_t flash_offset, uin
|
|
|
static esp_err_t check_and_generate_secure_boot_keys(const esp_image_metadata_t *image_data)
|
|
|
{
|
|
|
esp_err_t ret;
|
|
|
-#ifdef CONFIG_IDF_TARGET_ESP32
|
|
|
+#ifdef CONFIG_IDF_TARGET_ESP8684
|
|
|
+ esp_efuse_purpose_t secure_boot_key_purpose[SECURE_BOOT_NUM_BLOCKS] = {
|
|
|
+ ESP_EFUSE_KEY_PURPOSE_SECURE_BOOT_V2,
|
|
|
+ };
|
|
|
+#elif CONFIG_IDF_TARGET_ESP32
|
|
|
esp_efuse_purpose_t secure_boot_key_purpose[SECURE_BOOT_NUM_BLOCKS] = {
|
|
|
ESP_EFUSE_KEY_PURPOSE_SECURE_BOOT_V2,
|
|
|
};
|
|
|
@@ -146,7 +150,7 @@ static esp_err_t check_and_generate_secure_boot_keys(const esp_image_metadata_t
|
|
|
ESP_EFUSE_KEY_PURPOSE_SECURE_BOOT_DIGEST1,
|
|
|
ESP_EFUSE_KEY_PURPOSE_SECURE_BOOT_DIGEST2,
|
|
|
};
|
|
|
-#endif // CONFIG_IDF_TARGET_ESP32
|
|
|
+#endif // CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP8684
|
|
|
|
|
|
/* Verify the bootloader */
|
|
|
esp_image_metadata_t bootloader_data = { 0 };
|