aboutsummaryrefslogtreecommitdiff
path: root/tools/buildman
diff options
context:
space:
mode:
authorSimon Glass2024-07-11 09:10:04 +0100
committerSimon Glass2024-07-26 08:01:06 -0600
commite8effc385496d76a6cbaf9683dfede96ac634f72 (patch)
tree6bb8a4e88c9cca5b1df70f1e21584a1f541db65f /tools/buildman
parentbbef829f9d07236d92f5b2dbbb1129e72fe6127b (diff)
buildman: Show board list with -x
When -x is used, buildman does not show the list of boards that will be built, since there are no terms which cause boards to be added, only terms which cause them to be removed. Add a special case to fix this. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/buildman')
-rw-r--r--tools/buildman/control.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py
index 464835c5be5..d3d027f02ab 100644
--- a/tools/buildman/control.py
+++ b/tools/buildman/control.py
@@ -124,7 +124,8 @@ def show_actions(series, why_selected, boards_selected, output_dir,
print(commit.subject)
print()
for arg in why_selected:
- if arg != 'all':
+ # When -x is used, only the 'all' member exists
+ if arg != 'all' or len(why_selected) == 1:
print(arg, f': {len(why_selected[arg])} boards')
if verbose:
print(f" {' '.join(why_selected[arg])}")