mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-01 22:08:19 +00:00
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
# MCUboot Configuration for ESP32
|
|
# Minimal footprint — OTA only, no serial recovery, no logging.
|
|
|
|
# Overwrite-only mode (no swap, no scratch partition needed)
|
|
# Matches Arduino ElegantOTA behavior (no rollback)
|
|
CONFIG_BOOT_UPGRADE_ONLY=y
|
|
|
|
# Let MCUboot auto-calculate sector count from partition size
|
|
CONFIG_BOOT_MAX_IMG_SECTORS_AUTO=y
|
|
|
|
# Minimize size — no serial recovery
|
|
CONFIG_BOOT_SERIAL_CDC_ACM=n
|
|
CONFIG_SIZE_OPTIMIZATIONS=y
|
|
|
|
# Temporary: enable logging for debug
|
|
CONFIG_SERIAL=y
|
|
CONFIG_UART_CONSOLE=y
|
|
CONFIG_CONSOLE=y
|
|
CONFIG_MCUBOOT_LOG_LEVEL_INF=y
|
|
CONFIG_LOG_DEFAULT_LEVEL=3
|
|
|
|
# MCUboot doesn't need SPI — ESP32 uses internal flash controller.
|
|
# Disable to avoid spi_context build errors with minimal threading config.
|
|
CONFIG_SPI=n
|
|
|
|
# MCUboot doesn't need power domain management — some boards (e.g. Heltec V3)
|
|
# have power-domain-gpio DTS nodes whose driver calls k_can_yield() which is
|
|
# unavailable in MCUboot's minimal kernel.
|
|
CONFIG_POWER_DOMAIN=n
|
|
|
|
# Flash size baseline — Kconfig default is 2MB, but all zephcore boards use at
|
|
# least 4MB. Boards with larger flash (8MB, 16MB) override this via the
|
|
# auto-propagation logic in sysbuild/CMakeLists.txt which appends
|
|
# mcuboot_flashsize_<n>mb.conf when the app's board.conf sets a larger size.
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
|
|
|
|
# ESP32 HAL's mcuboot_config.h is patched (patches/modules/hal/espressif/...)
|
|
# to respect Zephyr Kconfig: mbedTLS detection, AUTO sector count, slot0 validation.
|
|
CONFIG_BOOT_RSA_PSA=y
|
|
CONFIG_BOOT_RSA_TF_PSA_CRYPTO_LEGACY=n
|