Commit 6d5d5fc0 authored by Tristan Gingold's avatar Tristan Gingold

tools: use class attribute SUPPORTED_FILES directly.

parent bf6c6032
......@@ -79,7 +79,6 @@ class ToolDiamond(MakefileSyn):
def __init__(self):
super(ToolDiamond, self).__init__()
self._supported_files.update(ToolDiamond.SUPPORTED_FILES)
self._tcl_controls.update(ToolDiamond.TCL_CONTROLS)
def _makefile_syn_tcl(self):
......
......@@ -64,7 +64,6 @@ class ToolIcestorm(MakefileSyn):
def __init__(self):
super(ToolIcestorm, self).__init__()
self._supported_files.update(ToolIcestorm.SUPPORTED_FILES)
self._tcl_controls.update(ToolIcestorm.TCL_CONTROLS)
def _makefile_syn_top(self):
......
......@@ -125,7 +125,6 @@ $(TCL_CLOSE)'''
def __init__(self):
super(ToolISE, self).__init__()
self._supported_files.update(ToolISE.SUPPORTED_FILES)
self._tcl_controls.update(ToolISE.TCL_CONTROLS)
def _makefile_syn_top(self):
......
......@@ -76,7 +76,6 @@ class ToolLibero(MakefileSyn):
def __init__(self):
super(ToolLibero, self).__init__()
self._supported_files.update(ToolLibero.SUPPORTED_FILES)
self._tcl_controls.update(ToolLibero.TCL_CONTROLS)
def _makefile_syn_tcl(self):
......
......@@ -39,13 +39,13 @@ class ToolMakefile(object):
TOOL_INFO = {}
STANDARD_LIBS = []
CLEAN_TARGETS = {}
SUPPORTED_FILES = {}
def __init__(self):
super(ToolMakefile, self).__init__()
self._file = None
self._initialized = False
self._tcl_controls = {}
self._supported_files = {}
self.fileset = None
self.manifest_dict = {}
self._filename = "Makefile"
......@@ -64,7 +64,7 @@ class ToolMakefile(object):
def get_privative_files(self):
"""Get the privative format file types supported by the tool"""
return self._supported_files
return self.SUPPORTED_FILES
def makefile_setup(self, manifest_project_dict, fileset, filename=None):
"""Set the Makefile configuration"""
......
......@@ -94,7 +94,7 @@ endif""")
fileset_dict = {}
sources_list = []
fileset_dict.update(self.HDL_FILES)
fileset_dict.update(self._supported_files)
fileset_dict.update(self.SUPPORTED_FILES)
for filetype in fileset_dict:
file_list = []
for file_aux in self.fileset:
......
......@@ -61,5 +61,4 @@ class ToolPlanAhead(ToolXilinx):
def __init__(self):
super(ToolPlanAhead, self).__init__()
self._supported_files.update(ToolPlanAhead.SUPPORTED_FILES)
self._tcl_controls.update(ToolPlanAhead.TCL_CONTROLS)
......@@ -103,7 +103,6 @@ class ToolQuartus(MakefileSyn):
def __init__(self):
super(ToolQuartus, self).__init__()
self._supported_files.update(ToolQuartus.SUPPORTED_FILES)
self._tcl_controls.update(ToolQuartus.TCL_CONTROLS)
def _makefile_syn_top(self):
......
......@@ -60,6 +60,7 @@ class ToolVivado(ToolXilinx):
RAMFile: ToolXilinx._XILINX_SOURCE,
VHOFile: ToolXilinx._XILINX_SOURCE,
VEOFile: ToolXilinx._XILINX_SOURCE}
SUPPORTED_FILES.update(ToolXilinx.SUPPORTED_FILES)
HDL_FILES = {
VHDLFile: ToolXilinx._XILINX_SOURCE,
......@@ -81,5 +82,4 @@ class ToolVivado(ToolXilinx):
def __init__(self):
super(ToolVivado, self).__init__()
self._supported_files.update(ToolVivado.SUPPORTED_FILES)
self._tcl_controls.update(ToolVivado.TCL_CONTROLS)
......@@ -75,7 +75,6 @@ $(TCL_CLOSE)'''
def __init__(self):
super(ToolXilinx, self).__init__()
self._supported_files.update(ToolXilinx.SUPPORTED_FILES)
self._tcl_controls.update(ToolXilinx.TCL_CONTROLS)
def _get_properties(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment