feat(esp32s3-devkit): add qemu image option

This commit is contained in:
Marco Casaroli 2024-09-18 15:37:42 +00:00 committed by Xiang Xiao
parent d5b32f0335
commit 890bdcd3d3
2 changed files with 14 additions and 1 deletions

View file

@ -12,6 +12,13 @@ config ESP32S3_MERGE_BINS
This is only useful when the path to binary files (e.g. bootloader)
is provided via the ESPTOOL_BINDIR variable.
config ESP32S3_QEMU_IMAGE
bool "ESP32S3 binary image for QEMU"
default n
select ESP32S3_MERGE_BINS
---help---
Create a binary flash image used for QEMU.
config ESP32S3_SPEED_UP_ISR
bool "Speed up ISR"
default n

View file

@ -127,7 +127,13 @@ define MERGEBIN
echo "Missing Flash memory size configuration for the ESP32-S3 chip."; \
exit 1; \
fi
esptool.py -c esp32s3 merge_bin --output nuttx.merged.bin $(ESPTOOL_FLASH_OPTS) $(ESPTOOL_BINS)
$(eval ESPTOOL_MERGEBIN_OPTS := \
$(if $(CONFIG_ESP32S3_QEMU_IMAGE), \
--fill-flash-size $(FLASH_SIZE) -fm $(FLASH_MODE) -ff $(FLASH_FREQ), \
$(ESPTOOL_FLASH_OPTS) \
) \
)
esptool.py -c esp32s3 merge_bin --output nuttx.merged.bin $(ESPTOOL_MERGEBIN_OPTS) $(ESPTOOL_BINS)
$(Q) echo nuttx.merged.bin >> nuttx.manifest
$(Q) echo "Generated: nuttx.merged.bin"
endef