build.plat: batch files use EQU, not EQ.
authorwhitequark <cz@m-labs.hk>
Sun, 13 Oct 2019 21:45:56 +0000 (21:45 +0000)
committerwhitequark <cz@m-labs.hk>
Sun, 13 Oct 2019 21:45:56 +0000 (21:45 +0000)
nmigen/build/plat.py

index b99715b1056e420aa5f897c7e25c5a426bdeac75..7c7bd0f7e052832bc98d5855008a5cc1f99fdd3d 100644 (file)
@@ -295,8 +295,8 @@ class TemplatedPlatform(Platform):
                     template = ": ${{{env_var}:={name}}}"
                 elif syntax == "bat":
                     template = \
-                        "if [%{env_var}%] eq [\"\"] set {env_var}=\n" \
-                        "if [%{env_var}%] eq [] set {env_var}={name}"
+                        "if [%{env_var}%] equ [\"\"] set {env_var}=\n" \
+                        "if [%{env_var}%] equ [] set {env_var}={name}"
                 else:
                     assert False
                 commands.append(template.format(env_var=env_var, name=name))