Skip to content
Permalink
Browse files

scripts: fix and tweak west boards

- This script didn't get fixed when cmake.py was renamed zcmake, so it
  won't run; fix that.
- Change the default format string to '{name}' to keep things simple
- Flake8 lint

Signed-off-by: Marti Bolivar <marti.bolivar@nordicsemi.no>
  • Loading branch information...
mbolivar authored and nashif committed May 4, 2019
1 parent bcf286d commit 4dbf5f1535a2c3162547f94c1b57a4c37bc876b8
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/west_commands/boards.py
@@ -23,7 +23,7 @@ def __init__(self):
accepts_unknown_args=False) accepts_unknown_args=False)


def do_add_parser(self, parser_adder): def do_add_parser(self, parser_adder):
default_fmt = '{name} ({arch})' default_fmt = '{name}'
parser = parser_adder.add_parser( parser = parser_adder.add_parser(
self.name, self.name,
help=self.help, help=self.help,
@@ -75,7 +75,8 @@ def do_run(self, args, unknown_args):
match = board_re.match(line) match = board_re.match(line)
if match: if match:
if not arch: if not arch:
log.die('Invalid board output from CMake: {}'.format(lines)) log.die('Invalid board output from CMake: {}'.
format(lines))
board = match.group(1) board = match.group(1)
boards[arch].append(board) boards[arch].append(board)


0 comments on commit 4dbf5f1

Please sign in to comment.
You can’t perform that action at this time.