aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2010-03-19 02:57:47 -0400
committerMichal Marek <mmarek@suse.cz>2010-03-23 07:29:07 -0400
commitda6df879b9f88d2224174a9e4e76dc0e42e47ebc (patch)
tree38e455e5c3e494cdadf0cb98747ffcdd98179ae7 /scripts
parent52b80025ebaa992688959b4cb2cd86c7e805b70f (diff)
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. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/symbol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 9ee3923117ee..2e7a048e0cfc 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -755,6 +755,7 @@ struct symbol **sym_re_search(const char *pattern)
755 return NULL; 755 return NULL;
756 } 756 }
757 } 757 }
758 sym_calc_value(sym);
758 sym_arr[cnt++] = sym; 759 sym_arr[cnt++] = sym;
759 } 760 }
760 if (sym_arr) 761 if (sym_arr)