[U-Boot] [PATCH] 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: Tom Rini trini@konsulko.com --- tools/buildman/builderthread.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index efb62f1..0550d26 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -333,9 +333,8 @@ class BuilderThread(threading.Thread):
# Now write the actual build output if keep_outputs: - patterns = ['u-boot', '*.bin', 'u-boot.dtb', '*.map', '*.img', - 'include/autoconf.mk', 'spl/u-boot-spl', - 'spl/u-boot-spl.bin'] + patterns = ['u-boot*', '*.bin', '*.map', '*.img', 'MLO', + 'include/autoconf.mk', 'spl/u-boot-spl*' ] for pattern in patterns: file_list = glob.glob(os.path.join(result.out_dir, pattern)) for fname in file_list:

On 20 March 2015 at 08:50, Tom Rini trini@konsulko.com wrote:
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: Tom Rini trini@konsulko.com
tools/buildman/builderthread.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Acked-by: Simon Glass sjg@chromium.org
participants (2)
-
Simon Glass
-
Tom Rini