History

kconfig: recalc symbol value before showing search results

A symbol's value won't be recalc-ed until we save config file or enter the menu where the symbol sits. So If I enable OPTIMIZE_FOR_SIZE, and search FUNCTION_GRAPH_TRACER: Symbol: FUNCTION_GRAPH_TRACER [=y] Prompt: Kernel Function Graph Tracer Defined at kernel/trace/Kconfig:140 Depends on: ... [=y] && (!X86_32 [=y] || !CC_OPTIMIZE_FOR_SIZE [=y]) ... From the dependency it should result in FUNCTION_GRAPH_TRACER=n, but it still shows FUNCTION_GRAPH_TRACER=y.

Li Zefan committed 16 years ago

Commit da6df871 parent 52b80021 file · +1 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/symbol.c+1−0
@@ -755,6 +755,7 @@ struct symbol **sym_re_search(const char *pattern) · 754 unmodified lines
755755 return NULL;
756756 }
757757 }
758+ sym_calc_value(sym);
758759 sym_arr[cnt++] = sym;
759760 }
760761 if (sym_arr)