X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3d1e9d69441a6a32e5c437bdecebb421b818742d..347bed4dabce6d686b7dd9ee3a5bd3b6a9d8c9e1:/scripts/metadata.pl?ds=inline diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 396954a2c..963be3f38 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -180,6 +180,7 @@ sub target_config_features(@) { /usb/ and $ret .= "\tselect USB_SUPPORT\n"; /atm/ and $ret .= "\tselect ATM_SUPPORT\n"; /pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n"; + /video/ and $ret .= "\tselect VIDEO_SUPPORT\n"; /squashfs/ and $ret .= "\tselect USES_SQUASHFS\n"; /jffs2/ and $ret .= "\tselect USES_JFFS2\n"; /ext2/ and $ret .= "\tselect USES_EXT2\n"; @@ -297,8 +298,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"; }