Skip to contentSkip to conversation

fixdep fails to use all components in config entry

PATCH In review Sam Ravnborg 2 participants 2 messages Jun 6, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixdep fails to use all components in config entry

Hi Kai.

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.

Sam

fixdep.c renamed from fixdep.c.orig +1 -1
@@ -239,7 +239,7 @@
 		if (memcmp(p, "CONFIG_", 7))
 			continue;
 		for (q = p + 7; q < map + len; q++) {
-			if (!(isalnum(*q)))
+			if (!(isalnum(*q) || *q == '_'))
 				goto found;
 		}
 		continue;
#1 lore raw
Quoted 2 lines · 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.

Doh, you're right. Applied ;-)

--Kai