diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-01-25 17:11:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-01-25 17:11:17 +0000 |
commit | fd4ddfd24051c4c2118095d921ac7d1459a9578d (patch) | |
tree | 2f48135bc4a364cacd3ce07355213d4e32a9141f /scripts | |
parent | 9281b57ee9c81271d3bf0cefa834d17b6a175a68 (diff) | |
download | upstream-fd4ddfd24051c4c2118095d921ac7d1459a9578d.tar.gz upstream-fd4ddfd24051c4c2118095d921ac7d1459a9578d.tar.bz2 upstream-fd4ddfd24051c4c2118095d921ac7d1459a9578d.zip |
add preinit modularization work by Daniel Dickinson (cshore)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19331 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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 aa66e53094..37b7d77925 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -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) { |