targets/Xenomai/__init__.py
changeset 421 c9ec111ad275
parent 411 8261c8f1e365
child 510 8038c08b9874
equal deleted inserted replaced
420:c093ec48f2fd 421:c9ec111ad275
     9     
     9     
    10     def getBuilderLDFLAGS(self):
    10     def getBuilderLDFLAGS(self):
    11         # get xeno-config from target parameters
    11         # get xeno-config from target parameters
    12         xeno_config = self.getXenoConfig()
    12         xeno_config = self.getXenoConfig()
    13 
    13 
    14         status, result, err_result = ProcessLogger(self.logger, xeno_config + " --xeno-ldflags", no_stdout=True).spin()
    14         status, result, err_result = ProcessLogger(self.PluginsRootInstance.logger, xeno_config + " --xeno-ldflags", no_stdout=True).spin()
    15         if status:
    15         if status:
    16             self.logger.write_error(_("Unable to get Xenomai's LDFLAGS\n"))
    16             self.PluginsRootInstance.logger.write_error(_("Unable to get Xenomai's LDFLAGS\n"))
    17         xeno_ldlags = result.strip()
    17         xeno_ldlags = result.strip()
    18         
    18         
    19         return toolchain_gcc.getBuilderLDFLAGS(self) + [xeno_ldlags, "-shared", "-lnative"]
    19         return toolchain_gcc.getBuilderLDFLAGS(self) + [xeno_ldlags, "-shared", "-lnative"]
    20 
    20 
    21     def getBuilderCFLAGS(self):
    21     def getBuilderCFLAGS(self):
    22         # get xeno-config from target parameters
    22         # get xeno-config from target parameters
    23         xeno_config = self.getXenoConfig()
    23         xeno_config = self.getXenoConfig()
    24 
    24 
    25         status, result, err_result = ProcessLogger(self.logger, xeno_config + " --xeno-cflags", no_stdout=True).spin()
    25         status, result, err_result = ProcessLogger(self.PluginsRootInstance.logger, xeno_config + " --xeno-cflags", no_stdout=True).spin()
    26         if status:
    26         if status:
    27             self.logger.write_error(_("Unable to get Xenomai's CFLAGS\n"))
    27             self.PluginsRootInstance.logger.write_error(_("Unable to get Xenomai's CFLAGS\n"))
    28         xeno_cflags = result.strip()
    28         xeno_cflags = result.strip()
    29         
    29         
    30         return toolchain_gcc.getBuilderCFLAGS(self) + [xeno_cflags]
    30         return toolchain_gcc.getBuilderCFLAGS(self) + [xeno_cflags]
    31         
    31