From 1f85a65078815b56bbb5581675b4f6e3253d8d9f Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 25 Oct 2018 12:47:39 +0200 Subject: Remove CMakeLists --- tools/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/config.py b/tools/config.py index 96c4576..9283fd8 100755 --- a/tools/config.py +++ b/tools/config.py @@ -53,7 +53,12 @@ def main(args): def writeItem(node, gen): while node: if isinstance(node.item, kconfiglib.Symbol): - gen.write("#define CONFIG_{0} \"{1}\"\n".format(node.item.name, node.item.str_value)) + if node.item.str_value == 'y': + gen.write("#define CONFIG_{0}\n".format(node.item.name)) + elif node.item.str_value == 'n': + gen.write("#undef CONFIG_{0}\n".format(node.item.name)) + else: + gen.write("#define CONFIG_{0} \"{1}\"\n".format(node.item.name, node.item.str_value)) if node.list: writeItem(node.list, gen) -- cgit v1.2.1