projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix fuse (closes: #1847)
[openwrt.git]
/
scripts
/
metadata.pl
diff --git
a/scripts/metadata.pl
b/scripts/metadata.pl
index
2527915
..
e196003
100755
(executable)
--- a/
scripts/metadata.pl
+++ b/
scripts/metadata.pl
@@
-451,22
+451,20
@@
sub print_package_config_category($) {
sub gen_package_config() {
parse_package_metadata();
sub gen_package_config() {
parse_package_metadata();
- print "menu \"Image configuration\"\n";
+ print "menu
config UCI_PRECONFIG\n\tbool
\"Image configuration\"\n";
foreach my $preconfig (keys %preconfig) {
foreach my $preconfig (keys %preconfig) {
- print "\tcomment \"$preconfig\"\n";
foreach my $cfg (@{$preconfig{$preconfig}}) {
my $conf = $cfg->{id};
$conf =~ tr/\.-/__/;
print <<EOF
config UCI_PRECONFIG_$conf
foreach my $cfg (@{$preconfig{$preconfig}}) {
my $conf = $cfg->{id};
$conf =~ tr/\.-/__/;
print <<EOF
config UCI_PRECONFIG_$conf
- string "$cfg->{label}"
+ string "$cfg->{label}"
if UCI_PRECONFIG
depends PACKAGE_$preconfig
default "$cfg->{default}"
EOF
}
}
depends PACKAGE_$preconfig
default "$cfg->{default}"
EOF
}
}
- print "endmenu\n\n";
print_package_config_category 'Base system';
foreach my $cat (keys %category) {
print_package_config_category $cat;
print_package_config_category 'Base system';
foreach my $cat (keys %category) {
print_package_config_category $cat;
@@
-542,8
+540,10
@@
sub gen_package_mk() {
( \\
$cmds \\
) > \$@
( \\
$cmds \\
) > \$@
-
-preconfig: \$(TARGET_DIR)/etc/uci-defaults/$preconfig
+
+ifneq (\$(UCI_PRECONFIG)\$(CONFIG_UCI_PRECONFIG),)
+ preconfig: \$(TARGET_DIR)/etc/uci-defaults/$preconfig
+endif
EOF
}
}
EOF
}
}
This page took
0.020372 seconds
and
4
git commands to generate.