diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-04-13 09:34:56 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-04-13 09:34:56 +0200 |
commit | 287e03c09e34ec77d696fcd7ad55912cc127a859 (patch) | |
tree | 74a361f40db3149eeecc6e468933c9ca968358ca /lavalab-gen.py | |
parent | 9b618eb08b00cf6a84b157c462025b22c951a4b2 (diff) |
Permit to add custom option in board files
Some board need some jinja options (ex: nanopik2 need use_vendor_uboot) but
adding all possible options is not worth the cost.
So this patch adds a custom way to add option to board file.
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index 08e2649..037b5ff 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -125,6 +125,9 @@ def main(): if "fastboot_serial_number" in b: fserial = b["fastboot_serial_number"] device_line += "{%% set fastboot_serial_number = '%s' %%}" % fserial + if "custom_option" in b: + for coption in b["custom_option"]: + device_line += "{%% %s %%}" % coption # board specific hacks if devicetype == "qemu" and not use_kvm: |