Skip to content

Commit

Permalink
buildman: Write the environment out to an 'env' file
Browse files Browse the repository at this point in the history
Sometimes it is useful to see the environment that was used to build
U-Boot. Write this out to a file in the build directory.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 committed Feb 9, 2019
1 parent d3de385 commit e5fc79e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/buildman/builderthread.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ def _WriteResult(self, result, keep_outputs):

# Write out the image and function size information and an objdump
env = result.toolchain.MakeEnvironment(self.builder.full_path)
with open(os.path.join(build_dir, 'env'), 'w') as fd:
for var in sorted(env.keys()):
print >>fd, '%s="%s"' % (var, env[var])
lines = []
for fname in ['u-boot', 'spl/u-boot-spl']:
cmd = ['%snm' % self.toolchain.cross, '--size-sort', fname]
Expand Down

0 comments on commit e5fc79e

Please sign in to comment.