Skip to content

Commit

Permalink
artiq_flash: add --preinit-command for buildbot compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Jan 30, 2018
1 parent 2548e9d commit e1aafcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions artiq/frontend/artiq_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def get_argparser():
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="*",
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit e1aafcb

Please sign in to comment.