Skip to content

Commit 8774f15

Browse files
nordicjmnashif
authored andcommitted
sysbuild: cmake: Add set_config_int() function
Adds a function that will add an integer value to an image Signed-off-by: Jamie McCrae <[email protected]>
1 parent e11d050 commit 8774f15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

share/sysbuild/cmake/modules/sysbuild_extensions.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,10 @@ function(set_config_string image setting value)
661661
set_property(TARGET ${image} APPEND_STRING PROPERTY CONFIG "${setting}=\"${value}\"\n")
662662
endfunction()
663663

664+
function(set_config_int image setting value)
665+
set_property(TARGET ${image} APPEND_STRING PROPERTY CONFIG "${setting}=${value}\n")
666+
endfunction()
667+
664668
# Usage:
665669
# sysbuild_add_subdirectory(<source_dir> [<binary_dir>])
666670
#

0 commit comments

Comments
 (0)