-
Notifications
You must be signed in to change notification settings - Fork 7.3k
soc: espressif: Build MCUboot Espressif Port using sysbuild #87710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
almir-okato
wants to merge
2
commits into
zephyrproject-rtos:main
Choose a base branch
from
almir-okato:mcuboot_espressif_port_integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
soc: espressif: Build MCUboot Espressif Port using sysbuild #87710
almir-okato
wants to merge
2
commits into
zephyrproject-rtos:main
from
almir-okato:mcuboot_espressif_port_integration
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JarmouniA
suggested changes
Mar 26, 2025
nordicjm
requested changes
Mar 27, 2025
5d0b930
to
068b0c5
Compare
dfbe166
to
9a4bf5f
Compare
9a4bf5f
to
2077475
Compare
Move BOOTLOADER_MCUBOOT configuration from boards/espressif/<BOARD>/Kconfig.sysbuild to soc/espressif/Kconfig.sysbuild so it applies generally to every board with Espressif's SoC when building a project using sysbuild. Signed-off-by: Almir Okato <[email protected]>
2077475
to
db68a0f
Compare
JarmouniA
suggested changes
Apr 19, 2025
db68a0f
to
3d99369
Compare
nordicjm
reviewed
Apr 23, 2025
3d99369
to
72de282
Compare
nordicjm
reviewed
Apr 24, 2025
72de282
to
fd0fbcc
Compare
Enable sysbuild to build MCUboot Espressif's port as an external project. Signed-off-by: Almir Okato <[email protected]> Signed-off-by: Lucas Tamborrino <[email protected]> Signed-off-by: Marek Matej <[email protected]>
fd0fbcc
to
e1c5597
Compare
nordicjm
approved these changes
Apr 25, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Build System
area: Coding Guidelines
Coding guidelines and style
area: Continuous Integration
area: Sysbuild
platform: ESP32
Espressif ESP32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use sysbuild to build MCUboot Espressif Port as an external project.
The current sysbuild usage for Espressif should not be affected, so the regular
west build <BOARD> <SAMPLE> --sysbuild
still builds Zephyr Port. In order to build Espressif Port, the KconfigCONFIG_BOOTLOADER_MCUBOOT_ESPRESSIF
needs to be enabled on the sysbuild menuconfig, or it can be passed as sysbuild domain variable in the command line--sysbuild -DSB_CONFIG_BOOTLOADER_MCUBOOT_ESPRESSIF=y
.Kconfigs for Espressif's
Kconfig.sysbuild
were added to match MCUboot Espressif Port configuration, so they are partially similar to the regular Zephyr Port, but notice it's a different MCUboot Port.CONFIG_MCUBOOT_ESPRESSIF
indicates that the current build is MCUboot Espressif Port image. Defined in Espressif Port from MCUboot repository.(SB_)CONFIG_BOOTLOADER_MCUBOOT_ESPRESSIF
indicates to Espressif's sysbuild cmake that it needs to build the MCUboot Espressif Port bootloader and that it needs to set the main image as a MCUboot compatible image, similar as Zephyr already does with the CONFIG_BOOTLOADER_MCUBOOT for setting Zephyr Port and MCUboot compatibility when building with sysbuild.How to build and test:
hal_espressif
to the branch in the following PR: mcuboot: build MCUboot Espressif Port with Zephyr sysbuild hal_espressif#424mcuboot
to the branch in following PR: boot: espressif: integrate Espressif Port with Zephyr sysbuild system mcu-tools/mcuboot#2233OR