# HG changeset patch # User Edouard Tisserant # Date 1321735954 -3600 # Node ID cd7ccbbbf47191bfa7955cee62225559a4078def # Parent b4eae24d05bfcbbc16d23f54bdb976cb193c8034 various cleanups in /targets diff -r b4eae24d05bf -r cd7ccbbbf471 targets/Linux/__init__.py --- a/targets/Linux/__init__.py Fri Nov 18 23:54:03 2011 +0100 +++ b/targets/Linux/__init__.py Sat Nov 19 21:52:34 2011 +0100 @@ -1,4 +1,4 @@ -from .. import toolchain_gcc +from ..toolchain_gcc import toolchain_gcc class Linux_target(toolchain_gcc): extension = ".so" diff -r b4eae24d05bf -r cd7ccbbbf471 targets/Rtai/XSD --- a/targets/Rtai/XSD Fri Nov 18 23:54:03 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ - - - - %(toolchain_gcc)s - - - \ No newline at end of file diff -r b4eae24d05bf -r cd7ccbbbf471 targets/Rtai/__init__.py --- a/targets/Rtai/__init__.py Fri Nov 18 23:54:03 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -from target_rtai import * \ No newline at end of file diff -r b4eae24d05bf -r cd7ccbbbf471 targets/Rtai/target_rtai.py --- a/targets/Rtai/target_rtai.py Fri Nov 18 23:54:03 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -class rtai_target(targets.target_gcc): - extensionexe = "exe" - extensiondll = "dll" diff -r b4eae24d05bf -r cd7ccbbbf471 targets/Win32/__init__.py --- a/targets/Win32/__init__.py Fri Nov 18 23:54:03 2011 +0100 +++ b/targets/Win32/__init__.py Sat Nov 19 21:52:34 2011 +0100 @@ -1,4 +1,4 @@ -from .. import toolchain_gcc +from ..toolchain_gcc import toolchain_gcc class Win32_target(toolchain_gcc): extension = ".dll" diff -r b4eae24d05bf -r cd7ccbbbf471 targets/Xenomai/__init__.py --- a/targets/Xenomai/__init__.py Fri Nov 18 23:54:03 2011 +0100 +++ b/targets/Xenomai/__init__.py Sat Nov 19 21:52:34 2011 +0100 @@ -1,5 +1,4 @@ -from .. import toolchain_gcc -from wxPopen import ProcessLogger +from ..toolchain_gcc import toolchain_gcc class Xenomai_target(toolchain_gcc): extension = ".so" @@ -7,6 +6,7 @@ """ Get xeno-config from target parameters """ xeno_config=self.PluginsRootInstance.GetTarget().getcontent()["value"].getXenoConfig() if xeno_config: + from wxPopen import ProcessLogger status, result, err_result = ProcessLogger(self.PluginsRootInstance.logger, xeno_config + " --skin=native --"+flagsname, no_stdout=True).spin() diff -r b4eae24d05bf -r cd7ccbbbf471 targets/__init__.py --- a/targets/__init__.py Fri Nov 18 23:54:03 2011 +0100 +++ b/targets/__init__.py Sat Nov 19 21:52:34 2011 +0100 @@ -34,8 +34,14 @@ _base_path = path.split(__file__)[0] -targets = [name for name in listdir(_base_path) if path.isdir(path.join(_base_path, name)) and name.upper() != "CVS" and not name.startswith("__")] -toolchains = [name for name in listdir(_base_path) if not path.isdir(path.join(_base_path, name)) and name.upper() != "CVS" and name.endswith(".py") and not name.startswith("__") and not name.endswith(".pyc")] +targets = [name for name in listdir(_base_path) + if path.isdir(path.join(_base_path, name)) + and not name.startswith("__")] +toolchains = [name for name in listdir(_base_path) + if not path.isdir(path.join(_base_path, name)) + and name.endswith(".py") + and not name.startswith("__") + and not name.endswith(".pyc")] DictXSD_toolchain = {} DictXSD_target = {} @@ -74,5 +80,3 @@ filename = path.join(path.split(__file__)[0],name + ".c") return open(filename).read() -from toolchain_gcc import toolchain_gcc -from toolchain_makefile import toolchain_makefile \ No newline at end of file