Beispiel #1
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        if self.sibling:
            path = self.sibling.out_path()
        else:
            path = options.get_src_path() / self.name

        return [LinkerEntry(self, [path], path, self.get_linker_section())]
Beispiel #2
0
 def out_path(self) -> Optional[Path]:
     if self.type.startswith("."):
         if self.sibling:
             # C file
             return self.sibling.out_path()
         else:
             # Implied C file
             return options.get_src_path() / self.dir / f"{self.name}.c"
     else:
         # ASM
         return options.get_asm_path() / "data" / self.dir / f"{self.name}.{self.type}.s"
Beispiel #3
0
 def out_path(self) -> Optional[Path]:
     return options.get_src_path() / self.dir / f"{self.name}.c"
Beispiel #4
0
 def out_path(self):
     return options.get_src_path() / self.dir / f"{self.name}.cpp"