ignore profiles with custom kernel configs in the image builder itself
[openwrt.org/openwrt.git] / scripts / metadata.pl
blob:a/scripts/metadata.pl -> blob:b/scripts/metadata.pl
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -149,9 +149,10 @@
   define Profile/$conf\_$profile->{id}
     ID:=$profile->{id}
     NAME:=$profile->{name}
-    PACKAGES:=".join(" ", @{$profile->{packages}})."
-  endef";
-  $profiles_eval .= "
+    PACKAGES:=".join(" ", @{$profile->{packages}})."\n";
+			$profile->{kconfig} and $profiles_def .= "    KCONFIG:=1\n";
+			$profiles_def .= "  endef";
+			$profiles_eval .= "
 \$(eval \$(call AddProfile,$conf\_$profile->{id}))"
 		}
 		print "

comments