From bb33eed5cc6bdce2b65aa570ecd9a400bcd9c180 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 25 May 2019 13:52:09 +0200 Subject: Strip direct deps. from property conditions in Symbol/Choice/MenuNode.__str__() Commit e81a77b ("Consistently put direct deps. last when propagating") makes the position of the direct deps. in property conditions predictable after dependency propagation, making it easy to strip them as needed. Use this to implement MenuNode.orig_{prompt,defaults,selects,implies,ranges}, which work like the non-orig_* versions but omit the direct deps. Use those in turn to omit the direct deps in Symbol/Choice.__str__(). The direct deps. (with propagated parent deps.) can still be seen after 'depends on ...', so there is no loss of information. This unclutters Kconfig definitions shown in menuconfig/guiconfig and in any generated documentation. The old output also had duplicated dependencies, though it doesn't matter for evaluation. Before: config A bool prompt "A" if DEP default y if FOO && DEP depends on DEP After: config A bool prompt "A" default y if FOO depends on DEP --- examples/find_symbol.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/find_symbol.py b/examples/find_symbol.py index 132d45f..f747103 100644 --- a/examples/find_symbol.py +++ b/examples/find_symbol.py @@ -42,8 +42,8 @@ # # config OPROFILE_EVENT_MULTIPLEX # bool -# prompt "OProfile multiplexing support (EXPERIMENTAL)" if OPROFILE && X86 -# default "n" if OPROFILE && X86 +# prompt "OProfile multiplexing support (EXPERIMENTAL)" +# default "n" # depends on OPROFILE && X86 # help # The number of hardware counters is limited. The multiplexing @@ -57,9 +57,9 @@ # # config OPROFILE # tristate -# prompt "OProfile system profiling" if PROFILING && HAVE_OPROFILE -# select RING_BUFFER if PROFILING && HAVE_OPROFILE -# select RING_BUFFER_ALLOW_SWAP if PROFILING && HAVE_OPROFILE +# prompt "OProfile system profiling" +# select RING_BUFFER +# select RING_BUFFER_ALLOW_SWAP # depends on PROFILING && HAVE_OPROFILE # help # OProfile is a profiling system capable of profiling the -- cgit v1.2.3