--- a/targets/toolchain_gcc.py Mon Mar 23 16:20:05 2009 +0100
+++ b/targets/toolchain_gcc.py Mon Mar 23 16:26:13 2009 +0100
@@ -10,11 +10,11 @@
It cannot be used as this and should be inherited in a target specific
class such as target_linux or target_win32
- def __init__(self, PuginsRootInstance):
- self.PuginsRootInstance = PuginsRootInstance
- self.logger = PuginsRootInstance.logger
- self.exe = PuginsRootInstance.GetProjectName() + self.extension
- self.buildpath = PuginsRootInstance._getBuildPath()
+ def __init__(self, PluginsRootInstance): + self.PluginsRootInstance = PluginsRootInstance + self.logger = PluginsRootInstance.logger + self.exe = PluginsRootInstance.GetProjectName() + self.extension + self.buildpath = PluginsRootInstance._getBuildPath() self.exe_path = os.path.join(self.buildpath, self.exe)
@@ -23,14 +23,14 @@
Returns list of builder specific CFLAGS
- return [self.PuginsRootInstance.BeremizRoot.getTargetType().getcontent()["value"].getCFLAGS()]
+ return [self.PluginsRootInstance.BeremizRoot.getTargetType().getcontent()["value"].getCFLAGS()] def getBuilderLDFLAGS(self):
Returns list of builder specific LDFLAGS
- return self.PuginsRootInstance.LDFLAGS + \
- [self.PuginsRootInstance.BeremizRoot.getTargetType().getcontent()["value"].getLDFLAGS()]
+ return self.PluginsRootInstance.LDFLAGS + \ + [self.PluginsRootInstance.BeremizRoot.getTargetType().getcontent()["value"].getLDFLAGS()] @@ -78,7 +78,7 @@
# Retrieve toolchain user parameters
- toolchain_params = self.PuginsRootInstance.BeremizRoot.getTargetType().getcontent()["value"]
+ toolchain_params = self.PluginsRootInstance.BeremizRoot.getTargetType().getcontent()["value"] self.compiler = toolchain_params.getCompiler()
self.linker = toolchain_params.getLinker()
@@ -87,13 +87,13 @@
######### GENERATE OBJECT FILES ########################################
- for Location, CFilesAndCFLAGS, DoCalls in self.PuginsRootInstance.LocationCFilesAndCFLAGS:
+ for Location, CFilesAndCFLAGS, DoCalls in self.PluginsRootInstance.LocationCFilesAndCFLAGS: - self.logger.write("Plugin : " + self.PuginsRootInstance.GetChildByIECLocation(Location).GetCurrentName() + " " + str(Location)+"\n")
+ self.logger.write("Plugin : " + self.PluginsRootInstance.GetChildByIECLocation(Location).GetCurrentName() + " " + str(Location)+"\n") self.logger.write("PLC :\n")
for CFile, CFLAGS in CFilesAndCFLAGS:
bn = os.path.basename(CFile)
obn = os.path.splitext(bn)[0]+".o"
@@ -115,6 +115,7 @@
self.logger.write_error("C compilation of "+ bn +" failed.\n")