forked from M-Labs/artiq
1
0
Fork 0

artiq_flash: do not flash RTM gateware on Sayma variants that don't need it

This commit is contained in:
Sebastien Bourdeauducq 2019-10-06 13:15:50 +08:00
parent bb5ff46f7d
commit 1bc5d44a7c
1 changed files with 3 additions and 2 deletions

View File

@ -424,8 +424,9 @@ def main():
programmer.write_binary(*config["firmware"], firmware_fbi)
elif action == "load":
if args.target == "sayma":
rtm_gateware_bit = artifact_path("rtm_gateware", "rtm.bit")
programmer.load(rtm_gateware_bit, 0)
if variant != "simplesatellite" and variant != "master":
rtm_gateware_bit = artifact_path("rtm_gateware", "rtm.bit")
programmer.load(rtm_gateware_bit, 0)
gateware_bit = artifact_path(variant_dir, "gateware", "top.bit")
programmer.load(gateware_bit, 1)
else: