Skip to content

Commit 765ca79

Browse files
nordicjmrlubos
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 ae431bd)
1 parent 1a92e59 commit 765ca79

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
@@ -631,7 +631,12 @@ def _run_cmake(self, board, origin, cmake_opts):
631631
if user_args:
632632
cmake_opts.extend(shlex.split(user_args))
633633

634-
config_sysbuild = config_getboolean('sysbuild', False)
634+
config_sysbuild = config_getboolean('sysbuild', None)
635+
636+
if config_sysbuild is None:
637+
# If no option is set, then enable sysbuild globally
638+
config_sysbuild = True
639+
635640
if self.args.sysbuild or (config_sysbuild and not self.args.no_sysbuild):
636641
cmake_opts.extend(['-S{}'.format(SYSBUILD_PROJ_DIR),
637642
'-DAPP_DIR:PATH={}'.format(self.source_dir)])

0 commit comments

Comments
 (0)