builder.py (5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c) builder.py (bb1501f2c22c979961b735db775605cccedd98f6)
1# Copyright (c) 2013 The Chromium OS Authors.
2#
3# Bloat-o-meter code used here Copyright 2004 Matt Mackall <mpm@selenic.com>
4#
5# SPDX-License-Identifier: GPL-2.0+
6#
7
8import collections

--- 161 unchanged lines hidden (view full) ---

170 def __init__(self, rc, err_lines, sizes, func_sizes):
171 self.rc = rc
172 self.err_lines = err_lines
173 self.sizes = sizes
174 self.func_sizes = func_sizes
175
176 def __init__(self, toolchains, base_dir, git_dir, num_threads, num_jobs,
177 gnu_make='make', checkout=True, show_unknown=True, step=1,
1# Copyright (c) 2013 The Chromium OS Authors.
2#
3# Bloat-o-meter code used here Copyright 2004 Matt Mackall <mpm@selenic.com>
4#
5# SPDX-License-Identifier: GPL-2.0+
6#
7
8import collections

--- 161 unchanged lines hidden (view full) ---

170 def __init__(self, rc, err_lines, sizes, func_sizes):
171 self.rc = rc
172 self.err_lines = err_lines
173 self.sizes = sizes
174 self.func_sizes = func_sizes
175
176 def __init__(self, toolchains, base_dir, git_dir, num_threads, num_jobs,
177 gnu_make='make', checkout=True, show_unknown=True, step=1,
178 no_subdirs=False):
178 no_subdirs=False, full_path=False):
179 """Create a new Builder object
180
181 Args:
182 toolchains: Toolchains object to use for building
183 base_dir: Base directory to use for builder
184 git_dir: Git directory containing source repository
185 num_threads: Number of builder threads to run
186 num_jobs: Number of jobs to run at once (passed to make as -j)
187 gnu_make: the command name of GNU Make.
188 checkout: True to check out source, False to skip that step.
189 This is used for testing.
190 show_unknown: Show unknown boards (those not built) in summary
191 step: 1 to process every commit, n to process every nth commit
179 """Create a new Builder object
180
181 Args:
182 toolchains: Toolchains object to use for building
183 base_dir: Base directory to use for builder
184 git_dir: Git directory containing source repository
185 num_threads: Number of builder threads to run
186 num_jobs: Number of jobs to run at once (passed to make as -j)
187 gnu_make: the command name of GNU Make.
188 checkout: True to check out source, False to skip that step.
189 This is used for testing.
190 show_unknown: Show unknown boards (those not built) in summary
191 step: 1 to process every commit, n to process every nth commit
192 no_subdirs: Don't create subdirectories when building current
193 source for a single board
194 full_path: Return the full path in CROSS_COMPILE and don't set
195 PATH
192 """
193 self.toolchains = toolchains
194 self.base_dir = base_dir
195 self._working_dir = os.path.join(base_dir, '.bm-work')
196 self.threads = []
197 self.active = True
198 self.do_make = self.Make
199 self.gnu_make = gnu_make

--- 10 unchanged lines hidden (view full) ---

210 self._next_delay_update = datetime.now()
211 self.force_config_on_failure = True
212 self.force_build_failures = False
213 self.force_reconfig = False
214 self._step = step
215 self.in_tree = False
216 self._error_lines = 0
217 self.no_subdirs = no_subdirs
196 """
197 self.toolchains = toolchains
198 self.base_dir = base_dir
199 self._working_dir = os.path.join(base_dir, '.bm-work')
200 self.threads = []
201 self.active = True
202 self.do_make = self.Make
203 self.gnu_make = gnu_make

--- 10 unchanged lines hidden (view full) ---

214 self._next_delay_update = datetime.now()
215 self.force_config_on_failure = True
216 self.force_build_failures = False
217 self.force_reconfig = False
218 self._step = step
219 self.in_tree = False
220 self._error_lines = 0
221 self.no_subdirs = no_subdirs
222 self.full_path = full_path
218
219 self.col = terminal.Color()
220
221 self._re_function = re.compile('(.*): In function.*')
222 self._re_files = re.compile('In file included from.*')
223 self._re_warning = re.compile('(.*):(\d*):(\d*): warning: .*')
224 self._re_note = re.compile('(.*):(\d*):(\d*): note: this is the location of the previous.*')
225

--- 949 unchanged lines hidden ---
223
224 self.col = terminal.Color()
225
226 self._re_function = re.compile('(.*): In function.*')
227 self._re_files = re.compile('In file included from.*')
228 self._re_warning = re.compile('(.*):(\d*):(\d*): warning: .*')
229 self._re_note = re.compile('(.*):(\d*):(\d*): note: this is the location of the previous.*')
230

--- 949 unchanged lines hidden ---