Skip to content

Commit

Permalink
cmake: bootloader: Only include dummy values when testing
Browse files Browse the repository at this point in the history
Only includes dummy values for the secure boot bootloader when
partition manager is disabled

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
  • Loading branch information
nordicjm committed May 17, 2024
1 parent 5319932 commit 781d5a2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions subsys/bootloader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ add_subdirectory(bl_boot)

zephyr_include_directories(include)

if (NOT IMAGE_NAME AND NOT SYSBUILD)
if(NOT IMAGE_NAME AND (NOT SYSBUILD OR (SYSBUILD AND NOT CONFIG_PARTITION_MANAGER_ENABLED)))
message(WARNING "Building bootloader without associated application. "
"Dummy values will be used for partition configuration."
"The idiomatic way of including the immutable bootloader is to set "
"the configuration 'CONFIG_SECURE_BOOTLOADER=y' in your applications "
"'prj.conf'.")
"Building bootloader without associated application. ")

if(NOT SYSBUILD)
message(WARNING "The idiomatic way of including the immutable bootloader is to set "
"the configuration 'CONFIG_SECURE_BOOTLOADER=y' in your applications "
"'prj.conf'.")
endif()

zephyr_include_directories(include/dummy_values/)
endif()

0 comments on commit 781d5a2

Please sign in to comment.