Skip to content

Commit 9e348d3

Browse files
[nrfconnect] Fixed scripts building nrfconnect platform
Added --sysbuild flag for build scripts that is required by the west build command used with nrfconnect platform.
1 parent 0eb1cf2 commit 9e348d3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

examples/chef/chef.py

+3
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,9 @@ def main() -> int:
739739
f"-DSAMPLE_NAME={options.sample_device_type_name}")
740740
nrf_build_cmds.append(
741741
f"-DCONFIG_CHIP_DEVICE_SOFTWARE_VERSION_STRING='\"{sw_ver_string}\"'")
742+
nrf_build_cmds.append(
743+
f"--sysbuild")
744+
742745

743746
shell.run_cmd(" ".join(nrf_build_cmds))
744747

scripts/build/builders/nrf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def generate(self):
197197
export ZEPHYR_SDK_INSTALL_DIR={zephyr_sdk_dir};'''
198198

199199
cmd += '''
200-
west build --cmake-only -d {outdir} -b {board} {sourcedir}{build_flags}
200+
west build --cmake-only -d {outdir} -b {board} {sourcedir}{build_flags} --sysbuild
201201
'''.format(
202202
outdir=shlex.quote(self.output_dir),
203203
board=self.board.GnArgName(),

scripts/examples/nrfconnect_example.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ fi
5151
export CCACHE_BASEDIR="$PWD/$APP/nrfconnect"
5252

5353
env
54-
west build -p auto -b "$BOARD" -d "$APP/nrfconnect/build" "$APP/nrfconnect" -- "${COMMON_CI_FLAGS[@]}" "$@"
54+
west build -p auto -b "$BOARD" -d "$APP/nrfconnect/build" "$APP/nrfconnect" -- "${COMMON_CI_FLAGS[@]}" "$@" --sysbuild

0 commit comments

Comments
 (0)