Просмотр исходного кода

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

SVN-Revision: 12366
Nicolas Thill 17 лет назад
Родитель
Сommit
0bb4b7d761
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/metadata.pl

+ 1 - 1
scripts/metadata.pl

@@ -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};