Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/scripts/kconfig/confdata.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/scripts/kconfig/confdata.c
r1765 r2725 23 23 const char conf_def_filename[] = ".config"; 24 24 25 const char conf_defname[] = " scripts/defconfig";25 const char conf_defname[] = "/dev/null"; //bbox 26 26 27 27 const char *conf_confnames[] = { … … 71 71 { 72 72 struct stat buf; 73 static char fullname[PATH_MAX+1];73 static char *fullname = NULL; 74 74 char *env, *name; 75 75 … … 77 77 env = getenv(SRCTREE); 78 78 if (env) { 79 fullname = realloc(fullname, strlen(env) + strlen(name) + 2); 79 80 sprintf(fullname, "%s/%s", env, name); 80 81 if (!stat(fullname, &buf)) … … 405 406 strftime(buf, sizeof(buf), "#define AUTOCONF_TIMESTAMP " 406 407 "\"%Y-%m-%d %H:%M:%S\"\n", localtime(&now)); 408 } else { /* bbox */ 409 strcpy(buf, "#define AUTOCONF_TIMESTAMP \"\"\n"); 407 410 } 408 411 fprintf(out_h, "/*\n" … … 436 439 } else if (!(sym->flags & SYMBOL_CHOICE)) { 437 440 sym_calc_value(sym); 438 /* bbox: we want to all syms441 /* bbox: we want to see all syms 439 442 if (!(sym->flags & SYMBOL_WRITE)) 440 443 goto next; … … 457 460 /* bbox */ 458 461 fprintf(out_h, "#define ENABLE_%s 0\n", sym->name); 459 fprintf(out_h, "#define USE_%s(...)\n", sym->name);460 fprintf(out_h, "#define SKIP_%s(...) __VA_ARGS__\n", sym->name);462 fprintf(out_h, "#define IF_%s(...)\n", sym->name); 463 fprintf(out_h, "#define IF_NOT_%s(...) __VA_ARGS__\n", sym->name); 461 464 } 462 465 break; … … 472 475 /* bbox */ 473 476 fprintf(out_h, "#define ENABLE_%s 1\n", sym->name); 474 fprintf(out_h, "#define USE_%s(...) __VA_ARGS__\n", sym->name);475 fprintf(out_h, "#define SKIP_%s(...)\n", sym->name);477 fprintf(out_h, "#define IF_%s(...) __VA_ARGS__\n", sym->name); 478 fprintf(out_h, "#define IF_NOT_%s(...)\n", sym->name); 476 479 } 477 480 break; … … 504 507 /* bbox */ 505 508 fprintf(out_h, "#define ENABLE_%s 1\n", sym->name); 506 fprintf(out_h, "#define USE_%s(...) __VA_ARGS__\n", sym->name);507 fprintf(out_h, "#define SKIP_%s(...)\n", sym->name);509 fprintf(out_h, "#define IF_%s(...) __VA_ARGS__\n", sym->name); 510 fprintf(out_h, "#define IF_NOT_%s(...)\n", sym->name); 508 511 } 509 512 break; … … 516 519 /* bbox */ 517 520 fprintf(out_h, "#define ENABLE_%s 1\n", sym->name); 518 fprintf(out_h, "#define USE_%s(...) __VA_ARGS__\n", sym->name);519 fprintf(out_h, "#define SKIP_%s(...)\n", sym->name);521 fprintf(out_h, "#define IF_%s(...) __VA_ARGS__\n", sym->name); 522 fprintf(out_h, "#define IF_NOT_%s(...)\n", sym->name); 520 523 } 521 524 break; … … 523 526 case S_INT: 524 527 str = sym_get_string_value(sym); 528 if (!str[0]) 529 str = "0"; 525 530 fprintf(out, "CONFIG_%s=%s\n", sym->name, str); 526 531 if (out_h) { … … 528 533 /* bbox */ 529 534 fprintf(out_h, "#define ENABLE_%s 1\n", sym->name); 530 fprintf(out_h, "#define USE_%s(...) __VA_ARGS__\n", sym->name);531 fprintf(out_h, "#define SKIP_%s(...)\n", sym->name);535 fprintf(out_h, "#define IF_%s(...) __VA_ARGS__\n", sym->name); 536 fprintf(out_h, "#define IF_NOT_%s(...)\n", sym->name); 532 537 } 533 538 break;
Note:
See TracChangeset
for help on using the changeset viewer.