[U-Boot] [PATCH v4 07/10] moveconfig: Output a list of failed boards

Joe Hershberger joe.hershberger at ni.com
Fri May 15 23:40:49 CEST 2015


If boards fail, output that list to a file so that it can easily be
passed back into moveconfig.py using the -d option.

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
---

Changes in v4: None
Changes in v3: None
Changes in v2: None

 tools/moveconfig.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 15b0f2b..9e923da 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -728,6 +728,10 @@ class Slots:
             for line in msg:
                 print >> sys.stderr, color_text(self.options.color,
                                                 COLOR_LIGHT_RED, line)
+            ffail = open('moveconfig.failed', 'w')
+            for failed_board in failed_boards:
+                ffail.write("%s\n" % failed_board)
+            ffail.close()
 
 def move_config(config_attrs, options):
     """Move config options to defconfig files.
-- 
1.7.11.5



More information about the U-Boot mailing list