Skip to content

Commit

Permalink
Add uart keywords definition
Browse files Browse the repository at this point in the history
Signed-off-by: Corentin LABBE <[email protected]>
  • Loading branch information
montjoie committed Jan 23, 2023
1 parent 56a03a1 commit 7f7ab2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lavalab-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@ def main():
if devicetype == "qemu" and not use_kvm:
device_line += "{% set no_kvm = True %}\n"
if "uart" in board:
keywords_uart = [ "baud", "devpath", "idproduct", "idvendor", "interfacenum", "serial", "use_ser2net", "worker" ]
for keyword in board["uart"]:
if not keyword in keywords_uart:
print("WARNING: unknown keyword %s" % keyword)
uart = board["uart"]
baud = board["uart"].get("baud", baud_default)
idvendor = board["uart"]["idvendor"]
Expand Down

0 comments on commit 7f7ab2b

Please sign in to comment.