lantiq: remove clk_round_rate() patch
[openwrt.git] / scripts / metadata.pl
index 92923ea..48b1b7a 100755 (executable)
@@ -3,6 +3,7 @@ use FindBin;
 use lib "$FindBin::Bin";
 use strict;
 use metadata;
+use Getopt::Long;
 
 my %board;
 
@@ -205,11 +206,11 @@ EOF
                grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends on BROKEN\n";
        } else {
                $confstr .= $features;
+               if ($target->{arch} =~ /\w/) {
+                       $confstr .= "\tselect $target->{arch}\n";
+               }
        }
 
-       if ($target->{arch} =~ /\w/) {
-               $confstr .= "\tselect $target->{arch}\n";
-       }
        foreach my $dep (@{$target->{depends}}) {
                my $mode = "depends on";
                my $flags;
@@ -871,6 +872,7 @@ sub gen_version_filtered_list() {
 }
 
 sub parse_command() {
+       GetOptions("ignore=s", \@ignore);
        my $cmd = shift @ARGV;
        for ($cmd) {
                /^target_config$/ and return gen_target_config();
@@ -895,6 +897,8 @@ Available Commands:
        $0 package_licensefull [file]           Package license information (full list)
        $0 version_filter [patchver] [list...]  Filter list of version tagged strings
 
+Options:
+       --ignore <name>                         Ignore the source package <name>
 EOF
 }