Lines Matching refs:file

20     Parses the contents of the index file into the items and dependencies variables. It
37 """ Gets all the recursive dependencies of a parent file. """
49 """ Opens and parses index file. """
70 # Include other index file
123 """ Removes empty and comment lines from the index file and resolves includes. """
128 self.args.add_argument("-o", "--output", help="Output file", metavar="output",
130 self.args.add_argument("--deps", help="Dependency file")
131 self.args.add_argument("file", help="Input file")
135 After parsing the input index file it generates a clean output with all includes resolved.
140 index_file_parser.parse(self.config.file)
153 deps = [self.config.file] + index_file_parser.get_dependencies(self.config.file)
157 """ Generates the jump table by parsing the index file. """
162 self.args.add_argument("-o", "--output", help="Output file", metavar="output",
165 self.args.add_argument("file", help="Input file")
169 Inserts the jmptbl definition and the jump entries into the output file. Also can insert
170 BTI related code before entries if --bti option set. It can output a dependency file of the
175 index_file_parser.parse(self.config.file)
187 Generates a wrapper function for each entry in the index file except for the ones that contain
188 the keyword patch. The generated wrapper file is called <lib>_<fn_name>.s.
197 self.args.add_argument("file", help="Input file")
201 Iterates through the items in the parsed index file and builds the template for each entry.
205 index_file_parser.parse(self.config.file)
239 self.args.add_argument("-o", "--output", help="Output file", metavar="output",
241 self.args.add_argument("file", help="Input file")
245 Runs nm -a command on the input file and inserts the address of the .text section into the
248 symbols = subprocess.check_output(["nm", "-a", self.config.file])
252 raise Exception("No '.text' section was found in %s" % self.config.file)
264 print("usage: romlib_generator.py [%s] [args]" % "|".join(APPS.keys()), file=sys.stderr)
273 print(file_not_found_error, file=sys.stderr)
275 print(called_process_error.output, file=sys.stderr)