aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2019-12-05 16:22:08 +0100
committerCorentin LABBE <clabbe@baylibre.com>2020-01-16 11:43:12 +0100
commit694f774c113da4e2b15fead6b3e19ac95a9528bd (patch)
tree8ecba074d00c30ea42125a41ca15fe17effc67d2
parenta681d6e6e7d11743b6d893a68dc98347c68b779c (diff)
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.
-rw-r--r--README.md4
-rwxr-xr-xlavalab-gen.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index e2d531c..5898e10 100644
--- a/README.md
+++ b/README.md
@@ -309,8 +309,10 @@ boards:
kvm: (For qemu only) Does the qemu could use KVM (default: no)
uboot_ipaddr: (optional) a static IP to set in uboot
uboot_macaddr: (Optional) the MAC address to set in uboot
- custom_option: (optional) All following strings will be directly append to devicefile
+ custom_option: (optional) All following strings will be directly append to devicefile included in {% opt %}
- "set x=1"
+ raw_custom_option: (optional) All following strings will be directly append to devicefile
+ - "{% set x=1 %}"
tags: (optional) List of tag to set on this device
- tag1
- tag2
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):