From: Simon Glass Date: Mon, 7 Jan 2019 16:44:23 -0700 Subject: [U-Boot] [PATCH v2 6/7] buildman: Write the environment out to an 'env' file In-Reply-To: <20190107234424.167742-1-sjg@chromium.org> References: <20190107234424.167742-1-sjg@chromium.org> Message-ID: <20190107234424.167742-7-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: None tools/buildman/builderthread.py | 3 +++ 1 file changed, 3 insertions(+) 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] -- 2.20.1.97.g81188d93c3-goog