don't print warnings for undefined DEFAULT_* symbols on menuconfig. generate those in config-target.in instead of config-package.in
SVN-Revision: 12871
This commit is contained in:
parent
926925622f
commit
ece4ca493b
1 changed files with 6 additions and 2 deletions
|
@ -237,6 +237,7 @@ EOF
|
||||||
|
|
||||||
sub gen_target_config() {
|
sub gen_target_config() {
|
||||||
my @target = parse_target_metadata();
|
my @target = parse_target_metadata();
|
||||||
|
my %defaults;
|
||||||
|
|
||||||
my @target_sort = sort {
|
my @target_sort = sort {
|
||||||
target_name($a) cmp target_name($b);
|
target_name($a) cmp target_name($b);
|
||||||
|
@ -290,6 +291,7 @@ EOF
|
||||||
my @pkglist = merge_package_lists($target->{packages}, $profile->{packages});
|
my @pkglist = merge_package_lists($target->{packages}, $profile->{packages});
|
||||||
foreach my $pkg (@pkglist) {
|
foreach my $pkg (@pkglist) {
|
||||||
print "\tselect DEFAULT_$pkg\n";
|
print "\tselect DEFAULT_$pkg\n";
|
||||||
|
$defaults{$pkg} = 1;
|
||||||
}
|
}
|
||||||
print "\n";
|
print "\n";
|
||||||
}
|
}
|
||||||
|
@ -319,6 +321,10 @@ config LINUX_$v
|
||||||
bool
|
bool
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
foreach my $def (sort keys %defaults) {
|
||||||
|
print "\tconfig DEFAULT_".$def."\n";
|
||||||
|
print "\t\tbool\n\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my %dep_check;
|
my %dep_check;
|
||||||
|
@ -431,8 +437,6 @@ sub print_package_config_category($) {
|
||||||
}
|
}
|
||||||
$menus{$menu} or $menus{$menu} = [];
|
$menus{$menu} or $menus{$menu} = [];
|
||||||
push @{$menus{$menu}}, $pkg;
|
push @{$menus{$menu}}, $pkg;
|
||||||
print "\tconfig DEFAULT_".$pkg->{name}."\n";
|
|
||||||
print "\t\tbool\n\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
my @menus = sort {
|
my @menus = sort {
|
||||||
|
|
Loading…
Reference in a new issue