Skip to content
Snippets Groups Projects
Commit 0eb4c045 authored by Tom Rini's avatar Tom Rini Committed by Simon Glass
Browse files

buildman: Keep more outputs with the --keep-outputs flag


When told to keep outputs, be much more liberal in what files we keep.
In addition to adding 'MLO', keep anything that matches u-boot-spl.* (so
that we keep the map file as well) and anything we generate about
'u-boot itself.  A large number of bootable formats now match this and
thus it's easier to build many targets and then boot them afterwards
using buildman.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 843312dc
No related branches found
No related tags found
No related merge requests found
...@@ -353,10 +353,9 @@ class BuilderThread(threading.Thread): ...@@ -353,10 +353,9 @@ class BuilderThread(threading.Thread):
# Now write the actual build output # Now write the actual build output
if keep_outputs: if keep_outputs:
self.CopyFiles(result.out_dir, build_dir, '', ['u-boot', '*.bin', self.CopyFiles(result.out_dir, build_dir, '', ['u-boot*', '*.bin',
'u-boot.dtb', '*.map', '*.img', '*.map', '*.img', 'MLO', 'include/autoconf.mk',
'spl/u-boot-spl', 'spl/u-boot-spl.bin', 'spl/u-boot-spl*'])
'tpl/u-boot-tpl', 'tpl/u-boot-tpl.bin'])
def CopyFiles(self, out_dir, build_dir, dirname, patterns): def CopyFiles(self, out_dir, build_dir, dirname, patterns):
"""Copy files from the build directory to the output. """Copy files from the build directory to the output.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment