Lines Matching +full:u +full:- +full:boot +full:- +full:env
1 # SPDX-License-Identifier: GPL-2.0+
15 RETURN_CODE_RETRY = -1
76 """This thread builds U-Boot for a particular board.
78 An input queue provides each new job. We run 'make' to build U-Boot
83 thread_num: Our thread number (0-n-1), used to decide on a
104 mrproper - can be called to clean source
105 config - called to configure for a board
106 build - the main make invocation - it does the build
121 the build and just return the previously-saved results.
124 commit_upto: Commit number to build (0...n-1)
135 - CommandResult object containing the results of the build
136 - boolean indicating whether 'make config' is still needed
138 # Create a default result - it will be overwritte by the call to
201 env = self.toolchain.MakeEnvironment(self.builder.full_path)
213 # Symlinks can confuse U-Boot's Makefile since
224 args.append('-s')
226 args.extend(['-j', str(self.builder.num_jobs)])
228 args.append('KCFLAGS=-Werror')
239 'mrproper', *args, env=env)
242 *(args + config_args), env=env)
249 env=env)
276 # If we think this might have been aborted with Ctrl-C, record the
295 fd.write(result.stdout.decode('UTF-8').encode('ASCII', 'replace'))
302 fd.write(result.stderr.decode('UTF-8').encode('ASCII', 'replace'))
324 env = result.toolchain.MakeEnvironment(self.builder.full_path)
325 with open(os.path.join(build_dir, 'env'), 'w') as fd:
326 for var in sorted(env.keys()):
327 print >>fd, '%s="%s"' % (var, env[var])
329 for fname in ['u-boot', 'spl/u-boot-spl']:
330 cmd = ['%snm' % self.toolchain.cross, '--size-sort', fname]
333 raise_on_error=False, env=env)
340 cmd = ['%sobjdump' % self.toolchain.cross, '-h', fname]
343 raise_on_error=False, env=env)
358 raise_on_error=False, env=env)
363 # Extract the environment from U-Boot and dump it out
364 cmd = ['%sobjcopy' % self.toolchain.cross, '-O', 'binary',
365 '-j', '.rodata.default_environment',
366 'env/built-in.o', 'uboot.env']
369 raise_on_error=False, env=env)
370 ubootenv = os.path.join(result.out_dir, 'uboot.env')
371 self.CopyFiles(result.out_dir, build_dir, '', ['uboot.env'])
385 self.CopyFiles(result.out_dir, build_dir, dirname, ['u-boot.cfg',
386 'spl/u-boot-spl.cfg', 'tpl/u-boot-tpl.cfg', '.config',
391 self.CopyFiles(result.out_dir, build_dir, '', ['u-boot*', '*.bin',
393 'spl/u-boot-spl*'])
401 dirname: Source directory, '' for normal U-Boot, 'spl' for SPL
412 target = '%s-%s%s' % (base, dirname, ext)
453 # We could avoid this by using -Werror everywhere...
460 # errors/warnings (e.g. 2-3x slower even if only 10% of builds
485 # Just build the currently checked-out build