1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-14 03:03:52 +02:00

don't display the "Image configuration" menu entry when there's nothing to pre-configure (when using the SDK for example)

SVN-Revision: 12366
This commit is contained in:
Nicolas Thill 2008-08-22 04:18:35 +00:00
parent 42cf7602f4
commit 0bb4b7d761

View File

@ -472,7 +472,7 @@ sub print_package_config_category($) {
sub gen_package_config() {
parse_package_metadata($ARGV[0]) or exit 1;
print "menuconfig UCI_PRECONFIG\n\tbool \"Image configuration\"\n";
print "menuconfig UCI_PRECONFIG\n\tbool \"Image configuration\"\n" if %preconfig;
foreach my $preconfig (keys %preconfig) {
foreach my $cfg (keys %{$preconfig{$preconfig}}) {
my $conf = $preconfig{$preconfig}->{$cfg}->{id};