sysbuild: cmake: Add set_config_int() function

Adds a function that will add an integer value to an image

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2024-10-10 10:49:49 +01:00 committed by Anas Nashif
parent e11d050b23
commit 8774f15bd2

View file

@ -661,6 +661,10 @@ function(set_config_string image setting value)
set_property(TARGET ${image} APPEND_STRING PROPERTY CONFIG "${setting}=\"${value}\"\n")
endfunction()
function(set_config_int image setting value)
set_property(TARGET ${image} APPEND_STRING PROPERTY CONFIG "${setting}=${value}\n")
endfunction()
# Usage:
# sysbuild_add_subdirectory(<source_dir> [<binary_dir>])
#