From 694f774c113da4e2b15fead6b3e19ac95a9528bd Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Thu, 5 Dec 2019 16:22:08 +0100 Subject: Add raw_custom_option For some options we need to not have the space around them, like ones needing "-%}" or coments. Introduce raw_custom_option for such cases. --- lavalab-gen.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lavalab-gen.py') diff --git a/lavalab-gen.py b/lavalab-gen.py index 0c7f726..a766e5f 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -743,6 +743,9 @@ def main(): else: for line in board["custom_option"].splitlines(): device_line += "{%% %s %%}\n" % line + if "raw_custom_option" in board: + for coption in board["raw_custom_option"]: + device_line += "%s\n" % coption if not os.path.isdir(device_path): os.mkdir(device_path) if not os.path.isdir(devices_path): -- cgit 1.2.3-korg