mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
add preinit modularization work by Daniel Dickinson (cshore)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19331 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -562,20 +562,24 @@ EOF
|
||||
|
||||
sub gen_package_config() {
|
||||
parse_package_metadata($ARGV[0]) or exit 1;
|
||||
print "menuconfig UCI_PRECONFIG\n\tbool \"Image configuration\"\n" if %preconfig;
|
||||
print "menuconfig IMAGEOPT\n\tbool \"Image configuration\"\n\tdefault n\n";
|
||||
foreach my $preconfig (keys %preconfig) {
|
||||
foreach my $cfg (keys %{$preconfig{$preconfig}}) {
|
||||
my $conf = $preconfig{$preconfig}->{$cfg}->{id};
|
||||
$conf =~ tr/\.-/__/;
|
||||
print <<EOF
|
||||
config UCI_PRECONFIG_$conf
|
||||
string "$preconfig{$preconfig}->{$cfg}->{label}" if UCI_PRECONFIG
|
||||
string "$preconfig{$preconfig}->{$cfg}->{label}" if IMAGEOPT
|
||||
depends PACKAGE_$preconfig
|
||||
default "$preconfig{$preconfig}->{$cfg}->{default}"
|
||||
|
||||
EOF
|
||||
}
|
||||
}
|
||||
print "source \"package/*/image-config.in\"\n";
|
||||
if (scalar glob "package/feeds/*/*/image-config.in") {
|
||||
print "source \"package/feeds/*/*/image-config.in\"\n";
|
||||
}
|
||||
print_package_features();
|
||||
print_package_config_category 'Base system';
|
||||
foreach my $cat (keys %category) {
|
||||
|
||||
Reference in New Issue
Block a user