Lines Matching full:fname
229 def compress_dtb(fname, compress): argument
233 fname (str): Filename containing the DTB
237 tuple: (str: fname, bytes: compressed_data)
239 with open(fname, 'rb') as inf:
241 return fname, compressed
244 def output_dtb(fsw, seq, fname, arch, compress, data=None): argument
250 fname (str): Filename containing the DTB
256 fsw.property_string('description', os.path.basename(fname))
262 with open(fname, 'rb') as inf:
267 def process_dtb(fname, args): argument
271 fname (str): Filename containing the DTB
280 with open(fname, 'rb') as inf:
288 path, basename = os.path.split(fname)
298 files = [fname]
300 files = [fname]
324 file_info = [] # List of (fname, model, compat, files) tuples
326 for fname in args.dtbs:
328 if os.path.splitext(fname)[1] != '.dtb':
332 (model, compat, files) = process_dtb(fname, args)
334 sys.stderr.write(f'Error processing {fname}:\n')
337 file_info.append((fname, model, compat, files))
356 for fname, model, compat, files in file_info: