forked from M-Labs/artiq
1
0
Fork 0

artiq_flash: ignore rtm_gateware on Sayma for variant autodetection

This commit is contained in:
Sebastien Bourdeauducq 2019-03-17 15:57:50 +08:00
parent c2622297bd
commit 8d2c1be44f
1 changed files with 5 additions and 0 deletions

View File

@ -305,6 +305,11 @@ def main():
for entry in os.scandir(bin_dir):
if entry.is_dir() and entry.name.startswith(prefix):
variants.append(entry.name[len(prefix):])
if args.target == "sayma":
try:
variants.remove("rtm_gateware")
except ValueError:
pass
if len(variants) == 0:
raise FileNotFoundError("no variants found, did you install a board binary package?")
elif len(variants) == 1: