buildgcc: Fix colors for dash
[coreboot.git] / util / kconfig / confdata.c
index 56a0eb08518709de8614504dbf7483b06cf651f2..946b8a9c0b476f45dd62a8a2d445ab40afda8705 100644 (file)
@@ -19,7 +19,7 @@
 #define mkdir(x,y) mkdir(x)
 #define UNLINK_IF_NECESSARY(x) unlink(x)
 #else
-#define UNLINK_IF_NECESSARY(X) 
+#define UNLINK_IF_NECESSARY(X)
 #endif
 
 static void conf_warning(const char *fmt, ...)
@@ -721,8 +721,15 @@ int conf_write_autoconf(void)
 
        for_all_symbols(i, sym) {
                sym_calc_value(sym);
-               if (!(sym->flags & SYMBOL_WRITE) || !sym->name)
+               if (!sym->name)
                        continue;
+               if (!(sym->flags & SYMBOL_WRITE)) {
+                       if (sym->type == S_BOOLEAN || sym->type == S_HEX
+                           || sym->type == S_INT)
+                               fprintf(out_h, "#define CONFIG_%s 0\n",
+                                       sym->name);
+                       continue;
+               }
                switch (sym->type) {
                case S_BOOLEAN:
                case S_TRISTATE: