Lines Matching refs:args
189 def do_run(self, args, remainder): argument
190 self.args = args # Avoid having to pass them around
192 self.dbg('args: {} remainder: {}'.format(args, remainder),
195 source_dir = self.args.source_dir
198 if self.args.test_item:
200 item = os.path.basename(self.args.test_item)
201 if self.args.source_dir:
202 test_path = self.args.source_dir
204 test_path = os.path.dirname(self.args.test_item)
206 self.args.source_dir = test_path
213 if self.args.source_dir:
215 source_dir, self.args.source_dir))
216 self.args.source_dir = source_dir
217 self.dbg('source_dir: {} cmake_opts: {}'.format(self.args.source_dir,
218 self.args.cmake_opts),
223 if args.pristine is not None:
224 pristine = args.pristine
244 if (self.args.cmake or self.args.cmake_opts or
245 self.args.cmake_only or self.args.snippets or
246 self.args.shields or self.args.extra_conf_files or
247 self.args.extra_dtc_overlay_files):
271 self._run_cmake(board, origin, self.args.cmake_opts)
272 if args.cmake_only:
279 self._run_build(args.target, args.domain)
292 if self.args.board:
293 board, origin = self.args.board, 'command line'
301 self.args.source_dir = None
302 self.args.cmake_opts = None
307 self.args.source_dir = remainder[0]
314 self.args.cmake_opts = remainder
321 yf = os.path.join(self.args.source_dir, yp)
364 args = []
376 args.append("-D{}".format(arg.replace('"', '\"')))
381 args = ["-D{}".format(a.replace('"', '\"')) for a in config_options]
382 … args.extend(["-D{}".format(arg.replace('"', '')) for arg in non_config_options])
396 if self.args.cmake_opts:
397 self.args.cmake_opts.extend(args)
399 self.args.cmake_opts = args
401 self.args.sysbuild = sysbuild
404 args = []
406 args.append(f"CONF_FILE=\"{';'.join(extra_conf_files)}\"")
409 args.append(f"DTC_OVERLAY_FILE=\"{';'.join(extra_dtc_overlay_files)}\"")
412 args.append(f"OVERLAY_CONFIG=\"{';'.join(extra_overlay_confs)}\"")
415 args.append(f"SNIPPET=\"{';'.join(required_snippets)}\"")
418 args_expanded = ["-D{}".format(a.replace('"', '')) for a in args]
420 if self.args.cmake_opts:
421 self.args.cmake_opts.extend(args_expanded)
423 self.args.cmake_opts = args_expanded
428 app = self.args.source_dir
451 build_dir = find_build_dir(self.args.build_dir, board=board,
473 if self.args.source_dir:
474 source_dir = self.args.source_dir
538 source_abs = (os.path.abspath(self.args.source_dir)
539 if self.args.source_dir else None)
568 or self.args.board or self.config_board or
576 boards_mismatched = (self.args.board and cached_board and
577 self.args.board != cached_board)
583 format(self.build_dir, cached_board, self.args.board))
616 if self.args.cmake_opts:
617 cmake_opts.extend(self.args.cmake_opts)
618 if self.args.snippets:
620 if self.args.shields:
622 if self.args.extra_conf_files:
624 if self.args.extra_dtc_overlay_files:
635 if self.args.sysbuild or (config_sysbuild and not self.args.no_sysbuild):
654 run_cmake(final_cmake_args, dry_run=self.args.dry_run)
670 run_cmake(cmake_args, cwd=self.build_dir, dry_run=self.args.dry_run)
678 if self.args.build_opt:
680 extra_args.extend(self.args.build_opt)
681 if self.args.verbose:
683 not bool(self.args.build_opt))
700 dry_run=self.args.dry_run)