scripts: west: list_boards: Fix hwmv2 output
Fixes the output of list_boards to be in csv format rather than python array format Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
parent
686a4b78b8
commit
b2af1e1737
|
@ -300,6 +300,11 @@ def board_v2_identifiers(board):
|
|||
return identifiers
|
||||
|
||||
|
||||
def board_v2_identifiers_csv(board):
|
||||
# Return in csv (comma separated value) format
|
||||
return ",".join(board_v2_identifiers(board))
|
||||
|
||||
|
||||
def dump_v2_boards(args):
|
||||
if args.board_dir:
|
||||
root_args = argparse.Namespace(**{'soc_roots': args.soc_roots})
|
||||
|
|
|
@ -93,4 +93,4 @@ class Boards(WestCommand):
|
|||
if name_re is not None and not name_re.search(board.name):
|
||||
continue
|
||||
log.inf(args.format.format(name=board.name, dir=board.dir, hwm=board.hwm,
|
||||
identifiers=list_boards.board_v2_identifiers(board)))
|
||||
identifiers=list_boards.board_v2_identifiers_csv(board)))
|
||||
|
|
Loading…
Reference in New Issue