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] 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))