newt/sysinit: Add possibility to override sysinit prio from target - #615
Open
m-gorecki wants to merge 2 commits into
Open
newt/sysinit: Add possibility to override sysinit prio from target#615m-gorecki wants to merge 2 commits into
m-gorecki wants to merge 2 commits into
Conversation
m-gorecki
force-pushed
the
m-gorecki/sysinit_ovrd
branch
6 times, most recently
from
February 2, 2026 12:37
8acf6a0 to
3eb17e8
Compare
This change allows overridding sysinit functions priority in target.yml. Example: pkg.init: ble_transport_ll_init: 10 modlog_init: MYNEWT_VAL(MODLOG_SYSINIT_STAGE) ble_transport_init: 202 Restrictions: 1. All sysinit functions included by the target must be explicitly overridden in target.yml. Additional functions may be listed, but they will be ignored if not included by the target. 2. The $before and $after keywords are not supported.
This adds unit tests for new functionality
m-gorecki
force-pushed
the
m-gorecki/sysinit_ovrd
branch
from
February 2, 2026 13:28
3eb17e8 to
bde842d
Compare
m-gorecki
marked this pull request as ready for review
February 2, 2026 13:38
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This change allows overridding sysinit functions priority in
target.yml. Example:
pkg.init:
ble_transport_ll_init: 10
modlog_init: MYNEWT_VAL(MODLOG_SYSINIT_STAGE)
ble_transport_init: 202
Restrictions:
overridden in target.yml. Additional functions may be listed, but
they will be ignored if not included by the target.