[buildbot] phase1/dumpinfo.pl: add a feature flag for skipping targets

LEDE Commits lede-commits at lists.infradead.org
Tue Jan 24 04:18:35 PST 2017


nbd pushed a commit to buildbot.git, branch master:
https://git.lede-project.org/40ce6542822840834b71d4a63e36b0ea9c5fe4a8

commit 40ce6542822840834b71d4a63e36b0ea9c5fe4a8
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Jan 24 12:45:29 2017 +0100

    phase1/dumpinfo.pl: add a feature flag for skipping targets
    
    Also get rid of the uml special case
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 phase1/dumpinfo.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/phase1/dumpinfo.pl b/phase1/dumpinfo.pl
index 18a226f..3e9bc4c 100755
--- a/phase1/dumpinfo.pl
+++ b/phase1/dumpinfo.pl
@@ -27,7 +27,7 @@ sub parse_targetinfo {
 				@target_features = split /\s+/, $1;
 			}
 			elsif ($line =~ /^@\@$/) {
-				if ($target_name && $target_arch && $target_name ne 'uml/generic' &&
+				if ($target_name && $target_arch &&
 				    !grep { $_ eq 'broken' } @target_features) {
 					$targets{$target_name} = $target_arch;
 					$architectures{$target_arch} ||= [];
@@ -51,7 +51,7 @@ sub get_targetinfo {
 		if (open M, "make -C '$target_dir' --no-print-directory DUMP=1 TARGET_BUILD=1 val.FEATURES V=s 2>/dev/null |") {
 			if (defined(my $line = readline M)) {
 				chomp $line;
-				if (grep { $_ eq 'broken' } split /\s+/, $line) {
+				if (grep { $_ eq 'broken' or $_ eq 'source-only' } split /\s+/, $line) {
 					next;
 				}
 			}



More information about the lede-commits mailing list