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:
Jamie McCrae 2024-02-22 12:22:27 +00:00 committed by Carles Cufi
parent 686a4b78b8
commit b2af1e1737
2 changed files with 6 additions and 1 deletions

View File

@ -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})

View File

@ -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)))