-
Notifications
You must be signed in to change notification settings - Fork 19
sysbuild: bootconf lock #391
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
base: main
Are you sure you want to change the base?
Conversation
You can find the documentation preview for this PR here. |
Add bootloader immutability through RRAMC's region no.3 Applies before first boot. Signed-off-by: Mateusz Michalek <[email protected]>
0db8ab2
to
0d7cbfd
Compare
# | ||
|
||
function(setup_bootconf_data) | ||
add_custom_target(bootconf_target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake indent is 2 spaces, also move file up a folder as this does not run in sysbuild context
DEPENDS ${CMAKE_BINARY_DIR}/bootconf.hex | ||
) | ||
|
||
dt_nodelabel(boot_partition_node_full_path NODELABEL "boot_partition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dt_nodelabel(boot_partition_node_full_path NODELABEL "boot_partition") | |
dt_nodelabel(boot_partition_node_full_path NODELABEL "boot_partition" REQUIRED) |
--size ${boot_partition_node_size} | ||
VERBATIM | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protection will be applied over maximum allowed span.") | ||
endif() | ||
|
||
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/bootconf.hex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this creates the file but does not flash it. A special project can be created that will allow flashing of the file with west flash, see zephyrproject-rtos/zephyr#94796 for how to do this (note: more complex)
Add bootloader immutability through RRAMC's region no.3 Applies before first boot.