scripts: west: update to upstream 894aedbc0

Update to upstream commit 894aedbc0 ("runner: nios2.py: fix create()
and constructor").

Fixes: #7954
Fixes: #7927

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
This commit is contained in:
Marti Bolivar 2018-06-04 10:10:14 -04:00 committed by Anas Nashif
commit 63f2cf579d
2 changed files with 4 additions and 3 deletions

View file

@ -183,7 +183,7 @@ class CMakeCache:
if isinstance(value, list):
return value
elif isinstance(value, str):
return [value]
return [value] if value else []
else:
msg = 'invalid value {} type {}'
raise RuntimeError(msg.format(value, type(value)))

View file

@ -23,7 +23,7 @@ class Nios2BinaryRunner(ZephyrBinaryRunner):
self.elf_name = cfg.kernel_elf
self.cpu_sof = cpu_sof
self.quartus_py = quartus_py
self.gdb_cmd = [cfg.gdbgdb] if cfg.gdb else None
self.gdb_cmd = [cfg.gdb] if cfg.gdb else None
self.tui_arg = ['-tui'] if tui else []
@classmethod
@ -41,7 +41,8 @@ class Nios2BinaryRunner(ZephyrBinaryRunner):
@classmethod
def create(cls, cfg, args):
return Nios2BinaryRunner(quartus_py=args.quartus_flash,
return Nios2BinaryRunner(cfg,
quartus_py=args.quartus_flash,
cpu_sof=args.cpu_sof,
tui=args.tui)