From 018f10b1c57760071fd20cd052b1eff5ec32ecd7 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Thu, 12 Apr 2018 11:53:43 +0200 Subject: Add uboot_ipaddr Some boards have broken uboot dhcp, so we need to set a static ip in uboot. This patch add a way to specify such IP via uboot_ipaddr. --- lavalab-gen.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lavalab-gen.py') diff --git a/lavalab-gen.py b/lavalab-gen.py index 6e9a547..d01ccb1 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -117,6 +117,8 @@ def main(): elif "connection_command" in b: connection_command = b["connection_command"] device_line += template_device_connection_command.substitute(connection_command=connection_command) + if "uboot_ipaddr" in b: + device_line += "{%% set uboot_ipaddr_cmd = 'setenv ipaddr %s' %%}\n" % b["uboot_ipaddr"] if "macaddr" in b: device_line += '{% set uboot_set_mac = true %}' device_line += "{%% set uboot_mac_addr = '%s' %%}" % b["macaddr"] -- cgit 1.2.3-korg