]> git.hungrycats.org Git - linux/commitdiff
[PATCH] generate dependency again
authorRoman Zippel <zippel@linux-m68k.org>
Fri, 25 Jul 2003 08:50:00 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 25 Jul 2003 08:50:00 +0000 (01:50 -0700)
During an erlier update the call to generate the .config dependency
got lost.
Add a missing warning.

scripts/kconfig/confdata.c

index 4d72008b897911187826fa522c264c2ca905534e..9ca70d081d1b3fd791390a4ad88be72a52bef5b3 100644 (file)
@@ -125,7 +125,11 @@ int conf_read(const char *name)
                        *p++ = 0;
                        if (strncmp(p, "is not set", 10))
                                continue;
-                       sym = sym_lookup(line + 9, 0);
+                       sym = sym_find(line + 9);
+                       if (!sym) {
+                               fprintf(stderr, "%s:%d: trying to assign nonexistent symbol %s\n", name, lineno, line + 9);
+                               break;
+                       }
                        switch (sym->type) {
                        case S_BOOLEAN:
                        case S_TRISTATE:
@@ -408,6 +412,7 @@ int conf_write(const char *name)
        if (out_h) {
                fclose(out_h);
                rename(".tmpconfig.h", "include/linux/autoconf.h");
+               file_write_dep(NULL);
        }
        if (!name || basename != conf_def_filename) {
                if (!name)