Lines Matching full:options
25 def GetActionSummary(is_summary, commits, selected, options): argument
33 count = (count + options.step - 1) / options.step
40 str += ' (%d thread%s, %d job%s per thread)' % (options.threads,
41 GetPlural(options.threads), options.jobs, GetPlural(options.jobs))
44 def ShowActions(series, why_selected, boards_selected, builder, options, argument
58 options: Command line options object
69 options)
72 for upto in range(0, len(series.commits), options.step):
80 if options.verbose:
110 def DoBuildman(options, args, toolchains=None, make_func=None, boards=None, argument
115 options: Command line options object
128 if options.full_help:
140 options.git_dir = os.path.join(options.git, '.git')
144 toolchains = toolchain.Toolchains(options.override_toolchain)
146 if options.fetch_arch:
147 if options.fetch_arch == 'list':
153 fetch_arch = options.fetch_arch
167 toolchains.Scan(options.list_tool_chains and options.verbose)
168 if options.list_tool_chains:
176 count = options.count
177 has_range = options.branch and '..' in options.branch
179 if not options.branch:
183 count, msg = gitutil.CountCommitsInRange(options.git_dir,
184 options.branch)
186 count, msg = gitutil.CountCommitsInBranch(options.git_dir,
187 options.branch)
192 options.branch))
199 "set branch's upstream or use -c flag" % options.branch)
204 board_file = os.path.join(options.git, 'boards.cfg')
205 status = subprocess.call([os.path.join(options.git,
211 boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
214 if options.exclude:
215 for arg in options.exclude:
219 if options.boards:
221 for b in options.boards:
240 if options.branch:
243 range_expr = options.branch
245 range_expr = gitutil.GetRangeInBranch(options.git_dir,
246 options.branch)
247 upstream_commit = gitutil.GetUpstream(options.git_dir,
248 options.branch)
250 options.git_dir, 1, series=None, allow_overwrite=True)
253 options.git_dir, None, series, allow_overwrite=True)
256 series = patchstream.GetMetaDataForList(options.branch,
257 options.git_dir, count, series=None, allow_overwrite=True)
260 if not options.dry_run:
261 options.verbose = True
262 if not options.summary:
263 options.show_errors = True
267 if not options.threads:
268 options.threads = min(multiprocessing.cpu_count(), len(selected))
269 if not options.jobs:
270 options.jobs = max(1, (multiprocessing.cpu_count() +
273 if not options.step:
274 options.step = len(series.commits) - 1
276 gnu_make = command.Output(os.path.join(options.git,
281 # Create a new builder with the selected options.
282 output_dir = options.output_dir
283 if options.branch:
284 dirname = options.branch.replace('/', '_')
287 if not options.no_subdirs:
288 output_dir = os.path.join(options.output_dir, dirname)
292 builder = Builder(toolchains, output_dir, options.git_dir,
293 options.threads, options.jobs, gnu_make=gnu_make, checkout=True,
294 show_unknown=options.show_unknown, step=options.step,
295 no_subdirs=options.no_subdirs, full_path=options.full_path,
296 verbose_build=options.verbose_build,
297 incremental=options.incremental,
298 per_board_out_dir=options.per_board_out_dir,
299 config_only=options.config_only,
300 squash_config_y=not options.preserve_config_y,
301 warnings_as_errors=options.warnings_as_errors)
302 builder.force_config_on_failure = not options.quick
307 if options.dry_run:
308 ShowActions(series, why_selected, selected, builder, options,
311 builder.force_build = options.force_build
312 builder.force_build_failures = options.force_build_failures
313 builder.force_reconfig = options.force_reconfig
314 builder.in_tree = options.in_tree
327 Print(GetActionSummary(options.summary, commits, board_selected,
328 options))
331 if options.show_bloat:
332 options.show_detail = True
333 builder.SetDisplayOptions(options.show_errors, options.show_sizes,
334 options.show_detail, options.show_bloat,
335 options.list_error_boards,
336 options.show_config,
337 options.show_environment)
338 if options.summary:
342 options.keep_outputs, options.verbose)