Lines Matching +full:- +full:- +full:target +full:- +full:list

2  * "Optimize" a list of dependencies as spit out by gcc -MD
15 * gcc produces a very nice and correct list of dependencies which
18 * To use this list as-is however has the drawback that virtually
21 * If the user re-runs make *config, autoconf.h will be
38 * so most likely only his driver ;-)
47 * The former is handled by using the -MD output, the later by saving
52 * kbuild-devel a long time ago. I don't have a sensibly working
65 * fixdep <depfile> <target> <cmdline>
73 * cmd_<target> = <cmdline>
75 * and then basically copies the .<target>.d file to stdout, in the
86 * be fast ;-) We don't even try to really parse the header files, but
102 * through arch/um/include/uml-config.h; this fixdep "bug" makes sure that
123 char *target; variable
126 int is_spl_build = 0; /* hack for U-Boot */
130 fprintf(stderr, "Usage: fixdep <depfile> <target> <cmdline>\n"); in usage()
135 * Print out the commandline prefixed with cmd_<target filename> :=
139 printf("cmd_%s := %s\n\n", target, cmdline); in print_cmdline()
169 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { in is_defined_config()
170 if (aux->hash == hash && aux->len == len && in is_defined_config()
171 memcmp(aux->name, name, len) == 0) in is_defined_config()
188 memcpy(aux->name, name, len); in define_config()
189 aux->len = len; in define_config()
190 aux->hash = hash; in define_config()
191 aux->next = hashtab[hash % HASHSZ]; in define_config()
226 char tmp_buf[256] = "SPL_"; /* hack for U-Boot */ in parse_config_file()
230 if (*m == INT_ONFI) { p = (char *) m-1; goto conf; } in parse_config_file()
231 if (*m == INT_NFIG) { p = (char *) m-2; goto conf; } in parse_config_file()
232 if (*m == INT_FIG_) { p = (char *) m-3; goto conf; } in parse_config_file()
235 if (p > map + len - 7) in parse_config_file()
247 if (!memcmp(q - 7, "_MODULE", 7)) in parse_config_file()
248 q -= 7; in parse_config_file()
249 if (q - p < 0) in parse_config_file()
253 * U-Boot also handles in parse_config_file()
259 if ((q - p == 10 && !memcmp(p, "IS_ENABLED(", 11)) || in parse_config_file()
260 (q - p == 10 && !memcmp(p, "IS_BUILTIN(", 11)) || in parse_config_file()
261 (q - p == 9 && !memcmp(p, "IS_MODULE(", 10)) || in parse_config_file()
262 (q - p == 3 && !memcmp(p, "VAL(", 4))) { in parse_config_file()
271 memcpy(tmp_buf + 4, p, q - p); in parse_config_file()
272 q = tmp_buf + 4 + (q - p); in parse_config_file()
276 /* end U-Boot hack */ in parse_config_file()
278 use_config(p, q - p); in parse_config_file()
291 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()
316 if ((long) map == -1) { in do_config_file()
352 /* Is the token we found a target name? */ in parse_dep_file()
353 is_target = (*(p-1) == ':'); in parse_dep_file()
354 /* Don't write any target names into the dependency file */ in parse_dep_file()
360 memcpy(s, m, p-m); in parse_dep_file()
361 s[p - m] = 0; in parse_dep_file()
365 strrcmp(s, "arch/um/include/uml-config.h") && in parse_dep_file()
369 * Do not list the source file as dependency, in parse_dep_file()
379 * process the first target name, which in parse_dep_file()
381 * and ignore any other target names, in parse_dep_file()
388 target, s); in parse_dep_file()
390 target); in parse_dep_file()
410 printf("\n%s: $(deps_%s)\n\n", target, target); in parse_dep_file()
411 printf("$(deps_%s):\n", target); in parse_dep_file()
437 if ((long) map == -1) { in print_deps()
470 target = argv[2]; in main()
473 /* hack for U-Boot */ in main()
474 if (!strncmp(target, "spl/", 4) || !strncmp(target, "tpl/", 4)) in main()