From fc85fdd178fa6711cb9055128fdc71df9ba86dd7 Mon Sep 17 00:00:00 2001 From: Andrew Dennison Date: Thu, 1 Feb 2024 15:51:30 +1100 Subject: [PATCH] build/openfpgaloader: support args with '-' many openfpgaloader args have a name with '-' as per normal convention. This kwarg now works: file_type="raw" --- litex/build/openfpgaloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/build/openfpgaloader.py b/litex/build/openfpgaloader.py index 21e704bf4..8b41d3093 100644 --- a/litex/build/openfpgaloader.py +++ b/litex/build/openfpgaloader.py @@ -66,7 +66,7 @@ class OpenFPGALoader(GenericProgrammer): # 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))