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
57 options: Command line options object
67 options)
70 for upto in range(0, len(series.commits), options.step):
78 if options.verbose:
105 def DoBuildman(options, args, toolchains=None, make_func=None, boards=None, argument
110 options: Command line options object
123 if options.full_help:
135 options.git_dir = os.path.join(options.git, '.git')
141 if options.fetch_arch:
142 if options.fetch_arch == 'list':
148 fetch_arch = options.fetch_arch
162 toolchains.Scan(options.list_tool_chains)
163 if options.list_tool_chains:
171 count = options.count
172 has_range = options.branch and '..' in options.branch
174 if not options.branch:
178 count, msg = gitutil.CountCommitsInRange(options.git_dir,
179 options.branch)
181 count, msg = gitutil.CountCommitsInBranch(options.git_dir,
182 options.branch)
187 options.branch))
194 "set branch's upstream or use -c flag" % options.branch)
199 board_file = os.path.join(options.git, 'boards.cfg')
200 status = subprocess.call([os.path.join(options.git,
206 boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
209 if options.exclude:
210 for arg in options.exclude:
227 if options.branch:
230 range_expr = options.branch
232 range_expr = gitutil.GetRangeInBranch(options.git_dir,
233 options.branch)
234 upstream_commit = gitutil.GetUpstream(options.git_dir,
235 options.branch)
237 options.git_dir, 1, series=None, allow_overwrite=True)
240 options.git_dir, None, series, allow_overwrite=True)
243 series = patchstream.GetMetaDataForList(options.branch,
244 options.git_dir, count, series=None, allow_overwrite=True)
247 if not options.dry_run:
248 options.verbose = True
249 if not options.summary:
250 options.show_errors = True
254 if not options.threads:
255 options.threads = min(multiprocessing.cpu_count(), len(selected))
256 if not options.jobs:
257 options.jobs = max(1, (multiprocessing.cpu_count() +
260 if not options.step:
261 options.step = len(series.commits) - 1
263 gnu_make = command.Output(os.path.join(options.git,
268 # Create a new builder with the selected options.
269 output_dir = options.output_dir
270 if options.branch:
271 dirname = options.branch.replace('/', '_')
274 if not options.no_subdirs:
275 output_dir = os.path.join(options.output_dir, dirname)
279 builder = Builder(toolchains, output_dir, options.git_dir,
280 options.threads, options.jobs, gnu_make=gnu_make, checkout=True,
281 show_unknown=options.show_unknown, step=options.step,
282 no_subdirs=options.no_subdirs, full_path=options.full_path,
283 verbose_build=options.verbose_build,
284 incremental=options.incremental,
285 per_board_out_dir=options.per_board_out_dir,
286 config_only=options.config_only,
287 squash_config_y=not options.preserve_config_y,
288 warnings_as_errors=options.warnings_as_errors)
289 builder.force_config_on_failure = not options.quick
294 if options.dry_run:
295 ShowActions(series, why_selected, selected, builder, options)
297 builder.force_build = options.force_build
298 builder.force_build_failures = options.force_build_failures
299 builder.force_reconfig = options.force_reconfig
300 builder.in_tree = options.in_tree
313 Print(GetActionSummary(options.summary, commits, board_selected,
314 options))
317 if options.show_bloat:
318 options.show_detail = True
319 builder.SetDisplayOptions(options.show_errors, options.show_sizes,
320 options.show_detail, options.show_bloat,
321 options.list_error_boards,
322 options.show_config,
323 options.show_environment)
324 if options.summary:
328 options.keep_outputs, options.verbose)