From 2a88c0cc5707eb0761d87cfd2ca171ce687258fc Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 16 Feb 2018 10:05:16 +0100 Subject: Include direct deps. in Symbol/Choice.__str__() Direct dependencies are significant for 'imply' even if the symbol has no properties, so they need to be included to get semantically equivalent output. Making the direct dependencies clear is helpful in general too, even if you can usually infer them from the properties they get propagated to. --- kconfiglib.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index eaa9af8..a05a079 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4035,6 +4035,9 @@ def _sym_choice_str(sc): imply_string += " if " + expr_str(cond) indent_add(imply_string) + if node.dep is not sc.kconfig.y: + indent_add("depends on " + expr_str(node.dep)) + if node.help is not None: indent_add("help") for line in node.help.splitlines(): -- cgit v1.2.3