summaryrefslogtreecommitdiff
path: root/examples/find_symbol.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-05-25 13:52:09 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-05-25 16:18:29 +0200
commitbb33eed5cc6bdce2b65aa570ecd9a400bcd9c180 (patch)
treed0a1a5681a6ec5d9ac25407e9594aa6022fb5969 /examples/find_symbol.py
parente81a77bdb0687b62f91d7dc4d5b84b443808c0a7 (diff)
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
Diffstat (limited to 'examples/find_symbol.py')
-rw-r--r--examples/find_symbol.py10
1 files changed, 5 insertions, 5 deletions
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