summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-06-06 04:46:44 -0500
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-06-06 04:46:44 -0500
commitf85cd0e83fcf47a069f22a5e0f0c8538cff8eaf7 (patch)
tree04a07969733e1b4dd5724c1294ee0d36aabf5ed8 /scripts
parentf99e6d1e70ed0cc0fc0153156858ddb439d1c574 (diff)
kbuild: Fix extracting of CONFIG_ references
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/fixdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fixdep.c b/scripts/fixdep.c
index 4a42364ab18a..d3a4c534cef6 100644
--- a/scripts/fixdep.c
+++ b/scripts/fixdep.c
@@ -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;