diff --git a/arch/risc-v/src/common/espressif/Kconfig b/arch/risc-v/src/common/espressif/Kconfig index c8d55964bf373..2e432d08143b0 100644 --- a/arch/risc-v/src/common/espressif/Kconfig +++ b/arch/risc-v/src/common/espressif/Kconfig @@ -197,6 +197,11 @@ config ESPRESSIF_ESPTOOL_TARGET_SECONDARY endchoice +config ESPRESSIF_MCUBOOT_SIGN_IMAGE_VERSION + string "Sign image version" + depends on ESPRESSIF_BOOTLOADER_MCUBOOT + default "1.0.0" + config ESPRESSIF_APP_MCUBOOT_HEADER_SIZE int "Application image header size (in bytes)" default 32 diff --git a/tools/espressif/Config.mk b/tools/espressif/Config.mk index 4e76bd1d0cd31..8ac396863c9e1 100644 --- a/tools/espressif/Config.mk +++ b/tools/espressif/Config.mk @@ -91,7 +91,7 @@ ifeq ($(CONFIG_ESPRESSIF_BOOTLOADER_MCUBOOT),y) APP_IMAGE := nuttx.bin FLASH_APP := $(APP_OFFSET) $(APP_IMAGE) IMGTOOL_ALIGN_ARGS := --align 4 - IMGTOOL_SIGN_ARGS := --pad $(VERIFIED) $(IMGTOOL_ALIGN_ARGS) -v 0 -s auto \ + IMGTOOL_SIGN_ARGS := --pad $(VERIFIED) $(IMGTOOL_ALIGN_ARGS) -v $(CONFIG_ESPRESSIF_MCUBOOT_SIGN_IMAGE_VERSION) -s auto \ -H $(CONFIG_ESPRESSIF_APP_MCUBOOT_HEADER_SIZE) --pad-header \ -S $(CONFIG_ESPRESSIF_OTA_SLOT_SIZE) else ifeq ($(CONFIG_ESPRESSIF_SIMPLE_BOOT),y)