Skip to content

newt/sysinit: Add possibility to override sysinit prio from target - #615

Open
m-gorecki wants to merge 2 commits into
apache:masterfrom
m-gorecki:m-gorecki/sysinit_ovrd
Open

newt/sysinit: Add possibility to override sysinit prio from target#615
m-gorecki wants to merge 2 commits into
apache:masterfrom
m-gorecki:m-gorecki/sysinit_ovrd

Conversation

@m-gorecki

Copy link
Copy Markdown
Contributor

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.

@m-gorecki
m-gorecki force-pushed the m-gorecki/sysinit_ovrd branch 6 times, most recently from 8acf6a0 to 3eb17e8 Compare February 2, 2026 12:37
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
m-gorecki force-pushed the m-gorecki/sysinit_ovrd branch from 3eb17e8 to bde842d Compare February 2, 2026 13:28
@m-gorecki
m-gorecki marked this pull request as ready for review February 2, 2026 13:38
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.

1 participant