artiq_flash: add --preinit-command for buildbot compatibility

release-3
Sebastien Bourdeauducq 2018-01-30 17:35:48 +08:00
parent 2548e9d833
commit e1aafcbb4f
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,10 @@ Prerequisites:
help="target adapter, default: %(default)s")
parser.add_argument("--target-file", default=None,
help="use alternative OpenOCD target file")
parser.add_argument("-I", "--preinit-command", default=[], action="append",
help="add a pre-initialization OpenOCD command. "
"Useful for selecting a development board "
"when several are connected.")
parser.add_argument("-f", "--storage", help="write file to storage area")
parser.add_argument("-d", "--dir", help="look for files in this directory")
parser.add_argument("action", metavar="ACTION", nargs="*",
@ -84,6 +88,7 @@ def main():
conv = False
prog = []
prog.extend(opts.preinit_command)
prog.append("init")
for action in opts.action:
if action == "proxy":