diff options
author | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-09-19 10:08:45 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-09-20 10:30:54 -0400 |
commit | 03c1bb242548e4e9d267d784861ccd69a1887aa0 (patch) | |
tree | 620e2fe89f25706d645f4783abb7144adb6210c5 | |
parent | 2f0877c7f4fa53ba4aedf2333908057a3f6ac413 (diff) | |
download | u-boot-imx-03c1bb242548e4e9d267d784861ccd69a1887aa0.zip u-boot-imx-03c1bb242548e4e9d267d784861ccd69a1887aa0.tar.gz u-boot-imx-03c1bb242548e4e9d267d784861ccd69a1887aa0.tar.bz2 |
buildman: fix boards.cfg parsing
Commit 27af930e9a5c91365ca639ada580b338eabe4989 changed the boards.cfg format
but missed to change the parsing in buildman.
This patch changes c'tor of Board class to the new sequence, but omits
maintainer field.
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
-rw-r--r-- | tools/buildman/board.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/buildman/board.py b/tools/buildman/board.py index a388896..1d3db20 100644 --- a/tools/buildman/board.py +++ b/tools/buildman/board.py @@ -5,16 +5,17 @@ class Board: """A particular board that we can build""" - def __init__(self, target, arch, cpu, board_name, vendor, soc, options): + def __init__(self, status, arch, cpu, soc, vendor, board_name, target, options): """Create a new board type. Args: - target: Target name (use make <target>_config to configure) + status: define whether the board is 'Active' or 'Orphaned' arch: Architecture name (e.g. arm) cpu: Cpu name (e.g. arm1136) - board_name: Name of board (e.g. integrator) - vendor: Name of vendor (e.g. armltd) soc: Name of SOC, or '' if none (e.g. mx31) + vendor: Name of vendor (e.g. armltd) + board_name: Name of board (e.g. integrator) + target: Target name (use make <target>_config to configure) options: board-specific options (e.g. integratorcp:CM1136) """ self.target = target @@ -63,8 +64,10 @@ class Boards: for upto in range(len(fields)): if fields[upto] == '-': fields[upto] = '' - while len(fields) < 9: + while len(fields) < 8: fields.append('') + if len(fields) > 8: + fields = fields[:8] board = Board(*fields) self.AddBoard(board) |