|
@@ -113,11 +113,11 @@ static void usage(void)
|
|
|
/*
|
|
|
* Print out a dependency path from a symbol name
|
|
|
*/
|
|
|
-static void print_config(const char *m, int slen)
|
|
|
+static void print_dep(const char *m, int slen, const char *dir)
|
|
|
{
|
|
|
int c, i;
|
|
|
|
|
|
- printf(" $(wildcard include/config/");
|
|
|
+ printf(" $(wildcard %s/", dir);
|
|
|
for (i = 0; i < slen; i++) {
|
|
|
c = m[i];
|
|
|
if (c == '_')
|
|
@@ -140,7 +140,7 @@ static void do_extra_deps(void)
|
|
|
fprintf(stderr, "fixdep: bad data on stdin\n");
|
|
|
exit(1);
|
|
|
}
|
|
|
- print_config(buf, len - 1);
|
|
|
+ print_dep(buf, len - 1, "include/ksym");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -208,7 +208,7 @@ static void use_config(const char *m, int slen)
|
|
|
return;
|
|
|
|
|
|
define_config(m, slen, hash);
|
|
|
- print_config(m, slen);
|
|
|
+ print_dep(m, slen, "include/config");
|
|
|
}
|
|
|
|
|
|
/* test if s ends in sub */
|