From 8d2c1be44f872557da30facc19c61ee6f9640657 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 17 Mar 2019 15:57:50 +0800 Subject: [PATCH] artiq_flash: ignore rtm_gateware on Sayma for variant autodetection --- artiq/frontend/artiq_flash.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index bc6100589..db4d26f39 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -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: