mirror of
https://github.com/apache/nuttx.git
synced 2026-08-24 23:18:21 +00:00
esp32: Guard the binary generation with CONFIG_ESP32CORE_BINARY
This commit is contained in:
parent
d2e6378322
commit
e4c8f5d767
2 changed files with 8 additions and 0 deletions
|
|
@ -38,4 +38,10 @@ config ESP32CORE_RUN_IRAM
|
|||
allows interoperability with the esp-idf system but makes you
|
||||
reliant on the esp-idf design for these parts. Both are possible.
|
||||
|
||||
config ESP32CORE_FLASH_IMAGE
|
||||
bool "esp32 flash image"
|
||||
default n
|
||||
---help---
|
||||
Create flash_image.bin mainly used for QEMU.
|
||||
|
||||
endif # ARCH_BOARD_ESP32CORE
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
# POSTBUILD -- Perform post build operations
|
||||
|
||||
ifeq ($(CONFIG_ESP32CORE_FLASH_IMAGE),y)
|
||||
define POSTBUILD
|
||||
@echo "MKIMAGE: ESP32 binary"
|
||||
$(Q) if ! esptool.py version ; then \
|
||||
|
|
@ -47,3 +48,4 @@ define POSTBUILD
|
|||
echo "Generated: flash_image.bin (it can be run with 'qemu-system-xtensa -nographic -machine esp32 -drive file=flash_image.bin,if=mtd,format=raw')"; \
|
||||
fi
|
||||
endef
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue