diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-05-25 13:52:09 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-05-25 16:18:29 +0200 |
| commit | bb33eed5cc6bdce2b65aa570ecd9a400bcd9c180 (patch) | |
| tree | d0a1a5681a6ec5d9ac25407e9594aa6022fb5969 /tests/Kdepcopy | |
| parent | e81a77bdb0687b62f91d7dc4d5b84b443808c0a7 (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 'tests/Kdepcopy')
0 files changed, 0 insertions, 0 deletions
