]> git.hungrycats.org Git - linux/commitdiff
kbuild: Fix extracting of CONFIG_ references
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Thu, 6 Jun 2002 09:46:44 +0000 (04:46 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Thu, 6 Jun 2002 09:46:44 +0000 (04:46 -0500)
by Sam Ravnborg:

fixdep, when adding dependencies to config entires fails to take into account
the last part of a config entry, if it contains more than one underscore.
Example:
CONFIG_PROC_FS generates
$(wildcard include/config/proc.h)
but should generate
$(wildcard include/config/proc/fs.h)

Attached patch fixes this.

scripts/fixdep.c

index 4a42364ab18af49a34b9bf6bc5bf6c5da2e86732..d3a4c534cef658de8e849eb9fc7009aa75e96856 100644 (file)
@@ -238,7 +238,7 @@ void parse_config_file(char *map, size_t len)
                if (memcmp(p, "CONFIG_", 7))
                        continue;
                for (q = p + 7; q < map + len; q++) {
-                       if (!(isalnum(*q)))
+                       if (!(isalnum(*q) || *q == '_'))
                                goto found;
                }
                continue;