Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 222) sorted by relevance

123456789

/scripts/build/
A Dgen_cfb_font_header.py23 if args.dump:
34 if args.hpack:
73 font = ImageFont.truetype(args.input, args.size)
78 for i in range(args.first, args.last + 1):
105 for i in range(args.first, args.last + 1):
129 for i in range(args.first, args.last + 1):
151 if args.bindir and arg.startswith(args.bindir):
177 elem=args.last - args.first + 1,
200 """ .format(name=args.name, width=args.width, height=args.height,
201 caps=caps, first=args.first, last=args.last))
[all …]
A Dfile2hex.py23 global args
45 args = parser.parse_args()
71 if args.gzip:
74 fg.seek(args.offset)
81 if args.format == "literal":
90 with open(args.file, "rb") as fp:
91 fp.seek(args.offset)
93 if args.format == "literal":
94 if args.length < 0:
101 remainder = args.length
[all …]
A Dgen_syscalls.py318 if len(args) > 0:
347 for (argtype, _) in args:
411 func, args = match_group
414 if args == "void":
415 args = []
417 args = [typename_split(a) for a in args.split(",")]
436 global args
461 args = parser.parse_args()
468 for t in args.split_type:
529 if args.syscall_exports_llext:
[all …]
/scripts/west_commands/
A Dspdx.py65 if args.init:
66 self.do_run_init(args)
68 self.do_run_spdx(args)
70 def do_run_init(self, args): argument
73 if not args.build_dir:
85 def do_run_spdx(self, args): argument
86 if not args.build_dir:
97 if args.namespace_prefix:
104 if args.spdx_dir:
108 if args.analyze_includes:
[all …]
A Dpatch.py279 if args.patch_base is not None and args.patch_base.is_absolute():
281 if args.patch_yml is not None and args.patch_yml.is_absolute():
290 args.patch_base = manifest_dir / args.patch_base
295 args.patch_yml = manifest_dir / args.patch_yml
300 args.west_workspace = topdir / args.west_workspace
303 args.dst_modules = [self.get_module_path(m) for m in args.dst_modules]
321 def do_run(self, args, _): argument
328 yml = self.load_yml(args, args.subcommand in ["gh-fetch"])
342 method[args.subcommand](args, yml, args.dst_modules)
414 if args.roll_back:
[all …]
A Dbuild.py189 self.args = args # Avoid having to pass them around
241 if (self.args.cmake or self.args.cmake_opts or
242 self.args.cmake_only or self.args.snippets or
243 self.args.shields or self.args.extra_conf_files or
268 if args.cmake_only:
275 self._run_build(args.target, args.domain)
288 if self.args.board:
413 self.args.cmake_opts.extend(args)
415 self.args.cmake_opts = args
420 args = []
[all …]
A Dsign.py175 self.args = args # for check_force
186 if not args.tool:
192 if args.gen_bin:
202 if args.gen_hex:
253 args = command.args
288 if not args.quiet:
436 args = self.command.args
493 args = command.args
541 args.tool_path if args.tool_path else
602 if not args.quiet and args.verbose:
[all …]
A Dpackages.py108 def do_run(self, args, unknown): argument
118 if args.modules:
122 for m in args.modules:
126 if args.manager == "pip":
127 return self.do_run_pip(args, unknown[1:])
132 def do_run_pip(self, args, manager_args): argument
135 if not args.modules or "zephyr" in args.modules:
140 if args.modules and module_name not in args.modules:
141 if args.install:
148 if args.install:
[all …]
A Dblobs.py86 def get_blobs(self, args): argument
88 modules = args.modules
107 def list(self, args): argument
108 blobs = self.get_blobs(args)
152 def fetch(self, args): argument
154 blobs = self.get_blobs(args)
195 def clean(self, args): argument
196 blobs = self.get_blobs(args)
204 def do_run(self, args, _): argument
209 if args.subcmd[0] != 'list' and args.format is not None:
[all …]
/scripts/ci/
A Dupload_test_results_es.py160 def transform(t, args): argument
161 if args.transform:
176 def gendata(f, args): argument
202 if args.flatten and args.flatten in t and isinstance(t[args.flatten], dict):
226 if args.flatten and args.flatten in t and isinstance(t[args.flatten], list):
248 args = parse_args()
258 if args.map_file:
270 if args.dry_run:
284 if args.create_index:
293 bulk(es, gendata(f, args), request_timeout=args.bulk_timeout)
[all …]
A Dversion_mgr.py75 if args.verbose:
99 if args.verbose:
101 if args.verbose and is_weekly:
104 if not args.verbose:
138 global args
140 args = parse_args()
141 if args.update:
142 update(args.update, args.weekly)
143 elif args.list or args.list_weekly:
144 show_versions(weekly=args.list_weekly)
[all …]
/scripts/west_commands/runners/
A Dmisc.py21 def __init__(self, cfg, cmd, args): argument
28 self.args = args
48 def do_create(cls, cfg, args): argument
49 return MiscFlasher(cfg, args.cmd, args.args)
51 def do_run(self, *args, **kwargs): argument
53 self.check_call([self.cmd, self.cfg.build_dir] + self.args)
A Dprobe_rs.py26 self.args = ['--chip', chip]
29 self.args += ['--probe', dev_id]
32 self.args += tool_opt
73 def do_create(cls, cfg, args): argument
74 return ProbeRsBinaryRunner(cfg, args.chip,
75 probe_rs=args.probe_rs,
76 dev_id=args.dev_id,
77 erase=args.erase,
94 + self.args + download_args)
97 + self.args)
[all …]
A Dnrfjprog.py47 def do_create(cls, cfg, args): argument
48 return NrfJprogBinaryRunner(cfg, args.nrf_family, args.softreset,
49 args.pinreset, args.dev_id, erase=args.erase,
50 erase_mode=args.erase_mode,
51 ext_erase_mode=args.ext_erase_mode,
52 reset=args.reset, tool_opt=args.tool_opt,
53 force=args.force, recover=args.recover,
54 qspi_ini=args.qspi_ini)
A Dnrfutil.py52 def do_create(cls, cfg, args): argument
53 return NrfUtilBinaryRunner(cfg, args.nrf_family, args.softreset,
54 args.pinreset, args.dev_id, erase=args.erase,
55 erase_mode=args.erase_mode,
56 ext_erase_mode=args.ext_erase_mode,
57 reset=args.reset, tool_opt=args.tool_opt,
58 force=args.force, recover=args.recover,
59 suit_starter=args.suit_manifest_starter,
72 def _exec(self, args): argument
75 cmd = ['nrfutil', '--json', 'device'] + args
[all …]
/scripts/release/
A Dlist_backports.py83 if args.includes:
101 if args.end < args.start:
106 if args.tokenfile:
117 return args
287 args = parse_args()
289 if not args:
299 repo = gh.get_repo(args.org + '/' + args.repo)
305 if args.includes:
306 bp = Backport.by_included_prs(repo, args.base, set(args.includes))
309 args.start, args.end, set(args.excludes))
[all …]
A Dbug_bash.py35 args = parser.parse_args()
37 if args.end < args.start:
39 'end date {} is before start date {}'.format(args.end, args.start))
41 if args.tokenfile:
42 with open(args.tokenfile, 'r') as file:
50 setattr(args, 'token', token)
52 return args
169 args = parse_args()
170 bbt = BugBashTally(Github(args.token), args.start, args.end)
171 if args.all:
/scripts/
A Dget_maintainer.py46 args = _parse_args()
48 args.cmd_fn(Maintainers(args.maintainers), args)
159 args = parser.parse_args()
164 return args
265 def _path_cmd(self, args): argument
335 …if not (args.count_areas or args.count_collaborators or args.count_maintainers or args.count_unmai…
353 if args.count_areas:
365 if args.area is None:
386 if args.path is not None and not os.path.exists(args.path):
600 def _git(*args): argument
[all …]
A Dlist_hardware.py211 def find_v2_archs(args): argument
239 def find_v2_systems(args): argument
279 def dump_v2_archs(args): argument
280 archs = find_v2_archs(args)
322 info = args.format.format(
332 def dump_v2_systems(args): argument
346 args = parse_args() variable
347 if any([args.socs, args.soc, args.soc_series, args.soc_family]):
348 dump_v2_systems(args)
349 if args.archs or args.arch is not None:
[all …]
/scripts/pylib/pytest-twister-harness/tests/resources/
A Dmock_script.py24 args = parser.parse_args()
26 if args.exception:
30 if args.long_sleep:
34 time.sleep(args.sleep)
39 time.sleep(args.sleep)
42 print('Returns with code', args.return_code, flush=True)
44 return args.return_code
/scripts/logging/dictionary/
A Dlog_parser.py45 def read_log_file(args): argument
53 if args.hex:
54 if args.rawhex:
56 logdata = dictionary_parser.utils.convert_hex_file_to_bin(args.logfile)
60 with open(args.logfile, encoding="iso-8859-1") as hexfile:
93 with open(args.logfile, "rb") as logfile:
103 args = parse_args()
107 if args.debug:
112 log_parser = parserlib.get_log_parser(args.dbfile, logger)
114 logdata = read_log_file(args)
[all …]
A Dlive_log_parser.py107 args = parse_args()
109 if args.dbfile is None or '.json' not in args.dbfile:
110 logger.error("ERROR: invalid log database path: %s, exiting...", args.dbfile)
115 if args.debug:
120 log_parser = parserlib.get_log_parser(args.dbfile, logger)
124 if args.mode == "serial":
125 reader = SerialReader(args.port, args.baudrate)
126 elif args.mode == "file":
127 reader = FileReader(args.filepath)
/scripts/tracing/
A Dtrace_capture_usb.py16 global args
26 args = parser.parse_args()
30 if args.vendor_id.isdecimal():
31 vendor_id = int(args.vendor_id)
33 vendor_id = int(args.vendor_id, 16)
35 if args.product_id.isdecimal():
36 product_id = int(args.product_id)
38 product_id = int(args.product_id, 16)
40 output_file = args.output
96 print('Data capture interrupted, data saved into {}'.format(args.output))
/scripts/dts/
A Dgen_edt.py36 args = parse_args()
41 for prefixes_file in args.vendor_prefixes:
45 edt = edtlib.EDT(args.dts, args.bindings_dirs,
46 workspace_dir=args.workspace_dir,
49 "-Wno-simple_bus_reg" not in args.dtc_flags,
52 werror=args.edtlib_Werror,
58 with open(args.dts_out, "w", encoding="utf-8") as f:
61 write_pickled_edt(edt, args.edt_pickle_out)
/scripts/west_commands/tests/
A Dtest_xsdb.py121 args = []
123 args.extend(["--config", tc["config"]])
125 args.extend(["--bitstream", tc["bitstream"]])
127 args.extend(["--fsbl", tc["fsbl"]])
129 args.extend(["--pdi", tc["pdi"]])
131 args.extend(["--bl31", tc["bl31"]])
133 args.extend(["--system-dtb", tc["dtb"]])
137 arg_namespace = parser.parse_args(args)

Completed in 41 milliseconds

123456789