From fffd30e6ea060b2abebb7ba9cdf881da00ca4cb9 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 17 Sep 2017 04:23:40 +0200 Subject: Add 'imply' support This is like a 'select' that only changes the default value of a symbol, not limiting what values the user can set it to (with one exception: A symbol implied to 'y' can't be set to 'm'). Symbol.get_implied_symbols() was added, corresponding to Symbol.get_selected_symbols(), and Symbol.__str__() was extended to print implied symbols and weak reverse dependencies. Weak reverse dependencies are the 'imply' version of 'select's reverse dependencies. --- tests/Kdep | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/Kdep') diff --git a/tests/Kdep b/tests/Kdep index 9f23f94..87defaa 100644 --- a/tests/Kdep +++ b/tests/Kdep @@ -1,5 +1,11 @@ config D bool "D" + select D29 + imply D30 + +config DUMMY + select D31 if D + imply D32 if D # The symbols below depend on D in different ways @@ -122,6 +128,18 @@ config D27 config D28 bool "D28" if n || ((n != D) || n) +config D29 + tristate "D29" + +config D30 + tristate "D30" + +config D31 + tristate "D31" + +config D32 + tristate "D32" + # # Choices # -- cgit v1.2.3