summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-01-11 16:58:14 +0100
committerCorentin LABBE <clabbe@baylibre.com>2018-02-02 14:27:37 +0100
commit45449dafeb3a54c47e022dbb86ad4eb44ea71385 (patch)
treebb7e4ddc428329806a128fd487a7b1ae5ab64e7e
parent4278e548edc710a4432d3badadb9ae3644937a9c (diff)
Handle optional macaddr
Some boards need to have a macaddr set in uboot (like meson-gxl-s905x-libretech-cc) This patch add support for it.
-rwxr-xr-xlavalab-gen.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index 0e6408f..f8a5d95 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -101,6 +101,9 @@ def main(args):
elif b.has_key("connection_command"):
connection_command = b["connection_command"]
device_line += template_device_connection_command.substitute(connection_command=connection_command)
+ if b.has_key("macaddr"):
+ device_line += '{% set uboot_set_mac = true %}'
+ device_line += "{%% set uboot_mac_addr = '%s' %%}" % b["macaddr"]
if b.has_key("fastboot_serial_number"):
fserial = b["fastboot_serial_number"]
device_line += "{%% set fastboot_serial_number = '%s' %%}" % fserial