targets/toolchain_makefile.py
changeset 1543 61f0f31ef296
parent 1511 91538d0c242c
child 1549 f526fd97a7b0
equal deleted inserted replaced
1542:0535a6b50534 1543:61f0f31ef296
   120                               "cflags": ' '.join(cflags),
   120                               "cflags": ' '.join(cflags),
   121                               "md5": self.md5key,
   121                               "md5": self.md5key,
   122                               "buildpath": self.buildpath
   122                               "buildpath": self.buildpath
   123                              }
   123                              }
   124             
   124             
   125             command = [ token % beremizcommand for token in target.getCommand().split(' ')]
   125             # clean sequence of multiple whitespaces 
       
   126             cmd = re.sub(r"[ ]+", " ", target.getCommand())
       
   127 
       
   128             command = [ token % beremizcommand for token in cmd.split(' ')]
   126 
   129 
   127             # Call Makefile to build PLC code and link it with target specific code
   130             # Call Makefile to build PLC code and link it with target specific code
   128             status, result, err_result = ProcessLogger(self.CTRInstance.logger,
   131             status, result, err_result = ProcessLogger(self.CTRInstance.logger,
   129                                                        command).spin()
   132                                                        command).spin()
   130             if status :
   133             if status :