diff options
author | Simon Glass <sjg@chromium.org> | 2019-01-07 16:44:23 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-02-09 12:50:22 -0700 |
commit | e5fc79ea718795a1dd97ca27e26913e4cc0150c4 (patch) | |
tree | 6ebf448c0be68414ae62d02e1c5ba0f49244104f | |
parent | d3de38554a35e96872e43644b683e32f018c46a8 (diff) | |
download | u-boot-e5fc79ea718795a1dd97ca27e26913e4cc0150c4.tar.gz u-boot-e5fc79ea718795a1dd97ca27e26913e4cc0150c4.tar.bz2 u-boot-e5fc79ea718795a1dd97ca27e26913e4cc0150c4.zip |
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>
-rw-r--r-- | tools/buildman/builderthread.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index 6b156f152d..8a9d47cd5e 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -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] |