Skip to content

Commit

Permalink
build/openfpgaloader: support args with '-'
Browse files Browse the repository at this point in the history
many openfpgaloader args have a name with '-' as per normal convention.

This kwarg now works: file_type="raw"
  • Loading branch information
Andrew Dennison committed Feb 1, 2024
1 parent afe7b93 commit fc85fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/build/openfpgaloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def flash(self, address, data_file, external=False, unprotect_flash=False, verif

# Handle kwargs for specific, less common cases.
for key, value in kwargs.items():
cmd.append(f"--{key}")
cmd.append(f"--{key.replace('_', '-')}")
if value is not None:
cmd.append(str(value))

Expand Down

0 comments on commit fc85fdd

Please sign in to comment.