/u-boot/tools/patman/ |
A D | tools.py | 86 def GetOutputFilename(fname): argument 137 return fname 158 return glob.glob(fname) 362 def Filename(fname): argument 380 if fname.startswith('##/'): 382 fname = os.path.join(chroot_path, fname[3:]) 387 if fname and not os.path.exists(fname): 394 return fname 477 WriteFile(fname, indata) 554 if fname: [all …]
|
A D | get_maintainer.py | 20 fname = os.path.join(path, 'get_maintainer.pl') 21 if os.path.isfile(fname): 22 return fname 26 def GetMaintainer(dir_list, fname, verbose=False): argument 46 stdout = command.Output(get_maintainer, '--norolestats', fname)
|
A D | checkpatch.py | 26 fname = os.path.join(path, 'checkpatch.pl') 27 if os.path.isfile(fname): 28 return fname 34 if os.path.isfile(fname): 35 return fname 41 def CheckPatch(fname, verbose=False, show_types=False): argument 76 result.stdout = command.Output(*args, fname, raise_on_error=False) 171 def GetWarningMsg(col, msg_type, fname, line, msg): argument 187 return '%s:%s: %s: %s\n' % (fname, line_str, msg_type, msg) 194 for fname in args: [all …]
|
A D | settings.py | 157 def ReadGitAliases(fname): argument 167 fd = open(fname, 'r', encoding='utf-8') 169 print("Warning: Cannot find alias file '%s'" % fname) 270 def _ReadAliasFile(fname): argument 276 if os.path.exists(fname): 278 with open(fname, encoding='utf-8') as fd: 288 bad_line = "%s:%d:Invalid line '%s'" % (fname, linenum, 295 def _ReadBouncesFile(fname): argument 301 if os.path.exists(fname): 302 with open(fname) as fd:
|
/u-boot/arch/sandbox/cpu/ |
A D | os.c | 438 char *fname; in os_dirent_ls() local 451 fname = malloc(len); in os_dirent_ls() 452 if (!fname) { in os_dirent_ls() 472 old_fname = fname; in os_dirent_ls() 473 fname = realloc(fname, len); in os_dirent_ls() 474 if (!fname) { in os_dirent_ls() 510 free(fname); in os_dirent_ls() 596 fd = mkstemp(fname); in make_exec() 717 return unlink(fname); in os_jump_to_file() 722 char fname[30]; in os_jump_to_image() local [all …]
|
A D | spl.c | 37 char fname[256]; in spl_board_load_image() local 40 ret = os_find_u_boot(fname, sizeof(fname)); in spl_board_load_image() 42 printf("(%s not found, error %d)\n", fname, ret); in spl_board_load_image() 47 spl_image->arg = strdup(fname); in spl_board_load_image() 71 const char *fname = spl_image->arg; in jump_to_image_no_args() local 73 if (fname) { in jump_to_image_no_args() 75 os_spl_to_uboot(fname); in jump_to_image_no_args()
|
A D | state.c | 53 ret = os_get_filesize(fname, &size); in state_read_file() 55 printf("Cannot find sandbox state file '%s'\n", fname); in state_read_file() 63 fd = os_open(fname, OS_O_RDONLY); in state_read_file() 65 printf("Cannot open sandbox state file '%s'\n", fname); in state_read_file() 70 printf("Cannot read sandbox state file '%s'\n", fname); in state_read_file() 150 if (state->read_state && fname) { in sandbox_read_state() 151 ret = state_read_file(state, fname); in sandbox_read_state() 168 if (state->read_state && fname) { in sandbox_read_state() 169 debug("Read sandbox state from '%s'%s\n", fname, in sandbox_read_state() 285 fd = os_open(fname, OS_O_WRONLY | OS_O_CREAT); in sandbox_write_state() [all …]
|
A D | start.c | 187 char *fname; in sandbox_cmdline_cb_default_fdt() local 191 fname = malloc(len); in sandbox_cmdline_cb_default_fdt() 192 if (!fname) in sandbox_cmdline_cb_default_fdt() 195 state->fdt_fname = fname; in sandbox_cmdline_cb_default_fdt() 207 char *fname; in sandbox_cmdline_cb_test_fdt() local 211 fname = malloc(len); in sandbox_cmdline_cb_test_fdt() 212 if (!fname) in sandbox_cmdline_cb_test_fdt() 215 p = strrchr(fname, '/'); in sandbox_cmdline_cb_test_fdt() 217 p = fname + strlen(fname); in sandbox_cmdline_cb_test_fdt() 218 len -= p - fname; in sandbox_cmdline_cb_test_fdt() [all …]
|
/u-boot/tools/dtoc/ |
A D | src_scan.py | 134 def scan_driver(self, fname): argument 142 with open(fname, encoding='utf-8') as inf: 147 print("Skipping file '%s' due to unicode error" % fname) 174 for fname in filenames: 175 if not fname.endswith('.c'): 177 self.scan_driver(dirpath + '/' + fname) 179 for fname in self._drivers_additional: 180 if not isinstance(fname, str) or len(fname) == 0: 182 if fname[0] == '/': 183 self.scan_driver(fname) [all …]
|
/u-boot/scripts/dtc/ |
A D | srcpos.c | 75 if (!dirname || fname[0] == '/') in try_open() 76 fullname = xstrdup(fname); in try_open() 78 fullname = join_path(dirname, fname); in try_open() 108 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path() 122 if (streq(fname, "-")) { in srcfile_relative_open() 126 fullname = fopen_any_on_path(fname, &f); in srcfile_relative_open() 128 die("Couldn't open \"%s\": %s\n", fname, in srcfile_relative_open() 143 void srcfile_push(const char *fname) in srcfile_push() argument 247 const char *fname = "<no-file>"; in srcpos_string() local 251 fname = pos->file->name; in srcpos_string() [all …]
|
/u-boot/tools/ |
A D | rmboard.py | 50 fname = stdout.split(':')[0] 52 print("Fixing up '%s' to remove reference to '%s'" % (fname, path)) 53 cmd = ['sed', '-i', '\|%s|d' % path, fname] 56 cmd = ['git', 'add', fname] 86 for fname in maintain: 87 with open(fname) as fd: 115 for fname in stdout.splitlines(): 116 if fname.endswith('Kconfig'): 117 rm_kconfig_include(fname)
|
A D | fit_common.c | 44 int mmap_fdt(const char *cmdname, const char *fname, size_t size_inc, in mmap_fdt() argument 52 fd = open(fname, (read_only ? O_RDONLY : O_RDWR) | O_BINARY); in mmap_fdt() 56 cmdname, fname, strerror(errno)); in mmap_fdt() 62 cmdname, fname, strerror(errno)); in mmap_fdt() 70 cmdname, fname, strerror(errno)); in mmap_fdt() 81 cmdname, fname, strerror(errno)); in mmap_fdt() 110 unlink(fname); in mmap_fdt()
|
A D | fit_image.c | 132 fd = open(fname, O_RDWR | O_BINARY); in fdt_property_file() 135 params->cmdname, fname, strerror(errno)); in fdt_property_file() 141 params->cmdname, fname, strerror(errno)); in fdt_property_file() 151 params->cmdname, fname, strerror(errno)); in fdt_property_file() 184 p = strrchr(fname, '/'); in get_basename() 185 start = p ? p + 1 : fname; in get_basename() 186 p = strrchr(fname, '.'); in get_basename() 187 end = p ? p : fname + strlen(fname); in get_basename() 260 cont->fname); in fit_write_images() 407 params->cmdname, fname, strerror(errno)); in fit_build() [all …]
|
/u-boot/tools/buildman/ |
A D | toolchain.py | 74 self.gcc = fname 96 cmd = [fname, '--version'] 118 def GetPriority(self, fname): argument 325 def ScanPathEnv(self, fname): argument 357 fname = value + 'gcc' 370 for fname in fnames: 526 fd = open(fname, 'wb') 550 os.remove(fname) 551 fname = None 552 return tmpdir, fname [all …]
|
A D | bsettings.py | 9 def Setup(fname=''): argument 19 if fname is not None: 20 config_fname = fname
|
/u-boot/drivers/mtd/ubi/ |
A D | debug.c | 402 const char *fname; in ubi_debugfs_init_dev() local 413 fname = UBI_DFS_DIR_NAME; in ubi_debugfs_init_dev() 418 fname = d->dfs_dir_name; in ubi_debugfs_init_dev() 424 fname = "chk_gen"; in ubi_debugfs_init_dev() 431 fname = "chk_io"; in ubi_debugfs_init_dev() 438 fname = "chk_fastmap"; in ubi_debugfs_init_dev() 445 fname = "tst_disable_bgt"; in ubi_debugfs_init_dev() 452 fname = "tst_emulate_bitflips"; in ubi_debugfs_init_dev() 459 fname = "tst_emulate_io_failures"; in ubi_debugfs_init_dev() 466 fname = "tst_emulate_power_cut"; in ubi_debugfs_init_dev() [all …]
|
/u-boot/arch/arm/lib/ |
A D | semihosting.c | 48 static long smh_open(const char *fname, char *modestr) in smh_open() argument 53 const char *fname; in smh_open() member 58 debug("%s: file \'%s\', mode \'%s\'\n", __func__, fname, modestr); in smh_open() 71 open.fname = fname; in smh_open() 72 open.len = strlen(fname); in smh_open() 79 fname); in smh_open()
|
/u-boot/tools/binman/ |
A D | control.py | 130 glob_list = [fname for fname in glob_list if fname.endswith('.py')] 239 fname = os.path.join(outdir, path) 244 if not os.path.exists(fname): 245 os.makedirs(fname) 246 fname = os.path.join(fname, 'root') 249 tools.WriteFile(fname, data) 389 if os.path.exists(fname): 392 data = tools.ReadFile(fname) 434 dtb = fdt.FdtScan(fname) 519 fname = image.WriteMap() [all …]
|
A D | fdt_test.py | 28 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 D | image.py | 73 def FromFile(cls, fname): argument 85 data = tools.ReadFile(fname) 115 image._filename = fname 116 image.image_name, _ = os.path.splitext(fname) 148 tout.Info("Writing image to '%s'" % fname) 149 with open(fname, 'wb') as fd: 161 fname = tools.GetOutputFilename(filename) 162 with open(fname, 'w') as fd: 166 return fname 264 def _NameInPaths(fname, entry_paths): argument [all …]
|
/u-boot/include/ |
A D | os.h | 248 int os_get_filesize(const char *fname, loff_t *size); 276 int os_write_ram_buf(const char *fname); 284 int os_read_ram_buf(const char *fname); 318 int os_find_u_boot(char *fname, int maxlen); 329 int os_spl_to_uboot(const char *fname);
|
/u-boot/doc/sphinx/ |
A D | kfigure.py | 93 fname = folder + os.sep + cmd 94 if path.isfile(fname): 95 return fname 101 def file2literal(fname): argument 102 with open(fname, "r") as src: 236 img_node['uri'] = fname + '.pdf' 237 img_node['candidates'] = {'*': fname + '.pdf'} 244 fname + '.svg') 246 translator.builder.imgpath, fname + '.svg') 263 img_node['uri'] = fname + '.pdf' [all …]
|
/u-boot/test/py/tests/ |
A D | test_fit.py | 129 def filesize(fname): argument 137 return os.stat(fname).st_size 139 def read_file(fname): argument 147 with open(fname, 'rb') as fd: 203 fname = make_fname(filename) 207 with open(fname, 'w') as fd: 209 return fname 217 fname = make_fname(filename) 221 with open(fname, 'w') as fd: 223 return fname
|
/u-boot/tools/binman/etype/ |
A D | files.py | 50 for fname in files: 51 if not os.path.isfile(fname): 53 name = os.path.basename(fname) 58 state.AddString(subnode, 'filename', fname)
|
A D | gbb.py | 73 fname = tools.GetOutputFilename(gbb) 90 fname] 92 tools.Run('futility', 'gbb_utility', '-c', ','.join(sizes), fname) 95 self.SetContents(tools.ReadFile(fname))
|