summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-06 16:34:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-06 16:34:28 +0000
commitece4ca493b3c631c4f80fd845df9553869099c85 (patch)
tree50550a089962e6023f518a105c434f24f69b9ea3 /scripts
parent926925622f3d9a2f9cb42dfad58686a81a4a0a60 (diff)
downloadmtk-20170518-ece4ca493b3c631c4f80fd845df9553869099c85.zip
mtk-20170518-ece4ca493b3c631c4f80fd845df9553869099c85.tar.gz
mtk-20170518-ece4ca493b3c631c4f80fd845df9553869099c85.tar.bz2
don't print warnings for undefined DEFAULT_* symbols on menuconfig. generate those in config-target.in instead of config-package.in
SVN-Revision: 12871
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 9c10f95..32370d5 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -237,6 +237,7 @@ EOF
sub gen_target_config() {
my @target = parse_target_metadata();
+ my %defaults;
my @target_sort = sort {
target_name($a) cmp target_name($b);
@@ -290,6 +291,7 @@ EOF
my @pkglist = merge_package_lists($target->{packages}, $profile->{packages});
foreach my $pkg (@pkglist) {
print "\tselect DEFAULT_$pkg\n";
+ $defaults{$pkg} = 1;
}
print "\n";
}
@@ -319,6 +321,10 @@ config LINUX_$v
bool
EOF
}
+ foreach my $def (sort keys %defaults) {
+ print "\tconfig DEFAULT_".$def."\n";
+ print "\t\tbool\n\n";
+ }
}
my %dep_check;
@@ -431,8 +437,6 @@ sub print_package_config_category($) {
}
$menus{$menu} or $menus{$menu} = [];
push @{$menus{$menu}}, $pkg;
- print "\tconfig DEFAULT_".$pkg->{name}."\n";
- print "\t\tbool\n\n";
}
}
my @menus = sort {