targets: update builds.

This commit is contained in:
Florent Kermarrec 2020-06-04 14:44:14 +02:00
parent 48304d0ad5
commit 091c39f248
5 changed files with 36 additions and 46 deletions

View File

@ -195,13 +195,13 @@ def main():
if not args.build and not args.load:
parser.print_help()
os.makedirs("build/gateware", exist_ok=True)
os.makedirs("build/ecpix5/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
os.system("cp usb3_core/daisho/usb3/*.init build/ecpix5/gateware/")
platform = ecpix5.Platform(toolchain="trellis")
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, output_dir="build", csr_csv="tools/csr.csv")
builder = Builder(soc, csr_csv="tools/csr.csv")
builder.build(run=args.build)
if args.load:

View File

@ -198,19 +198,16 @@ def main():
if not args.build and not args.load:
parser.print_help()
if args.build:
print("[build]...")
os.makedirs("build/kc705/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/kc705/gateware/")
platform = kc705.Platform()
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, csr_csv="tools/csr.csv")
builder.build()
os.makedirs("build/kc705/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/kc705/gateware/")
platform = kc705.Platform()
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, csr_csv="tools/csr.csv")
builder.build(run=args.build)
if args.load:
print("[load]...")
prog = soc.platform.create_programmer()
prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))

View File

@ -149,16 +149,14 @@ def main():
if not args.build and not args.load:
parser.print_help()
if args.build:
print("[build {}]...".format(args.device))
os.makedirs("build/netv2/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/netv2/gateware/")
platform = netv2.Platform(device=args.device)
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, csr_csv="tools/csr.csv")
builder.build()
os.makedirs("build/netv2/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/netv2/gateware/")
platform = netv2.Platform(device=args.device)
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, csr_csv="tools/csr.csv")
builder.build(run=args.build)
if args.load:
prog = soc.platform.create_programmer()

View File

@ -149,19 +149,16 @@ def main():
if not args.build and not args.load:
parser.print_help()
if args.build:
print("[build]...")
os.makedirs("build/pcie_screamer/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/pcie_screamer/gateware/")
platform = pcie_screamer.Platform()
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, csr_csv="tools/csr.csv")
builder.build()
os.makedirs("build/pcie_screamer/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/pcie_screamer/gateware/")
platform = pcie_screamer.Platform()
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, csr_csv="tools/csr.csv")
builder.build(run=args.build)
if args.load:
print("[load]...")
prog = soc.platform.create_programmer()
prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))

View File

@ -201,19 +201,17 @@ def main():
if not args.build and not args.load:
parser.print_help()
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 = versa_ecp5.Platform(toolchain="trellis")
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, output_dir="build", csr_csv="tools/csr.csv")
builder.build()
print("[build]...")
os.makedirs("build/versa_ecp5/gateware", exist_ok=True)
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
os.system("cp usb3_core/daisho/usb3/*.init build/versa_ecp5/gateware/")
platform = versa_ecp5.Platform(toolchain="trellis")
platform.add_extension(_usb3_io)
soc = USB3SoC(platform)
builder = Builder(soc, csr_csv="tools/csr.csv")
builder.build(run=args.build)
if args.load:
print("[load]...")
prog = soc.platform.create_programmer()
prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".svf"))