Changeset 69c4fe8 in freewrt
- Timestamp:
- May 23, 2007, 3:57:30 PM (19 years ago)
- Children:
- 6b507a71
- Parents:
- 5b4da56
- Files:
-
- 5 edited
-
Makefile (modified) (2 diffs)
-
mk/build.mk (modified) (1 diff)
-
tools/config/conf.c (modified) (3 diffs)
-
tools/config/confdata.c (modified) (2 diffs)
-
tools/config/symbol.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r5b4da56 r69c4fe8 36 36 @echo ' (default when .config does not exist)' 37 37 @echo ' oldconfig - Update current config utilising a provided .configs base' 38 @echo ' wconfig - Same as "oldconfig", but also writes out hidden symbols' 38 39 @echo ' allmodconfig - New config selecting modules when possible' 39 40 @echo ' allnoconfig - New config where all options are answered with no' … … 83 84 84 85 oldconfig: .prereq_done 85 @${GMAKE_INV} oldconfig 86 @${GMAKE_INV} oldconfig W=-o 87 88 wconfig: .prereq_done 89 @${GMAKE_INV} oldconfig W=-A 86 90 87 91 cleandir: .prereq_done -
mk/build.mk
r5b4da56 r69c4fe8 138 138 oldconfig: $(CONFIG)/conf 139 139 -touch .config 140 $(CONFIG)/conf -o$(CONFIG_CONFIG_IN)140 $(CONFIG)/conf ${W} $(CONFIG_CONFIG_IN) 141 141 ${POSTCONFIG} 142 142 -
tools/config/conf.c
r5b4da56 r69c4fe8 13 13 #define LKC_DIRECT_LINK 14 14 #include "lkc.h" 15 16 extern int output_mode; 15 17 16 18 static void conf(struct menu *menu); … … 85 87 case ask_new: 86 88 case ask_silent: 87 if (sym_has_value(sym)) { 89 if (sym_has_value(sym) || 90 (output_mode && !(sym->flags & SYMBOL_WRITE))) { 88 91 printf("%s\n", def); 89 92 return; … … 491 494 if (ac > i && av[i][0] == '-') { 492 495 switch (av[i++][1]) { 496 case 'A': 497 output_mode = 1; 498 /* FALLTHROUGH */ 493 499 case 'o': 494 500 input_mode = ask_new; -
tools/config/confdata.c
r5b4da56 r69c4fe8 13 13 #define LKC_DIRECT_LINK 14 14 #include "lkc.h" 15 16 int output_mode = 0; 15 17 16 18 const char conf_def_filename[] = ".config"; … … 338 340 } else if (!(sym->flags & SYMBOL_CHOICE)) { 339 341 sym_calc_value(sym); 340 if (!(sym->flags & SYMBOL_WRITE) )342 if (!(sym->flags & SYMBOL_WRITE) && !output_mode) 341 343 goto next; 342 344 sym->flags &= ~SYMBOL_WRITE; -
tools/config/symbol.c
r5b4da56 r69c4fe8 11 11 #define LKC_DIRECT_LINK 12 12 #include "lkc.h" 13 14 extern int output_mode; 13 15 14 16 struct symbol symbol_yes = { … … 116 118 for_all_defaults(sym, prop) { 117 119 prop->visible.tri = expr_calc_value(prop->visible.expr); 118 if (prop->visible.tri != no )120 if (prop->visible.tri != no || output_mode) 119 121 return prop; 120 122 }
Note:
See TracChangeset
for help on using the changeset viewer.
