Home
last modified time | relevance | path

Searched full:args (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/Zephyr-Core-3.7.0/scripts/build/
Dgen_cfb_font_header.py23 if args.dump:
24 blackwhite.save("{}_{}.png".format(args.name, charcode))
31 args.output.write("""\t/* {:d}{} */\n\t{{\n""".format(charcode, char))
34 if args.hpack:
61 args.output.write("\t\t")
65 if not args.msb_first:
67 args.output.write("0x{:02x},".format(int(value, 2)))
68 args.output.write(" /* {} */\n".format(''.join(bits).replace('0', ' ').replace('1', '#')))
69 args.output.write("\t},\n")
73 font = ImageFont.truetype(args.input, args.size)
[all …]
Dfile2hex.py22 global args
42 args = parser.parse_args()
58 if args.gzip:
60 with open(args.file, 'rb') as fg:
61 fg.seek(args.offset)
63 mtime=args.gzip_mtime,
65 gz_obj.write(fg.read(args.length))
71 with open(args.file, "rb") as fp:
72 fp.seek(args.offset)
73 if args.length < 0:
[all …]
/Zephyr-Core-3.7.0/scripts/west_commands/
Dspdx.py52 def do_run(self, args, unknown_args): argument
55 log.dbg(f" --init is", args.init)
56 log.dbg(f" --build-dir is", args.build_dir)
57 log.dbg(f" --namespace-prefix is", args.namespace_prefix)
58 log.dbg(f" --spdx-dir is", args.spdx_dir)
59 log.dbg(f" --analyze-includes is", args.analyze_includes)
60 log.dbg(f" --include-sdk is", args.include_sdk)
62 if args.init:
63 do_run_init(args)
65 do_run_spdx(args)
[all …]
Dbuild.py169 def do_run(self, args, remainder): argument
170 self.args = args # Avoid having to pass them around
172 log.dbg('args: {} remainder: {}'.format(args, remainder),
175 source_dir = self.args.source_dir
178 if self.args.test_item:
180 item = os.path.basename(self.args.test_item)
181 if self.args.source_dir:
182 test_path = self.args.source_dir
184 test_path = os.path.dirname(self.args.test_item)
186 self.args.source_dir = test_path
[all …]
Dtwister_cmd.py54 def do_run(self, args, remainder): argument
56 "args: {} remainder: {}".format(args, remainder), level=log.VERBOSE_EXTREME
59 options = parse_arguments(self.parser, args=remainder, options=args)
60 default_options = parse_arguments(self.parser, args=[], on_init=False)
64 def _parse_arguments(self, args, options): argument
66 return parse_arguments(self.parser, args, options)
Dsign.py101 def __call__(self, parser, args, ignored, option): argument
102 setattr(args, self.dest, not option.startswith('--no-'))
169 def do_run(self, args, ignored): argument
170 self.args = args # for check_force
173 build_dir = find_build_dir(args.build_dir)
181 if not args.tool:
182 args.tool = config_get(self.config, 'sign.tool')
187 if args.gen_bin:
193 elif args.gen_bin is None and bin_exists:
197 if args.gen_hex:
[all …]
Dboards.py71 def do_run(self, args, _): argument
72 if args.name_re is not None:
73 name_re = re.compile(args.name_re)
89 args.arch_roots += module_settings['arch_root']
90 args.board_roots += module_settings['board_root']
91 args.soc_roots += module_settings['soc_root']
93 for board in list_boards.find_boards(args):
96 log.inf(args.format.format(name=board.name, arch=board.arch,
99 for board in list_boards.find_v2_boards(args):
103 args.format.format(
/Zephyr-Core-3.7.0/scripts/ci/
Dupload_test_results_es.py41 args = parse_args()
43 if args.index:
44 index_name = args.index
61 if args.dry_run:
63 for f in args.files:
64 xx = gendata(f, index_name, args.run_date, args.run_id, args.run_attempt)
75 if args.create_index:
78 if args.run_date:
79 print(f"Setting run date from command line: {args.run_date}")
80 for f in args.files:
[all …]
Dupload_test_results.py16 args = parse_args()
17 if args.user and args.password:
18 auth = (args.user, args.password)
30 index_name = args.index
32 for f in args.files:
55 args = parser.parse_args()
57 return args
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 …]
/Zephyr-Core-3.7.0/cmake/util/
Dexecute_process.cmake4 # "ARGS" for the process command-line arguments.
5 # Use set(ARGS ...) to build the ARGS list and then quote the list
7 # set(ARGS a b c)
8 # -DARGS="${ARGS}"
14 if(NOT DEFINED ARGS)
15 set(ARGS ) variable
17 separate_arguments(ARGS)
34 ${ARGS}
/Zephyr-Core-3.7.0/arch/common/
Dsemihost.c49 struct semihost_poll_in_args args = { in semihost_poll_in() local
53 return (char)semihost_exec(SEMIHOST_READC, &args); in semihost_poll_in()
64 struct semihost_open_args args = { in semihost_open() local
70 return semihost_exec(SEMIHOST_OPEN, &args); in semihost_open()
75 struct semihost_close_args args = { in semihost_close() local
79 return semihost_exec(SEMIHOST_CLOSE, &args); in semihost_close()
84 struct semihost_flen_args args = { in semihost_flen() local
88 return semihost_exec(SEMIHOST_FLEN, &args); in semihost_flen()
93 struct semihost_seek_args args = { in semihost_seek() local
98 return semihost_exec(SEMIHOST_SEEK, &args); in semihost_seek()
[all …]
/Zephyr-Core-3.7.0/scripts/west_commands/runners/
Dmisc.py19 def __init__(self, cfg, cmd, args): argument
26 self.args = args
41 parser.add_argument('args', nargs=argparse.REMAINDER,
46 def do_create(cls, cfg, args): argument
47 return MiscFlasher(cfg, args.cmd, args.args)
49 def do_run(self, *args, **kwargs): argument
51 self.check_call([self.cmd, self.cfg.build_dir] + self.args)
Dprobe_rs.py22 self.args = ['--chip', chip]
25 self.args += ['--probe', dev_id]
28 self.args += tool_opt
60 def do_create(cls, cfg, args): argument
61 return ProbeRsBinaryRunner(cfg, args.chip,
62 probe_rs=args.probe_rs,
63 dev_id=args.dev_id,
64 erase=args.erase,
65 tool_opt=args.tool_opt)
79 + self.args + download_args)
[all …]
Desp32.py85 def do_create(cls, cfg, args): argument
86 if args.esp_tool:
87 espidf = args.esp_tool
89 espidf = path.join(args.esp_idf_path, 'tools', 'esptool_py',
93 cfg, args.esp_device, boot_address=args.esp_boot_address,
94 part_table_address=args.esp_partition_table_address,
95 app_address=args.esp_app_address, erase=args.erase, reset=args.reset,
96 baud=args.esp_baud_rate, flash_size=args.esp_flash_size,
97 flash_freq=args.esp_flash_freq, flash_mode=args.esp_flash_mode,
98 espidf=espidf, bootloader_bin=args.esp_flash_bootloader,
[all …]
Dnrfutil.py37 def do_create(cls, cfg, args): argument
38 return NrfUtilBinaryRunner(cfg, args.nrf_family, args.softreset,
39 args.dev_id, erase=args.erase,
40 reset=args.reset,
41 tool_opt=args.tool_opt, force=args.force,
42 recover=args.recover)
44 def _exec(self, args): argument
47 cmd = ['nrfutil', '--json', 'device'] + args
59 if 'x-execute-batch' in args:
/Zephyr-Core-3.7.0/subsys/net/lib/http/headers/
Dmlog.h14 #define LOG_INF(fmt, args...) printf("I: " fmt "\n", ##args) argument
15 #define LOG_ERR(fmt, args...) printf("E: " fmt "\n", ##args) argument
16 #define LOG_DBG(fmt, args...) printf("D: " fmt "\n", ##args) argument
/Zephyr-Core-3.7.0/scripts/coredump/
Dcoredump_gdbserver.py59 args = parse_args()
66 if args.debug:
68 elif args.verbose:
75 if args.debug:
84 if args.debug:
86 elif args.verbose:
91 if not os.path.isfile(args.elffile):
92 logger.error(f"Cannot find file {args.elffile}, exiting...")
95 if not os.path.isfile(args.logfile):
96 logger.error(f"Cannot find file {args.logfile}, exiting...")
[all …]
/Zephyr-Core-3.7.0/scripts/
Dlist_boards.py110 def find_arch2boards(args): argument
111 arch2board_set = find_arch2board_set(args)
116 def find_boards(args): argument
117 return sorted(itertools.chain(*find_arch2board_set(args).values()),
121 def find_arch2board_set(args): argument
122 arches = sorted(find_arches(args))
125 for root in unique_paths(args.board_roots):
126 for arch, boards in find_arch2board_set_in(root, arches, args.board_dir).items():
127 if args.board is not None:
128 ret[arch] |= {b for b in boards if b.name == args.board}
[all …]
Dlist_hardware.py185 def find_v2_archs(args): argument
187 for root in unique_paths(args.arch_roots):
200 if args.arch is not None:
202 lambda arch: arch.get('name') == args.arch, archs['archs']))}
213 def find_v2_systems(args): argument
216 for root in unique_paths(args.soc_roots):
253 def dump_v2_archs(args): argument
254 archs = find_v2_archs(args)
257 if args.cmakeformat is not None:
258 info = args.cmakeformat.format(
[all …]
/Zephyr-Core-3.7.0/scripts/pylib/pytest-twister-harness/tests/resources/
Dmock_script.py23 args = parser.parse_args()
25 if args.exception:
29 if args.long_sleep:
33 time.sleep(args.sleep)
38 time.sleep(args.sleep)
41 print('Returns with code', args.return_code, flush=True)
43 return args.return_code
/Zephyr-Core-3.7.0/scripts/logging/dictionary/
Dlog_parser.py45 def read_log_file(args): argument
52 if args.hex:
53 if args.rawhex:
55 logdata = dictionary_parser.utils.convert_hex_file_to_bin(args.logfile)
59 with open(args.logfile, "r", encoding="iso-8859-1") as hexfile:
92 logfile = open(args.logfile, "rb")
94 logger.error("ERROR: Cannot open binary log data file: %s, exiting...", args.logfile)
106 args = parse_args()
110 if args.debug:
116 database = LogDatabase.read_json_database(args.dbfile)
[all …]
/Zephyr-Core-3.7.0/soc/intel/intel_adsp/tools/
Dcavstool_client.py36 def __init__(self, host, port, args): argument
39 self.args = args
94 filename = str(self.args.fw_file)
112 if args.log_only:
116 client = cavstool_client(HOST, PORT, args)
123 client = cavstool_client(HOST, PORT, args)
138 args = ap.parse_args() variable
140 if args.quiet:
143 if args.log_port:
144 PORT_LOG = args.log_port
[all …]
/Zephyr-Core-3.7.0/scripts/release/
Dlist_backports.py81 args = parser.parse_args()
83 if args.includes:
84 if getattr(args, 'start'):
88 if getattr(args, 'end'):
93 if not getattr(args, 'start'):
98 if not getattr(args, 'end'):
99 setattr(args, 'end', datetime.now())
101 if args.end < args.start:
103 f'end date {args.end} is before start date {args.start}')
106 if args.tokenfile:
[all …]
/Zephyr-Core-3.7.0/scripts/tracing/
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
102 print('Data capture interrupted, data saved into {}'.format(args.output))

12345678910>>...22