diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-10-06 16:34:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-10-06 16:34:28 +0000 |
commit | 0137b514765b79cfe2cad44ec39e9db1c80386e9 (patch) | |
tree | d1dfaf2ef65609ae9a3f8365bbf130001991d4de | |
parent | 4d4bfdfdeedaeee1e111fae9d1604cd38c420985 (diff) | |
download | upstream-0137b514765b79cfe2cad44ec39e9db1c80386e9.tar.gz upstream-0137b514765b79cfe2cad44ec39e9db1c80386e9.tar.bz2 upstream-0137b514765b79cfe2cad44ec39e9db1c80386e9.zip |
don't print warnings for undefined DEFAULT_* symbols on menuconfig. generate those in config-target.in instead of config-package.in
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12871 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | scripts/metadata.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 9c10f9554c..32370d50c1 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 { |