projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9269256
)
don't print warnings for undefined DEFAULT_* symbols on menuconfig. generate those...
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 6 Oct 2008 16:34:28 +0000
(16:34 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 6 Oct 2008 16:34:28 +0000
(16:34 +0000)
SVN-Revision: 12871
scripts/metadata.pl
patch
|
blob
|
history
diff --git
a/scripts/metadata.pl
b/scripts/metadata.pl
index 9c10f9554ca01c7e8c4d9ca44c6bad04ecb64488..32370d50c16567aebf928564ba467547f7d81b69 100755
(executable)
--- a/
scripts/metadata.pl
+++ b/
scripts/metadata.pl
@@
-237,6
+237,7
@@
EOF
sub gen_target_config() {
my @target = parse_target_metadata();
sub gen_target_config() {
my @target = parse_target_metadata();
+ my %defaults;
my @target_sort = sort {
target_name($a) cmp target_name($b);
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";
my @pkglist = merge_package_lists($target->{packages}, $profile->{packages});
foreach my $pkg (@pkglist) {
print "\tselect DEFAULT_$pkg\n";
+ $defaults{$pkg} = 1;
}
print "\n";
}
}
print "\n";
}
@@
-319,6
+321,10
@@
config LINUX_$v
bool
EOF
}
bool
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} = [];
push @{$menus{$menu}}, $pkg;
}
$menus{$menu} or $menus{$menu} = [];
push @{$menus{$menu}}, $pkg;
- print "\tconfig DEFAULT_".$pkg->{name}."\n";
- print "\t\tbool\n\n";
}
}
my @menus = sort {
}
}
my @menus = sort {