Lines Matching full:options

26 def GetActionSummary(is_summary, commits, selected, options):  argument
34 count = (count + options.step - 1) / options.step
41 str += ' (%d thread%s, %d job%s per thread)' % (options.threads,
42 GetPlural(options.threads), options.jobs, GetPlural(options.jobs))
45 def ShowActions(series, why_selected, boards_selected, builder, options): argument
58 options: Command line options object
68 options)
71 for upto in range(0, len(series.commits), options.step):
79 if options.verbose:
84 def DoBuildman(options, args, toolchains=None, make_func=None, boards=None, argument
89 options: Command line options object
102 if options.full_help:
114 options.git_dir = os.path.join(options.git, '.git')
120 if options.fetch_arch:
121 if options.fetch_arch == 'list':
127 fetch_arch = options.fetch_arch
141 toolchains.Scan(options.list_tool_chains)
142 if options.list_tool_chains:
150 count = options.count
151 has_range = options.branch and '..' in options.branch
153 if not options.branch:
157 count, msg = gitutil.CountCommitsInRange(options.git_dir,
158 options.branch)
160 count, msg = gitutil.CountCommitsInBranch(options.git_dir,
161 options.branch)
166 options.branch))
173 "set branch's upstream or use -c flag" % options.branch)
178 board_file = os.path.join(options.git, 'boards.cfg')
179 status = subprocess.call([os.path.join(options.git,
185 boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
188 if options.exclude:
189 for arg in options.exclude:
206 if options.branch:
209 range_expr = options.branch
211 range_expr = gitutil.GetRangeInBranch(options.git_dir,
212 options.branch)
213 upstream_commit = gitutil.GetUpstream(options.git_dir,
214 options.branch)
216 options.git_dir, 1, series=None, allow_overwrite=True)
219 options.git_dir, None, series, allow_overwrite=True)
222 series = patchstream.GetMetaDataForList(options.branch,
223 options.git_dir, count, series=None, allow_overwrite=True)
226 if not options.dry_run:
227 options.verbose = True
228 if not options.summary:
229 options.show_errors = True
233 if not options.threads:
234 options.threads = min(multiprocessing.cpu_count(), len(selected))
235 if not options.jobs:
236 options.jobs = max(1, (multiprocessing.cpu_count() +
239 if not options.step:
240 options.step = len(series.commits) - 1
242 gnu_make = command.Output(os.path.join(options.git,
247 # Create a new builder with the selected options.
248 output_dir = options.output_dir
249 if options.branch:
250 dirname = options.branch.replace('/', '_')
253 if not options.no_subdirs:
254 output_dir = os.path.join(options.output_dir, dirname)
255 if (clean_dir and output_dir != options.output_dir and
258 builder = Builder(toolchains, output_dir, options.git_dir,
259 options.threads, options.jobs, gnu_make=gnu_make, checkout=True,
260 show_unknown=options.show_unknown, step=options.step,
261 no_subdirs=options.no_subdirs, full_path=options.full_path,
262 verbose_build=options.verbose_build,
263 incremental=options.incremental,
264 per_board_out_dir=options.per_board_out_dir,
265 config_only=options.config_only,
266 squash_config_y=not options.preserve_config_y)
267 builder.force_config_on_failure = not options.quick
272 if options.dry_run:
273 ShowActions(series, why_selected, selected, builder, options)
275 builder.force_build = options.force_build
276 builder.force_build_failures = options.force_build_failures
277 builder.force_reconfig = options.force_reconfig
278 builder.in_tree = options.in_tree
291 Print(GetActionSummary(options.summary, commits, board_selected,
292 options))
295 if options.show_bloat:
296 options.show_detail = True
297 builder.SetDisplayOptions(options.show_errors, options.show_sizes,
298 options.show_detail, options.show_bloat,
299 options.list_error_boards,
300 options.show_config)
301 if options.summary:
305 options.keep_outputs, options.verbose)