[PATCH] fixdep fails to use all components in config entry

Sam Ravnborg (sam@ravnborg.org)
Thu, 6 Jun 2002 21:39:34 +0200


--fUYQa+Pmc3FrFX/N
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

--fUYQa+Pmc3FrFX/N
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="fixdep-fullpath.patch"

--- scripts/fixdep.c.orig Thu Jun 6 21:31:52 2002
+++ scripts/fixdep.c Thu Jun 6 21:31:29 2002
@@ -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;

--fUYQa+Pmc3FrFX/N--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/