diff options
author | Simon Glass <sjg@chromium.org> | 2017-01-23 05:38:56 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-02-08 06:12:16 -0700 |
commit | 8d7523c55c2c4000af15dfcba658eef35cc14302 (patch) | |
tree | cb5560e3d1daf5f59bd677ea37b244d169dfd5c5 /tools/buildman/board.py | |
parent | 147f785f6737a900d82acd0297a82399f9cba006 (diff) |
buildman: Allow showing the list of boards with -n
As well as showing the number of boards, allow showing the actual list of
boards that would be built, if -v is provided.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/board.py')
-rw-r--r-- | tools/buildman/board.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/buildman/board.py b/tools/buildman/board.py index ae0e0b8e17..f842d3a1fa 100644 --- a/tools/buildman/board.py +++ b/tools/buildman/board.py @@ -249,15 +249,15 @@ class Boards: exclude: List of boards to exclude, regardless of 'args' Returns: - Dictionary which holds the number of boards which were selected + Dictionary which holds the list of boards which were selected due to each argument, arranged by argument. """ result = {} terms = self._BuildTerms(args) - result['all'] = 0 + result['all'] = [] for term in terms: - result[str(term)] = 0 + result[str(term)] = [] exclude_list = [] for expr in exclude: @@ -285,7 +285,7 @@ class Boards: if build_it: board.build_it = True if matching_term: - result[matching_term] += 1 - result['all'] += 1 + result[matching_term].append(board.target) + result['all'].append(board.target) return result |