bootloader: make bootloader offset address in flash configurable

This commit is contained in:
morris
2020-07-14 17:20:13 +08:00
parent f092054f3d
commit b587428e5d
4 changed files with 13 additions and 4 deletions

View File

@@ -1,5 +1,14 @@
menu "Bootloader config"
config BOOTLOADER_OFFSET_IN_FLASH
hex
default 0x1000 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2
default 0x0
help
Offset address that 2nd bootloader will be flashed to.
The value is determined by the ROM bootloader.
It's not configurable in ESP-IDF.
choice BOOTLOADER_COMPILER_OPTIMIZATION
prompt "Bootloader optimization Level"
default BOOTLOADER_COMPILER_OPTIMIZATION_SIZE