replace some hardcoded /dev/mtdblock/* references with calls to find_mtd_part()
[openwrt/openwrt.git] / scripts / metadata.pl
index 4a05628a54fac1c76ba7ef2a0b2ac330c3e79379..063524a67b39dcc8233d914b78695073bbe1dc6b 100755 (executable)
@@ -149,9 +149,10 @@ sub gen_target_mk() {
   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 "