mirror of
https://github.com/enjoy-digital/usb3_pipe.git
synced 2025-01-04 10:18:41 +08:00
targets: print help when no build or load action
This commit is contained in:
parent
107cca8428
commit
c85fb39547
3
kc705.py
3
kc705.py
@ -200,6 +200,9 @@ def main():
|
||||
parser.add_argument("--load", action="store_true", help="load bitstream (to SRAM)")
|
||||
args = parser.parse_args()
|
||||
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
if args.build:
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
|
||||
|
3
netv2.py
3
netv2.py
@ -151,6 +151,9 @@ def main():
|
||||
parser.add_argument("--device", default="xc7a35t", help="FPGA device (xc7a35t (default) or xc7a100t)")
|
||||
args = parser.parse_args()
|
||||
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
if args.build:
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
|
||||
|
@ -151,6 +151,9 @@ def main():
|
||||
parser.add_argument("--load", action="store_true", help="load bitstream (to SRAM)")
|
||||
args = parser.parse_args()
|
||||
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
if args.build:
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
|
||||
|
@ -215,6 +215,9 @@ def main():
|
||||
parser.add_argument("--load", action="store_true", help="load bitstream (to SRAM)")
|
||||
args = parser.parse_args()
|
||||
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
if args.build:
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
|
||||
|
Loading…
x
Reference in New Issue
Block a user