kconfig: recalc symbol value before showing search results
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 19 Mar 2010 06:57:47 +0000 (14:57 +0800)
committerMichal Marek <mmarek@suse.cz>
Tue, 23 Mar 2010 11:29:07 +0000 (12:29 +0100)
commitda6df879b9f88d2224174a9e4e76dc0e42e47ebc
tree38e455e5c3e494cdadf0cb98747ffcdd98179ae7
parent52b80025ebaa992688959b4cb2cd86c7e805b70f
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>
scripts/kconfig/symbol.c