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

mynewt: Make sysinit() call configurable #1744

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boot/mynewt/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ main(void)
#endif

#if defined(MCUBOOT_SERIAL) || defined(MCUBOOT_HAVE_LOGGING) || \
MYNEWT_VAL(CRYPTO) || MYNEWT_VAL(HASH)
MYNEWT_VAL(CRYPTO) || MYNEWT_VAL(HASH) || MYNEWT_VAL(BOOT_MYNEWT_SYSINIT)
/* initialize uart/crypto without os */
os_dev_initialize_all(OS_DEV_INIT_PRIMARY);
os_dev_initialize_all(OS_DEV_INIT_SECONDARY);
Expand Down
8 changes: 8 additions & 0 deletions boot/mynewt/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ syscfg.defs:
BOOT_PREBOOT:
description: 'Call boot_preboot() function before booting application'
value:
BOOT_MYNEWT_SYSINIT:
description: >
When not 0 performs device initialization and calls newt
generated sysinit() function.
Note: this functionality is implicitly turned on when one of the
following settings are not 0:
MCUBOOT_SERIAL, MCUBOOT_HAVE_LOGGING, CRYPTO, HASH
value: 0

syscfg.vals:
SYSINIT_CONSTRAIN_INIT: 0
Expand Down