scripts: support quoted sysbuild Kconfig settings in twister
Kconfig settings of string type is passed to CMake with quotes to ensure they are properly handled, for example when specified in testcase.yml as > extra_args: > - CONFIG_FOO="bar" Support sysbuild Kconfig settings `SB_CONFIG` by performing the same quoting for settings starting with `SB_CONFIG_`. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
da45a76fce
commit
483c76759d
1 changed files with 2 additions and 2 deletions
|
@ -1666,8 +1666,8 @@ class ProjectBuilder(FilterBuilder):
|
|||
extra_dtc_overlay_files, cmake_extra_args,
|
||||
build_dir):
|
||||
# Retain quotes around config options
|
||||
config_options = [arg for arg in extra_args if arg.startswith("CONFIG_")]
|
||||
args = [arg for arg in extra_args if not arg.startswith("CONFIG_")]
|
||||
config_options = [arg for arg in extra_args if arg.startswith(("CONFIG_", "SB_CONFIG_"))]
|
||||
args = [arg for arg in extra_args if not arg.startswith(("CONFIG_", "SB_CONFIG_"))]
|
||||
|
||||
args_expanded = ["-D{}".format(a.replace('"', '\"')) for a in config_options]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue