buildman: Show board list with -x
PATCH 1/1 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 <[email protected]>
---
tools/buildman/control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/buildman/control.py +2 -1
@@ -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])}")
Signature · 1 line
2.34.1
Quoted 7 lines · Simon Glass
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 <[email protected]>
Tested-by Tom Rini <[email protected]>
Signature · 1 line
Tom
Simon Glass
Tested-by Tom RiniQuoted 7 lines · Simon Glass
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 <[email protected]>
Tested-by Tom Rini <[email protected]>
Signature · 3 lines
Tom Applied to u-boot-dm, thanks!