phase1/dumpinfo.pl: add a feature flag for skipping targets
authorFelix Fietkau <nbd@nbd.name>
Tue, 24 Jan 2017 11:45:29 +0000 (12:45 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Jan 2017 12:18:21 +0000 (13:18 +0100)
Also get rid of the uml special case

Signed-off-by: Felix Fietkau <nbd@nbd.name>
phase1/dumpinfo.pl

index 18a226f86ed608180c9ca956b865e9d3fdeb35e6..3e9bc4c6e16eb227823adea7d039c6edba864aa3 100755 (executable)
@@ -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;
                                }
                        }