Add WL-700gE support (based on work by jr) Includes kernel/diag patch and a new targe...
[openwrt/staging/florian.git] / scripts / metadata.pl
index 396954a2c7b24431be5a3be9f7f2ee1cb5ba04af..ded38058a4aec377e97cd82c5b93013edf74265b 100755 (executable)
@@ -297,8 +297,12 @@ config LINUX_$target->{conf}_$profile->{id}
        bool "$profile->{name}"
        depends LINUX_$target->{conf}
 EOF
+                       my %pkgs;
                        foreach my $pkg (@{$target->{packages}}, @{$profile->{packages}}) {
-                               print "\tselect DEFAULT_$pkg\n";
+                               $pkgs{$pkg} = 1;
+                       }
+                       foreach my $pkg (keys %pkgs) {
+                               print "\tselect DEFAULT_$pkg\n" unless ($pkg =~ /^-/ or $pkgs{"-$pkg"});
                        }
                        print "\n";
                }