Skip to content
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

mcuboot: build MCUboot Espressif Port with Zephyr sysbuild #424

Open
wants to merge 3 commits into
base: zephyr
Choose a base branch
from

Conversation

almir-okato
Copy link
Contributor

These changes were made to skip building the hal sources from zephyr//CMakeLists.txt when building MCUboot Espressif port from Zephyr's sysbuild as it already have it's own way for integrating the Espressif hal.

This PR is needed for the MCUboot Espressif Port integration with Zephyr's sysbuild (PRs to be opened in both MCUboot and Zephyr repositories).

@almir-okato almir-okato force-pushed the mcuboot_espressif_port_integration branch 3 times, most recently from 8bffaa0 to 25c3072 Compare March 19, 2025 20:45
@@ -25,8 +25,9 @@
#include "esp32s3/rom/usb/cdc_acm.h"
#include "esp32s3/rom/usb/usb_persist.h"
#endif
#ifndef CONFIG_MCUBOOT_ESPRESSIF
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it less complicated to provide empty stubs.h?

@@ -38,7 +40,9 @@ extern "C" {
/* The md5sum value is found this many bytes after the ESP_PARTITION_MAGIC_MD5 offset */
#define ESP_PARTITION_MD5_OFFSET 16

#ifndef CONFIG_MCUBOOT_ESPRESSIF
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we replace this with more generic define, for example #ifndef __ZEPHYR__ ?

Both bootloader_console_loader.c and bootloader_random.c are
now unused when building MCUboot or App with simple boot.

Signed-off-by: Almir Okato <[email protected]>
As the modified files are not used when building MCUboot or
app with simple boot anymore, the patches are being undone.

Signed-off-by: Almir Okato <[email protected]>
Skip building the hal sources from zephyr/<SOC>/CMakeLists.txt
when building MCUboot Espressif port from Zephyr's sysbuild as
it already have it's own way for integrating the Espressif hal.

Change ESP_LOG for ESP_EARLY_LOG on bootloader files used by
MCUboot Espressif port.

Signed-off-by: Lucas Tamborrino <[email protected]>
Signed-off-by: Almir Okato <[email protected]>
@almir-okato almir-okato force-pushed the mcuboot_espressif_port_integration branch from 25c3072 to de837d1 Compare March 26, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants