File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
tools/test_apps/system/build_test Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,11 @@ menu "Security features"
320
320
select MBEDTLS_ECDSA_C
321
321
depends on SECURE_SIGNED_ON_BOOT || SECURE_SIGNED_ON_UPDATE
322
322
323
+ config SECURE_TARGET_HAS_SECURE_ROM_DL_MODE
324
+ bool
325
+ default y
326
+ depends on IDF_TARGET_ESP32S2
327
+
323
328
324
329
config SECURE_SIGNED_APPS_NO_SECURE_BOOT
325
330
bool "Require signed app images"
@@ -587,7 +592,7 @@ menu "Security features"
587
592
588
593
config SECURE_FLASH_ENCRYPTION_MODE_RELEASE
589
594
bool "Release"
590
- select SECURE_ENABLE_SECURE_ROM_DL_MODE
595
+ select SECURE_ENABLE_SECURE_ROM_DL_MODE if SECURE_TARGET_HAS_SECURE_ROM_DL_MODE
591
596
592
597
endchoice
593
598
@@ -719,7 +724,7 @@ menu "Security features"
719
724
720
725
config SECURE_ENABLE_SECURE_ROM_DL_MODE
721
726
bool "Permanently switch to ROM UART Secure Download mode"
722
- depends on IDF_TARGET_ESP32S2 && !SECURE_DISABLE_ROM_DL_MODE
727
+ depends on SECURE_TARGET_HAS_SECURE_ROM_DL_MODE && !SECURE_DISABLE_ROM_DL_MODE
723
728
help
724
729
If set, during startup the app will burn an eFuse bit to permanently switch the UART ROM
725
730
Download Mode into a separate Secure Download mode. This option can only work if
Original file line number Diff line number Diff line change @@ -229,6 +229,8 @@ static void IRAM_ATTR do_core_init(void)
229
229
esp_flash_encryption_init_checks ();
230
230
#endif
231
231
232
+ esp_err_t err ;
233
+
232
234
#if CONFIG_SECURE_DISABLE_ROM_DL_MODE
233
235
err = esp_efuse_disable_rom_download_mode ();
234
236
assert (err == ESP_OK && "Failed to disable ROM download mode" );
@@ -243,8 +245,6 @@ static void IRAM_ATTR do_core_init(void)
243
245
esp_efuse_disable_basic_rom_console ();
244
246
#endif
245
247
246
- esp_err_t err ;
247
-
248
248
esp_timer_init ();
249
249
esp_set_time_from_rtc ();
250
250
Original file line number Diff line number Diff line change
1
+ CONFIG_SECURE_FLASH_ENC_ENABLED=y
2
+ CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE=y
You can’t perform that action at this time.
0 commit comments