ar71xx: add user-space support for GL.iNet v1
[openwrt/svn-archive/archive.git] / scripts / metadata.pl
index 250a85ed84e2e343678bf9c44221bab7cec143e7..e408beb507a695607a100586a2763530d7888853 100755 (executable)
@@ -184,6 +184,7 @@ sub target_config_features(@) {
                /mips16/ and $ret .= "\tselect HAS_MIPS16\n";
                /rfkill/ and $ret .= "\tselect RFKILL_SUPPORT\n";
                /low_mem/ and $ret .= "\tselect LOW_MEMORY_FOOTPRINT\n";
+               /nand/ and $ret .= "\tselect NAND_SUPPORT\n";
        }
        return $ret;
 }
@@ -503,7 +504,7 @@ sub mconf_depends {
                                        next if $depend eq $condition;
                                        $depend = "$depend if $condition";
                                } else {
-                                       $depend = "!($condition) || $depend";
+                                       $depend = "!($condition) || $depend" unless $dep->{$condition} eq 'select';
                                }
                        }
                }