From f85cd0e83fcf47a069f22a5e0f0c8538cff8eaf7 Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Thu, 6 Jun 2002 04:46:44 -0500 Subject: [PATCH] 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. --- scripts/fixdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5