diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-12-07 10:09:59 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-12-07 16:56:06 +0100 |
commit | 4f73f1ec41424069ef068aa8c39169f166c80812 (patch) | |
tree | f844d38573c17658ae7a0655326ac5baa11f33e5 /lavalab-gen.py | |
parent | 19fe02f7a341e302e3ad560fcb4cc872f2201a5c (diff) |
lavalab-gen.py: ease to use alternate uart than ser2net
When someone want to use screen/conmux for a board, the current situation imply
to adds use_ser2net = False.
This patchs remove this need.
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index f52805e..1d91f23 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -465,7 +465,7 @@ def main(): if not "bind_dev" in slave: dc_devices.append("/dev/%s:/dev/%s" % (board_name, board_name)) use_conmux = False - use_ser2net = True + use_ser2net = False use_screen = False if "use_screen" in uart: use_screen = uart["use_screen"] @@ -476,6 +476,8 @@ 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: + use_ser2net = True if use_conmux: conmuxline = template_conmux.substitute(board=board_name, baud=baud) device_line += template_device_conmux.substitute(board=board_name) |