summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.py
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2019-06-27 16:26:04 -0700
committerGitHub <noreply@github.com>2019-06-27 16:26:04 -0700
commitc0be09b6ddfd855eeadb3628a481f9c0bb4e26b7 (patch)
treebbe706a7ad9df904529415efb2052bd2e1396f14 /lavalab-gen.py
parentb9e4d31719373b52c7113d0e8a960332fd8ef8c6 (diff)
parentd791251fbc4a739f4479a358544d434540c0b02a (diff)
Merge pull request #95 from montjoie/pre-2019.05
Pre 2019.05
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-xlavalab-gen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index 0e8c018..b3f096a 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -573,7 +573,7 @@ def main():
if (use_conmux and use_ser2net) or (use_conmux and use_screen) or (use_screen and use_ser2net):
print("ERROR: Only one uart handler must be configured")
sys.exit(1)
- if not use_conmux and not use_screen and not use_ser2net:
+ if not use_conmux and not use_screen and not use_ser2net and not "connection_command" in board:
use_ser2net = True
if use_conmux:
conmuxline = template_conmux.substitute(board=board_name, baud=baud)
@@ -601,7 +601,7 @@ def main():
fp = open("%s/lava-screen.conf" % workerdir, "a")
fp.write("%s\n" % board_name)
fp.close()
- elif "connection_command" in board:
+ if "connection_command" in board:
connection_command = board["connection_command"]
device_line += template_device_connection_command.substitute(connection_command=connection_command)
if "uboot_ipaddr" in board: