aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-25 12:47:39 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-25 12:47:39 +0200
commit1f85a65078815b56bbb5581675b4f6e3253d8d9f (patch)
treeec48e9f100e8550442f27cdd819512e829789b7e /tools
parentUse vcs_tag to get version information (diff)
downloadsmolbote-1f85a65078815b56bbb5581675b4f6e3253d8d9f.tar.xz
Remove CMakeLists
Diffstat (limited to 'tools')
-rwxr-xr-xtools/config.py7
1 files changed, 6 insertions, 1 deletions
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)