mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-13 21:36:57 +00:00
buildman: Write the environment out to an 'env' file
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 <sjg@chromium.org>
This commit is contained in:
parent
d3de38554a
commit
e5fc79ea71
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,9 @@ class BuilderThread(threading.Thread):
|
|||
|
||||
# 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]
|
||||
|
|
Loading…
Add table
Reference in a new issue