Skip to content

Commit e5b9d69

Browse files
committed
[NXP] Unset ZEPHYR_TOOLCHAIN_VARIANT using the shell commands
To be able to track shell commands needed to build an example with `--dry-run`, any environment manipulation shall be done with shell commands and not using Python specific commands.
1 parent e73249c commit e5b9d69

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/build/builders/nxp.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,9 @@ def generate(self):
240240
if 'ZEPHYR_NXP_BASE' not in os.environ:
241241
raise Exception("ZEPHYR_NXP_BASE need to be set")
242242

243-
if 'ZEPHYR_TOOLCHAIN_VARIANT' in os.environ:
244-
del os.environ['ZEPHYR_TOOLCHAIN_VARIANT']
245-
246243
cmd = 'export ZEPHYR_SDK_INSTALL_DIR="$ZEPHYR_NXP_SDK_INSTALL_DIR"'
247244
cmd += '\nexport ZEPHYR_BASE="$ZEPHYR_NXP_BASE"'
245+
cmd += '\nunset ZEPHYR_TOOLCHAIN_VARIANT'
248246

249247
cmd += '\nwest build -p --cmake-only -b {board_name} -d {out_folder} {example_folder}{build_args}'.format(
250248
board_name=self.board.Name(self.os_env),

0 commit comments

Comments
 (0)