tools/esp32: Rename signed binary image to match clean pattern
This is just a workaround for adding the MCUboot signed binary image to the clean step of the build system. Once the NuttX build system becomes aware of general signed images, a new naming pattern should be defined for the signed images to be used by every platform. Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
54d436116e
commit
98c30c2f7e
@ -92,7 +92,7 @@ else ifeq ($(CONFIG_ESP32_APP_FORMAT_MCUBOOT),y)
|
|||||||
APP_OFFSET := $(CONFIG_ESP32_OTA_SECONDARY_SLOT_OFFSET)
|
APP_OFFSET := $(CONFIG_ESP32_OTA_SECONDARY_SLOT_OFFSET)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
APP_IMAGE := nuttx_signed.bin
|
APP_IMAGE := nuttx.signed.bin
|
||||||
FLASH_APP := $(APP_OFFSET) $(APP_IMAGE)
|
FLASH_APP := $(APP_OFFSET) $(APP_IMAGE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -113,14 +113,14 @@ define POSTBUILD
|
|||||||
echo ""; \
|
echo ""; \
|
||||||
echo "imgtool not found. Please run: \"pip install imgtool\""; \
|
echo "imgtool not found. Please run: \"pip install imgtool\""; \
|
||||||
echo ""; \
|
echo ""; \
|
||||||
echo "Run make again to create the nuttx_signed.bin image."; \
|
echo "Run make again to create the nuttx.signed.bin image."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
imgtool sign --pad --pad-sig $(VERIFIED) --align 4 -v 0 \
|
imgtool sign --pad --pad-sig $(VERIFIED) --align 4 -v 0 \
|
||||||
-H $(CONFIG_ESP32_APP_MCUBOOT_HEADER_SIZE) --pad-header \
|
-H $(CONFIG_ESP32_APP_MCUBOOT_HEADER_SIZE) --pad-header \
|
||||||
-S $(CONFIG_ESP32_OTA_SLOT_SIZE) \
|
-S $(CONFIG_ESP32_OTA_SLOT_SIZE) \
|
||||||
nuttx.bin nuttx_signed.bin
|
nuttx.bin nuttx.signed.bin
|
||||||
$(Q) echo "Generated: nuttx_signed.bin (MCUboot compatible)"
|
$(Q) echo "Generated: nuttx.signed.bin (MCUboot compatible)"
|
||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
define POSTBUILD
|
define POSTBUILD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user