build.plat: NMIGEN_<toolchain>_env→NMIGEN_ENV_<toolchain>

This is more consistent with other environment variables nMigen uses.
This commit is contained in:
whitequark 2019-09-21 12:23:53 +00:00
parent 2dc6ae4ac5
commit 07a82ed70e
5 changed files with 6 additions and 6 deletions

View file

@ -62,7 +62,7 @@ class Platform(ResourceManager, metaclass=ABCMeta):
@property
def _toolchain_env_var(self):
return f"NMIGEN_{self.toolchain}_env"
return f"NMIGEN_ENV_{self.toolchain}"
def build(self, elaboratable, name="top",
build_dir="build", do_build=True,

View file

@ -18,7 +18,7 @@ class LatticeECP5Platform(TemplatedPlatform):
* ``ecppack``
The environment is populated by running the script specified in the environment variable
``NMIGEN_Trellis_env``, if present.
``NMIGEN_ENV_Trellis``, if present.
Available overrides:
* ``verbose``: enables logging of informational messages to standard error.
@ -46,7 +46,7 @@ class LatticeECP5Platform(TemplatedPlatform):
* ``ddtcmd``
The environment is populated by running the script specified in the environment variable
``NMIGEN_Diamond_env``, if present.
``NMIGEN_ENV_Diamond``, if present.
Available overrides:
* ``script_project``: inserts commands before ``prj_project save`` in Tcl script.

View file

@ -15,7 +15,7 @@ class LatticeICE40Platform(TemplatedPlatform):
* ``icepack``
The environment is populated by running the script specified in the environment variable
``NMIGEN_IceStorm_env``, if present.
``NMIGEN_ENV_IceStorm``, if present.
Available overrides:
* ``verbose``: enables logging of informational messages to standard error.

View file

@ -13,7 +13,7 @@ class Xilinx7SeriesPlatform(TemplatedPlatform):
* ``vivado``
The environment is populated by running the script specified in the environment variable
``NMIGEN_Vivado_env``, if present.
``NMIGEN_ENV_Vivado``, if present.
Available overrides:
* ``script_after_read``: inserts commands after ``read_xdc`` in Tcl script.

View file

@ -21,7 +21,7 @@ class XilinxSpartan3Or6Platform(TemplatedPlatform):
* ``bitgen``
The environment is populated by running the script specified in the environment variable
``NMIGEN_ISE_env``, if present.
``NMIGEN_ENV_ISE``, if present.
Available overrides:
* ``script_after_run``: inserts commands after ``run`` in XST script.