mirror of https://github.com/m-labs/artiq.git
artiq_flash: ignore rtm_gateware on Sayma for variant autodetection
This commit is contained in:
parent
c2622297bd
commit
8d2c1be44f
|
@ -305,6 +305,11 @@ def main():
|
||||||
for entry in os.scandir(bin_dir):
|
for entry in os.scandir(bin_dir):
|
||||||
if entry.is_dir() and entry.name.startswith(prefix):
|
if entry.is_dir() and entry.name.startswith(prefix):
|
||||||
variants.append(entry.name[len(prefix):])
|
variants.append(entry.name[len(prefix):])
|
||||||
|
if args.target == "sayma":
|
||||||
|
try:
|
||||||
|
variants.remove("rtm_gateware")
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
if len(variants) == 0:
|
if len(variants) == 0:
|
||||||
raise FileNotFoundError("no variants found, did you install a board binary package?")
|
raise FileNotFoundError("no variants found, did you install a board binary package?")
|
||||||
elif len(variants) == 1:
|
elif len(variants) == 1:
|
||||||
|
|
Loading…
Reference in New Issue