forked from M-Labs/artiq
artiq_flash: add --preinit-command for buildbot compatibility
This commit is contained in:
parent
2548e9d833
commit
e1aafcbb4f
@ -51,6 +51,10 @@ Prerequisites:
|
|||||||
help="target adapter, default: %(default)s")
|
help="target adapter, default: %(default)s")
|
||||||
parser.add_argument("--target-file", default=None,
|
parser.add_argument("--target-file", default=None,
|
||||||
help="use alternative OpenOCD target file")
|
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("-f", "--storage", help="write file to storage area")
|
||||||
parser.add_argument("-d", "--dir", help="look for files in this directory")
|
parser.add_argument("-d", "--dir", help="look for files in this directory")
|
||||||
parser.add_argument("action", metavar="ACTION", nargs="*",
|
parser.add_argument("action", metavar="ACTION", nargs="*",
|
||||||
@ -84,6 +88,7 @@ def main():
|
|||||||
conv = False
|
conv = False
|
||||||
|
|
||||||
prog = []
|
prog = []
|
||||||
|
prog.extend(opts.preinit_command)
|
||||||
prog.append("init")
|
prog.append("init")
|
||||||
for action in opts.action:
|
for action in opts.action:
|
||||||
if action == "proxy":
|
if action == "proxy":
|
||||||
|
Loading…
Reference in New Issue
Block a user