soc: espressif: Simple boot validity
Update CONFIG_ESP_SIMPLE_BOOT to exclude if CONFIG_MCUBOOT=y Fix usage of the config according to actual definition. Signed-off-by: Marek Matej <marek.matej@espressif.com>
This commit is contained in:
parent
404fdb20b4
commit
a0d7016e27
8 changed files with 27 additions and 26 deletions
|
@ -15,6 +15,15 @@ config ESP32_USE_UNSUPPORTED_REVISION
|
|||
set this option to enable support for them. Note that this is not recommended and
|
||||
may lead to unexpected behavior.
|
||||
|
||||
config ESP_SIMPLE_BOOT
|
||||
bool "Simple Boot method"
|
||||
default y if !BOOTLOADER_MCUBOOT && !MCUBOOT
|
||||
help
|
||||
The Simple Boot is a booting method that doesn't need a 2nd stage bootloader.
|
||||
Output is a single image that should be flashed at a offset defined by used SOC.
|
||||
Please note that this method brings the system up with all memories set-up, but
|
||||
all other features, such as secure boot OTA or slots management are not available.
|
||||
|
||||
rsource "Kconfig.spiram"
|
||||
rsource "Kconfig.esptool"
|
||||
rsource "Kconfig.flash"
|
||||
|
|
|
@ -127,12 +127,4 @@ config SPI_FLASH_HPM_ENABLE
|
|||
This option is invisible, and will be selected automatically
|
||||
when ``ESPTOOLPY_FLASHFREQ_120M`` is selected.
|
||||
|
||||
config ESP_SIMPLE_BOOT
|
||||
bool "Simple Boot method"
|
||||
default y if !BOOTLOADER_MCUBOOT
|
||||
help
|
||||
The Simple Boot is a method of booting that doesn't depend on a
|
||||
2nd stage bootloader. Please note that some of the bootloader features
|
||||
are not available using simple boot, such secure boot and OTA.
|
||||
|
||||
endif # SOC_FAMILY_ESPRESSIF_ESP32
|
||||
|
|
|
@ -69,10 +69,10 @@ else()
|
|||
dt_nodelabel(dts_partition_path NODELABEL "slot0_partition")
|
||||
dt_reg_addr(img_0_off PATH ${dts_partition_path})
|
||||
|
||||
if(CONFIG_ESP_SIMPLE_BOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
else()
|
||||
if(CONFIG_BOOTLOADER_MCUBOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${img_0_off}")
|
||||
else()
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
|
|
@ -53,10 +53,10 @@ dt_prop(monitor_baud PATH ${dts_shell_uart} PROPERTY "current-speed")
|
|||
board_runner_args(esp32 "--esp-flash-freq=60m")
|
||||
board_runner_args(esp32 "--esp-monitor-baud=${monitor_baud}")
|
||||
|
||||
if(CONFIG_ESP_SIMPLE_BOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
else()
|
||||
if(CONFIG_BOOTLOADER_MCUBOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${img_0_off}")
|
||||
else()
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
endif()
|
||||
|
||||
if(CONFIG_MCUBOOT)
|
||||
|
|
|
@ -48,10 +48,10 @@ dt_reg_addr(img_0_off PATH ${dts_partition_path})
|
|||
dt_nodelabel(dts_partition_path NODELABEL "boot_partition")
|
||||
dt_reg_addr(boot_off PATH ${dts_partition_path})
|
||||
|
||||
if(CONFIG_ESP_SIMPLE_BOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
else()
|
||||
if(CONFIG_BOOTLOADER_MCUBOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${img_0_off}")
|
||||
else()
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
endif()
|
||||
|
||||
if(CONFIG_MCUBOOT)
|
||||
|
|
|
@ -48,10 +48,10 @@ dt_reg_addr(img_0_off PATH ${dts_partition_path})
|
|||
dt_nodelabel(dts_partition_path NODELABEL "boot_partition")
|
||||
dt_reg_addr(boot_off PATH ${dts_partition_path})
|
||||
|
||||
if(CONFIG_ESP_SIMPLE_BOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
else()
|
||||
if(CONFIG_BOOTLOADER_MCUBOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${img_0_off}")
|
||||
else()
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
endif()
|
||||
|
||||
if(CONFIG_MCUBOOT)
|
||||
|
|
|
@ -49,10 +49,10 @@ dt_reg_addr(boot_off PATH ${dts_partition_path})
|
|||
dt_nodelabel(dts_partition_path NODELABEL "slot0_partition")
|
||||
dt_reg_addr(img_0_off PATH ${dts_partition_path})
|
||||
|
||||
if(CONFIG_ESP_SIMPLE_BOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
else()
|
||||
if(CONFIG_BOOTLOADER_MCUBOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${img_0_off}")
|
||||
else()
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
endif()
|
||||
|
||||
if(CONFIG_MCUBOOT)
|
||||
|
|
|
@ -70,10 +70,10 @@ else()
|
|||
dt_nodelabel(dts_partition_path NODELABEL "slot0_partition")
|
||||
dt_reg_addr(img_0_off PATH ${dts_partition_path})
|
||||
|
||||
if(NOT CONFIG_BOOTLOADER_MCUBOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
else()
|
||||
if(CONFIG_BOOTLOADER_MCUBOOT)
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${img_0_off}")
|
||||
else()
|
||||
board_finalize_runner_args(esp32 "--esp-app-address=${boot_off}")
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue