From: Sebastien Bourdeauducq Date: Sun, 21 Dec 2014 09:37:11 +0000 (+0800) Subject: mibuild/xilinx_vivado: fix list aliasing problem X-Git-Tag: 24jan2021_ls180~2099^2~255 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fca1dd4dc4fa709e54b17bb9784e497c9a6a00c;p=litex.git mibuild/xilinx_vivado: fix list aliasing problem --- diff --git a/mibuild/xilinx_vivado.py b/mibuild/xilinx_vivado.py index 9e9dc05e..5699deba 100644 --- a/mibuild/xilinx_vivado.py +++ b/mibuild/xilinx_vivado.py @@ -89,8 +89,11 @@ def _run_vivado(build_name, vivado_path, source, ver=None): raise OSError("Subprocess failed") class XilinxVivadoPlatform(xilinx_common.XilinxGenericPlatform): - bitstream_commands = [] - additional_commands = [] + def __init__(self, *args, **kwargs): + xilinx_common.XilinxGenericPlatform.__init__(self, *args, **kwargs) + self.bitstream_commands = [] + self.additional_commands = [] + def build(self, fragment, build_dir="build", build_name="top", vivado_path="/opt/Xilinx/Vivado", source=True, run=True): tools.mkdir_noerror(build_dir)