diff --git a/components/bootloader/Kconfig.projbuild b/components/bootloader/Kconfig.projbuild index 254c14e7f..531c6df29 100644 --- a/components/bootloader/Kconfig.projbuild +++ b/components/bootloader/Kconfig.projbuild @@ -204,10 +204,13 @@ menu "Bootloader config" config BOOTLOADER_APP_SEC_VER_SIZE_EFUSE_FIELD int "Size of the efuse secure version field" depends on BOOTLOADER_APP_ANTI_ROLLBACK - range 1 32 - default 32 + range 1 32 if IDF_TARGET_ESP32 + default 32 if IDF_TARGET_ESP32 + range 1 16 if IDF_TARGET_ESP32S2BETA + default 16 if IDF_TARGET_ESP32S2BETA help - The size of the efuse secure version field. Its length is limited to 32 bits. + The size of the efuse secure version field. + Its length is limited to 32 bits for ESP32 and 16 bits for ESP32S2BETA. This determines how many times the security version can be increased. config BOOTLOADER_EFUSE_SECURE_VERSION_EMULATE diff --git a/components/bootloader_support/src/bootloader_utility.c b/components/bootloader_support/src/bootloader_utility.c index 2162c40a7..613d5aa0d 100644 --- a/components/bootloader_support/src/bootloader_utility.c +++ b/components/bootloader_support/src/bootloader_utility.c @@ -63,10 +63,7 @@ #include "bootloader_common.h" #include "bootloader_utility.h" #include "bootloader_sha.h" - -#if CONFIG_IDF_TARGET_ESP32 #include "esp_efuse.h" -#endif static const char *TAG = "boot";