Skip to contentSkip to conversation

buildman: Show board list with -x

PATCH In review Simon Glass 2 participants 3 messages Jul 11, 2024 – Jul 26, 2024

lore
Share & tools
lore
#0 lore raw

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.

---

 tools/buildman/control.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/buildman/control.py +2 -1
index 464835c5be5..d3d027f02ab 100644
@@ -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
Tested-by on v1 1/1
#1 lore raw
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.

Signature · 1 line
Tom
author Tested-by Tom Rini
#2 lore raw
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.

Signature · 3 lines
Tom

Applied to u-boot-dm, thanks!