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.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.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.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.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 |