build/openfpgaloader: print command before executing it to ease debugging/manual tests.

This commit is contained in:
Florent Kermarrec 2024-06-18 15:35:27 +02:00
parent 63d72a87e6
commit f46ef03f42
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class OpenFPGALoader(GenericProgrammer):
cmd = self.cmd + ["--bitstream", bitstream_file]
# Execute command.
print(" ".join(cmd))
self.call(cmd)
def flash(self, address, data_file, external=False, unprotect_flash=False, verify=False, **kwargs):
@ -72,6 +73,7 @@ class OpenFPGALoader(GenericProgrammer):
# Execute Command.
try:
print(" ".join(cmd))
self.call(cmd)
except OSError as e:
print(' '.join(cmd))