!boards/boardctl: Remove BOARDIOC_INIT#18832
Draft
linguini1 wants to merge 2 commits intoapache:masterfrom
Draft
!boards/boardctl: Remove BOARDIOC_INIT#18832linguini1 wants to merge 2 commits intoapache:masterfrom
linguini1 wants to merge 2 commits intoapache:masterfrom
Conversation
BREAKING CHANGE: Remove BOARDIOC_INIT macro now that the interface is removed in favour of CONFIG_BOARD_LATE_INITIALIZE. Quick fix: instead of calling BOARDIOC_INIT from your application, instead enable late initialization to have it performed automatically prior to application entry. If you need custom initialization logic, use the board_final_initialize function and `BOARDIOC_FINALINIT` command instead. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
Contributor
|
@linguini1 please remove this leftover: from boards/xxx/yyy/boardname/src/boardname.h |
Removes legacy comments about where `board_late_initialize` is called from so as to not confuse developers/users. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
Contributor
Author
xiaoxiang781216
approved these changes
May 2, 2026
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.
Summary
BREAKING CHANGE: Remove BOARDIOC_INIT macro now that the interface is removed in favour of CONFIG_BOARD_LATE_INITIALIZE.
Quick fix: instead of calling BOARDIOC_INIT from your application, instead enable late initialization to have it performed automatically prior to application entry.
If you need custom initialization logic, use the board_final_initialize function and
BOARDIOC_FINALINITcommand instead.Must not be merged before: apache/nuttx-apps#3405
Impact
Closes #11321, finally finishing the simplification of NuttX initialization logic permanently.
Impacts users relying on
BOARDIOC_INITin their custom applications. WithinNuttX, these usages are already removed.
Testing
Since this interface is entirely removed from NuttX use already, there will not
be any compilation errors building any configuration. Here is a build and run of
sim:
OSTest:
Details