equal
deleted
inserted
replaced
86 |
86 |
87 def build(self): |
87 def build(self): |
88 srcfiles = [] |
88 srcfiles = [] |
89 cflags = [] |
89 cflags = [] |
90 wholesrcdata = "" |
90 wholesrcdata = "" |
91 for Location, CFilesAndCFLAGS, DoCalls in self.CTRInstance.LocationCFilesAndCFLAGS: |
91 for _Location, CFilesAndCFLAGS, _DoCalls in self.CTRInstance.LocationCFilesAndCFLAGS: |
92 # Get CFiles list to give it to makefile |
92 # Get CFiles list to give it to makefile |
93 for CFile, CFLAGS in CFilesAndCFLAGS: |
93 for CFile, CFLAGS in CFilesAndCFLAGS: |
94 CFileName = os.path.basename(CFile) |
94 CFileName = os.path.basename(CFile) |
95 wholesrcdata += self.concat_deps(CFileName) |
95 wholesrcdata += self.concat_deps(CFileName) |
96 srcfiles.append(CFileName) |
96 srcfiles.append(CFileName) |
116 cmd = re.sub(r"[ ]+", " ", target.getCommand().strip()) |
116 cmd = re.sub(r"[ ]+", " ", target.getCommand().strip()) |
117 |
117 |
118 command = [token % beremizcommand for token in cmd.split(' ')] |
118 command = [token % beremizcommand for token in cmd.split(' ')] |
119 |
119 |
120 # Call Makefile to build PLC code and link it with target specific code |
120 # Call Makefile to build PLC code and link it with target specific code |
121 status, result, err_result = ProcessLogger(self.CTRInstance.logger, |
121 status, _result, _err_result = ProcessLogger(self.CTRInstance.logger, |
122 command).spin() |
122 command).spin() |
123 if status: |
123 if status: |
124 self.md5key = None |
124 self.md5key = None |
125 self.CTRInstance.logger.write_error(_("C compilation failed.\n")) |
125 self.CTRInstance.logger.write_error(_("C compilation failed.\n")) |
126 return False |
126 return False |
127 return True |
127 return True |