artiq_flash: ignore checking non-RTM artifacts if unused

This commit is contained in:
Harry Ho 2021-11-18 16:42:51 +08:00 committed by Sébastien Bourdeauducq
parent 20e079a381
commit b49f813b17

View File

@ -362,7 +362,10 @@ def main():
variants.remove("rtm")
except ValueError:
pass
if len(variants) == 0:
if all(action in ["rtm_gateware", "storage", "rtm_load", "erase", "start"]
for action in args.action) and args.action:
pass
elif len(variants) == 0:
raise FileNotFoundError("no variants found, did you install a board binary package?")
elif len(variants) == 1:
variant = variants[0]