Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 25 of 75) sorted by relevance

123

/tools/binman/
A Delf_test.py96 def ElfTestFile(cls, fname): argument
97 return os.path.join(cls._indir, fname)
102 syms = elf.GetSymbols(fname, [])
108 syms = elf.GetSymbols(fname, ['ucode'])
242 fname = self.ElfTestFile('embed_data')
246 data = tools.read_file(fname)
281 fname = self.ElfTestFile('embed_data')
289 fname = self.ElfTestFile('embed_data')
322 data = tools.read_file(fname)
336 elf.GetFileOffset(fname, 0)
[all …]
A Dimage.py108 def FromFile(cls, fname): argument
120 data = tools.read_file(fname)
151 image._filename = fname
184 tout.info("Writing image to '%s'" % fname)
185 with open(fname, 'wb') as fd:
196 os.symlink(fname, sname)
218 fname = tools.get_output_filename(filename)
219 with open(fname, 'w') as fd:
223 return fname
321 def _NameInPaths(fname, entry_paths): argument
[all …]
A Dfdt_test.py28 def TestFile(self, fname): argument
29 return os.path.join(self._binman_dir, 'test', fname)
31 def GetCompiled(self, fname): argument
32 return fdt_util.EnsureCompiled(self.TestFile(fname))
39 fname = self.GetCompiled('034_x86_ucode.dts')
40 dt = FdtScan(fname)
44 fname = self.GetCompiled('045_prop_test.dts')
45 dt = FdtScan(fname)
A Dbintool_test.py32 self.fname = None
130 tools.write_file(fname, expected)
131 return fname, dirname
136 fname = os.path.join(dirname, 'downloaded')
254 self.fname = None
261 return fname if write_file else self.fname, stdout.getvalue()
266 self.assertTrue(os.path.exists(fname))
272 self.assertFalse(os.path.exists(fname))
298 tools.write_file(fname, expected)
299 return fname, dirname
[all …]
A Delf.py49 def GetSymbols(fname, patterns): argument
107 def GetFileOffset(fname, addr): argument
119 with open(fname, 'rb') as fd:
123 def GetSymbolFromAddress(fname, addr): argument
135 with open(fname, 'rb') as fd:
137 syms = GetSymbols(fname, None)
142 def GetSymbolFileOffset(fname, patterns): argument
158 with open(fname, 'rb') as fd:
175 def GetSymbolAddress(fname, sym_name): argument
185 syms = GetSymbols(fname, [sym_name])
[all …]
A Dstate.py141 fname = output_fdt_info[etype][1]
142 pathname = tools.get_input_filename(fname)
156 dtb, fname = output_fdt_info[etype]
160 output_fdt_info[etype] = [dtb, fname]
234 for etype, fname in DTB_TYPE_FNAME.items():
235 output_fdt_info[etype] = [dtb, fname]
238 for etype, fname in DTB_TYPE_FNAME.items():
239 infile = tools.get_input_filename(fname, allow_missing=True)
243 os.path.split(fname)[1])
274 entry, fname = value
[all …]
A Dcontrol.py114 def _ShowBlobHelp(level, path, text, fname): argument
298 fname = os.path.join(outdir, path)
303 if fname and not os.path.exists(fname):
304 os.makedirs(fname)
305 fname = os.path.join(fname, 'root')
308 tools.write_file(fname, data)
451 fname = os.path.join(indir, path)
453 if os.path.exists(fname):
456 data = tools.read_file(fname)
622 dtb = fdt.FdtScan(fname)
[all …]
/tools/u_boot_pylib/
A Dtools.py158 return fname
416 if os.path.isfile(fname) and os.access(fname, os.X_OK):
417 return fname
440 def filename(fname): argument
460 fname = os.path.join(chroot_path, fname[3:])
465 if fname and not os.path.exists(fname):
472 return fname
584 fd = open(fname, 'wb')
610 os.remove(fname)
611 fname = None
[all …]
/tools/
A Drmboard.py49 fname = stdout.split(':')[0]
51 print("Fixing up '%s' to remove reference to '%s'" % (fname, path))
52 stdout = command.run_one('sed', '-i', rf'\|{path}|d', fname,
55 stdout = command.output('git', 'add', fname)
83 for fname in maintain:
84 with open(fname) as fd:
110 for fname in stdout.splitlines():
111 if fname.endswith('Kconfig'):
112 rm_kconfig_include(fname)
A Dqconfig.py94 if os.path.exists(fname):
175 def write_file(fname, data): argument
814 fname = fname[len(cwd) + 1:]
816 data = read_file(fname)
833 data = read_file(fname)
1043 fname = fname[len(cwd) + 1:]
1049 fname = ''
1055 fname = fname[len(cwd) + 1:]
1196 self.fname = fname
1228 for fname, rest in fnames:
[all …]
A Dfit_common.c59 int mmap_fdt(const char *cmdname, const char *fname, size_t size_inc, in mmap_fdt() argument
67 fd = open(fname, (read_only ? O_RDONLY : O_RDWR) | O_BINARY); in mmap_fdt()
71 cmdname, fname, strerror(errno)); in mmap_fdt()
77 cmdname, fname, strerror(errno)); in mmap_fdt()
85 cmdname, fname, strerror(errno)); in mmap_fdt()
96 cmdname, fname, strerror(errno)); in mmap_fdt()
125 unlink(fname); in mmap_fdt()
A Dexpo.py33 def calc_ids(fname, base_id): argument
48 with open(fname, 'r', encoding='utf-8') as inf:
80 fname = 'include/expo.h'
82 with open(fname, 'r', encoding='utf-8') as inf:
95 fname = args.enum_fname or args.layout
96 ids = calc_ids(fname, base_id)
A Dfit_image.c199 fd = open(fname, O_RDONLY | O_BINARY); in fdt_property_file()
202 params->cmdname, fname, strerror(errno)); in fdt_property_file()
208 params->cmdname, fname, strerror(errno)); in fdt_property_file()
218 params->cmdname, fname, strerror(errno)); in fdt_property_file()
251 p = strrchr(fname, '/'); in get_basename()
252 start = p ? p + 1 : fname; in get_basename()
253 p = strrchr(fname, '.'); in get_basename()
254 end = p ? p : fname + strlen(fname); in get_basename()
371 cont->fname); in fit_write_images()
524 params->cmdname, fname, strerror(errno)); in fit_build()
[all …]
/tools/binman/btool/
A Dcbfstool.py147 def add_raw(self, cbfs_fname, name, fname, compress=None, base=None): argument
165 '-f', fname,
171 def add_stage(self, cbfs_fname, name, fname): argument
185 '-f', fname
218 fname, tmpdir = self.fetch_from_drive(
220 return fname, tmpdir
A Dfiptool.py54 def info(self, fname): argument
63 args = ['info', fname]
67 def create_new(self, fname, align, plat_toc_flags, fwu, tb_fw, blob_uuid, argument
90 fname]
A Dfutility.py74 def gbb_create(self, fname, sizes): argument
89 fname
94 def gbb_set(self, fname, hwid, rootkey, recoverykey, flags, bmpfv): argument
116 fname
/tools/dtoc/
A Dsrc_scan.py82 def __init__(self, name, fname): argument
84 self.fname = fname
171 def __init__(self, name, fname): argument
173 self.fname =fname
611 def scan_driver(self, fname): argument
639 def scan_header(self, fname): argument
673 for fname in filenames:
675 if fname.endswith('.c'):
680 if not isinstance(fname, str) or len(fname) == 0:
682 if fname[0] == '/':
[all …]
/tools/buildman/
A Dtoolchain.py74 fname = os.path.expanduser(fname)
75 self.gcc = fname
97 cmd = [fname, '--version']
119 def GetPriority(self, fname): argument
304 paths.append(fname)
359 fnames.append(fname)
362 def ScanPathEnv(self, fname): argument
392 if os.path.exists(fname):
395 fname += 'gcc'
411 for fname in fnames:
[all …]
A Dcfgutil.py111 def adjust_cfg_file(fname, adjust_cfg): argument
126 lines = tools.read_file(fname, binary=False).splitlines()
129 tools.write_file(fname, out, binary=False)
204 def check_cfg_file(fname, adjust_cfg): argument
222 lines = tools.read_file(fname, binary=False).splitlines()
/tools/patman/
A Dcheckpatch.py35 fname = os.path.join(path, 'checkpatch.pl')
36 if os.path.isfile(fname):
37 return fname
41 fname = os.path.join(path, 'src', 'third_party', 'kernel', 'files',
43 if os.path.isfile(fname):
44 return fname
223 *args, os.path.join(cwd or '', fname), raise_on_error=False,
229 def get_warning_msg(col, msg_type, fname, line, msg): argument
245 return '%s:%s: %s: %s\n' % (fname, line_str, msg_type, msg)
254 for fname in args:
[all …]
A Dsettings.py162 def ReadGitAliases(fname): argument
172 fd = open(fname, 'r', encoding='utf-8')
174 print("Warning: Cannot find alias file '%s'" % fname)
325 def _ReadAliasFile(fname): argument
331 if os.path.exists(fname):
333 with open(fname, encoding='utf-8') as fd:
343 bad_line = "%s:%d:Invalid line '%s'" % (fname, linenum,
351 def _ReadBouncesFile(fname): argument
357 if os.path.exists(fname):
358 with open(fname) as fd:
/tools/binman/etype/
A Dalternates_fdt.py71 fname = tools.get_input_filename(self._fdt_dir)
72 fdts = glob.glob('*.dtb', root_dir=fname)
94 fname = os.path.join(self._fdt_dir, f'{self._cur_fdt}.dtb')
95 infile = tools.get_input_filename(fname)
105 return fname, tools.read_file(infile)
119 fname = pattern.replace('NAME', alt)
128 return fname, data
A Dblob_ext_list.py39 for fname in self._filenames:
40 fname = self.check_fake_fname(fname)
42 fname, self.external and self.section.GetAllowMissing())
A Dfiles.py55 for fname in files:
56 if not os.path.isfile(fname):
58 name = os.path.basename(fname)
63 state.AddString(subnode, 'filename', fname)
A Dgbb.py73 fname = tools.get_output_filename(gbb)
83 fname, [0x100, 0x1000, bmpfv_size, 0x1000])
86 fname,
94 self.SetContents(tools.read_file(fname))

Completed in 677 milliseconds

123