From 287e03c09e34ec77d696fcd7ad55912cc127a859 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Fri, 13 Apr 2018 09:34:56 +0200 Subject: 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. --- 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 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: -- cgit 1.2.3-korg