build/openfpgaloader: print command before executing it to ease debugging/manual tests.
This commit is contained in:
parent
63d72a87e6
commit
f46ef03f42
|
@ -41,6 +41,7 @@ class OpenFPGALoader(GenericProgrammer):
|
||||||
cmd = self.cmd + ["--bitstream", bitstream_file]
|
cmd = self.cmd + ["--bitstream", bitstream_file]
|
||||||
|
|
||||||
# Execute command.
|
# Execute command.
|
||||||
|
print(" ".join(cmd))
|
||||||
self.call(cmd)
|
self.call(cmd)
|
||||||
|
|
||||||
def flash(self, address, data_file, external=False, unprotect_flash=False, verify=False, **kwargs):
|
def flash(self, address, data_file, external=False, unprotect_flash=False, verify=False, **kwargs):
|
||||||
|
@ -72,6 +73,7 @@ class OpenFPGALoader(GenericProgrammer):
|
||||||
|
|
||||||
# Execute Command.
|
# Execute Command.
|
||||||
try:
|
try:
|
||||||
|
print(" ".join(cmd))
|
||||||
self.call(cmd)
|
self.call(cmd)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
print(' '.join(cmd))
|
print(' '.join(cmd))
|
||||||
|
|
Loading…
Reference in New Issue