Skip to content

Commit e326f35

Browse files
nordicjmjukkar
authored andcommitted
[nrf noup] scripts: west: build: Use sysbuild by default if in NCS dir
Uses sysbuild by default when building an application which resides in an allowed NCS-based directory when the sysbuild config key is not set. Do not use sysbuild if the mps2 board is being used to avoid problems with CI testing. Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 5bbb2c8)
1 parent 0019c2e commit e326f35

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/west_commands/build.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,12 @@ def _run_cmake(self, board, origin, cmake_opts):
642642
if user_args:
643643
cmake_opts.extend(shlex.split(user_args))
644644

645-
config_sysbuild = config_getboolean('sysbuild', False)
645+
config_sysbuild = config_getboolean('sysbuild', None)
646+
647+
if config_sysbuild is None:
648+
# If no option is set, then enable sysbuild globally
649+
config_sysbuild = True
650+
646651
if self.args.sysbuild or (config_sysbuild and not self.args.no_sysbuild):
647652
cmake_opts.extend([f'-S{SYSBUILD_PROJ_DIR}',
648653
f'-DAPP_DIR:PATH={self.source_dir}'])

0 commit comments

Comments
 (0)