build: make sure to create build/gateware directory if not existing

This commit is contained in:
Florent Kermarrec 2020-01-16 16:38:45 +01:00
parent ab55a49da3
commit 36ae5c8bb6
4 changed files with 5 additions and 1 deletions

View File

@ -207,6 +207,7 @@ def main():
if args.build:
print("[build]...")
os.makedirs("build/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
platform = kc705.Platform()

View File

@ -158,6 +158,7 @@ def main():
if args.build:
print("[build {}]...".format(args.device))
os.makedirs("build/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
platform = netv2.Platform(device=args.device)

View File

@ -158,6 +158,7 @@ def main():
if args.build:
print("[build]...")
os.makedirs("build/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
platform = pcie_screamer.Platform()

View File

@ -221,7 +221,8 @@ def main():
parser.print_help()
if args.build:
print("[build ({})]...".format(args.device))
print("[build]...")
os.makedirs("build/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
platform = versa_ecp5.Platform(toolchain="trellis")