summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-xlavalab-gen.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index 1d91f23..312dfd1 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -533,8 +533,12 @@ def main():
deviceinfo.write("DEVICE_GROUP=%s\n" % board["group"])
deviceinfo.close()
if "custom_option" in board:
- for coption in board["custom_option"]:
- device_line += "{%% %s %%}\n" % coption
+ if type(board["custom_option"]) == list:
+ for coption in board["custom_option"]:
+ device_line += "{%% %s %%}\n" % coption
+ else:
+ for line in board["custom_option"].splitlines():
+ device_line += "{%% %s %%}\n" % line
if not os.path.isdir(device_path):
os.mkdir(device_path)
if not os.path.isdir(devices_path):