arch/Kconfig: add boot memory configuration options - #19831
Open
Laczen wants to merge 1 commit into
Open
Conversation
| Set this option to enforce using the boot memory configuration if | ||
| supported by the linker script. | ||
|
|
||
| config FLASH_HEADER_SIZE |
Contributor
There was a problem hiding this comment.
but no nuttx code reference these new macro?
Contributor
Author
There was a problem hiding this comment.
Not yet, I wanted the OK to do it like that. I can add an example linker modification if wanted.
Add extra boot memory options to enforce the use of boot memory configuration options. This allows linker files to detect if they should prefer the specified boot memory options. This supports using boot memory config without breaking the existing defconfigs. Add extra boot memory option to describe the size of an image header when a bootloader would need one. Add a sample modification for the linker script of nucleo-f411re Signed-off-by: Laczen JMS <laczenjms@gmail.com>
Laczen
force-pushed
the
improve_bootloader_support
branch
from
August 13, 2026 15:14
6667445 to
5eb024d
Compare
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
Add extra boot memory options to enforce the use of boot memory configuration options. This allows linker files to detect if they should prefer the specified boot memory options. This supports using boot memory config without breaking the existing defconfigs.
Add extra boot memory option to describe the size of an image header when a bootloader would need one.
When using the image header by a bootloader that is in nuttx-apps I would use the PREBUILD mechanism or a equivalent cmake mechanism to set the boot memory configuration and the image header size (using kconfig-tweak).
Impact
None, enabler for improving bootloader support.
Testing
tested on qemu-armv7a:nsh