mibuild/xilinx_vivado: fix list aliasing problem
authorSebastien Bourdeauducq <sb@m-labs.hk>
Sun, 21 Dec 2014 09:37:11 +0000 (17:37 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sun, 21 Dec 2014 09:37:11 +0000 (17:37 +0800)
mibuild/xilinx_vivado.py

index 9e9dc05edc856277c742255a07ffa5957f1a4c27..5699deba58ab913e7ff9e688a6b2526da7c9464f 100644 (file)
@@ -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)