From 40ce6542822840834b71d4a63e36b0ea9c5fe4a8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau <nbd@nbd.name> Date: Tue, 24 Jan 2017 12:45:29 +0100 Subject: [PATCH] phase1/dumpinfo.pl: add a feature flag for skipping targets Also get rid of the uml special case Signed-off-by: Felix Fietkau <nbd@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; } } -- 2.30.2