X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fyousong.git;a=blobdiff_plain;f=scripts%2Fmetadata.pl;h=54341c458fd78747eae0219a863c1b5cd1f358a2;hp=92923ea07aa09a56acf82dbfeb04267410cf5c40;hb=4baec2468a88a08058a97406e48a5b1faf3d1fa4;hpb=9dc137397fa64f2c47847d183260ff2d1cf052ae diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 92923ea07a..54341c458f 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -205,11 +205,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;