Skip to contentSkip to conversation

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

PATCH New Tom Rini 2 participants 2 messages Mar 20, 2015 – Mar 23, 2015

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 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.

---
 tools/buildman/builderthread.py |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
tools/buildman/builderthread.py +2 -3
index efb62f1..0550d26 100644
@@ -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:
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 buildman: Keep more outputs with the --keep-outputs flag

Quoted 7 lines · Tom Rini

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.

Quoted 5 lines
---
 tools/buildman/builderthread.py |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)