Lines Matching +full:stdout +full:- +full:path

3 # SPDX-License-Identifier:      GPL-2.0+
15 RETURN_CODE_RETRY = -1
73 """This thread builds U-Boot for a particular board.
75 An input queue provides each new job. We run 'make' to build U-Boot
80 thread_num: Our thread number (0-n-1), used to decide on a
101 mrproper - can be called to clean source
102 config - called to configure for a board
103 build - the main make invocation - it does the build
118 the build and just return the previously-saved results.
121 commit_upto: Commit number to build (0...n-1)
132 - CommandResult object containing the results of the build
133 - boolean indicating whether 'make config' is still needed
135 # Create a default result - it will be overwritte by the call to
143 out_rel_dir = os.path.join('..', brd.target)
146 out_dir = os.path.join(work_dir, out_rel_dir)
150 result.already_done = os.path.exists(done_file)
163 if os.path.exists(err_file) and os.stat(err_file).st_size:
176 result.stdout = ''
186 git_dir = os.path.join(work_dir, '.git')
197 src_dir = os.path.realpath(work_dir)
205 # Symlinks can confuse U-Boot's Makefile since
206 # we may use '..' in our path, so remove them.
207 out_dir = os.path.realpath(out_dir)
216 args.append('-s')
218 args.extend(['-j', str(self.builder.num_jobs)])
241 result.stdout = config_out + result.stdout
265 # If we think this might have been aborted with Ctrl-C, record the
280 outfile = os.path.join(build_dir, 'log')
282 if result.stdout:
284 fd.write(result.stdout.decode('UTF-8').encode('ASCII', 'replace'))
291 fd.write(result.stderr.decode('UTF-8').encode('ASCII', 'replace'))
292 elif os.path.exists(errfile):
305 with open(os.path.join(build_dir, 'toolchain'), 'w') as fd:
307 print >>fd, 'path', result.toolchain.path
315 for fname in ['u-boot', 'spl/u-boot-spl']:
316 cmd = ['%snm' % self.toolchain.cross, '--size-sort', fname]
320 if nm_result.stdout:
324 print >>fd, nm_result.stdout,
326 cmd = ['%sobjdump' % self.toolchain.cross, '-h', fname]
331 if dump_result.stdout:
335 print >>fd, dump_result.stdout,
336 for line in dump_result.stdout.splitlines():
345 if size_result.stdout:
346 lines.append(size_result.stdout.splitlines()[1] + ' ' +
361 self.CopyFiles(result.out_dir, build_dir, dirname, ['u-boot.cfg',
362 'spl/u-boot-spl.cfg', 'tpl/u-boot-tpl.cfg', '.config',
367 self.CopyFiles(result.out_dir, build_dir, '', ['u-boot*', '*.bin',
369 'spl/u-boot-spl*'])
375 out_dir: Path to output directory containing the files
377 dirname: Source directory, '' for normal U-Boot, 'spl' for SPL
382 file_list = glob.glob(os.path.join(out_dir, dirname, pattern))
384 target = os.path.basename(fname)
386 base, ext = os.path.splitext(target)
388 target = '%s-%s%s' % (base, dirname, ext)
389 shutil.copy(fname, os.path.join(build_dir, target))
429 # We could avoid this by using -Werror everywhere...
436 # errors/warnings (e.g. 2-3x slower even if only 10% of builds
461 # Just build the currently checked-out build