disable the automatic config reset if 'Advanced configuration options' is selected
[openwrt.git] / scripts / metadata.pl
index 4a05628..b5ee31a 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 "
@@ -202,6 +203,7 @@ sub gen_target_config() {
 choice
        prompt "Target System"
        default LINUX_2_4_BRCM
+       reset if !DEVEL
        
 EOF
 
This page took 0.034072 seconds and 4 git commands to generate.