forked from M-Labs/artiq
1
0
Fork 0

artiq_flash: sayma fixes

This commit is contained in:
Sebastien Bourdeauducq 2019-11-28 17:38:29 +08:00
parent 281133ef6e
commit da95bb54ae
1 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ def main():
variant_dir = args.target + "-" + variant variant_dir = args.target + "-" + variant
if args.target == "sayma": if args.target == "sayma":
if args.srcbuild: if args.srcbuild:
rtm_variant_dir = variant rtm_variant_dir = "rtm"
else: else:
rtm_variant_dir = "sayma-rtm" rtm_variant_dir = "sayma-rtm"
@ -414,7 +414,7 @@ def main():
gateware_bin = convert_gateware( gateware_bin = convert_gateware(
artifact_path(variant_dir, "gateware", "top.bit")) artifact_path(variant_dir, "gateware", "top.bit"))
programmer.write_binary(*config["gateware"], gateware_bin) programmer.write_binary(*config["gateware"], gateware_bin)
if args.target == "sayma" and variant != "master": if args.target == "sayma" and variant != "simplesatellite" and variant != "master":
rtm_gateware_bin = convert_gateware( rtm_gateware_bin = convert_gateware(
artifact_path(rtm_variant_dir, "gateware", "top.bit"), header=True) artifact_path(rtm_variant_dir, "gateware", "top.bit"), header=True)
programmer.write_binary(*config["rtm_gateware"], programmer.write_binary(*config["rtm_gateware"],