[U-Boot] [PATCH 4/5] moveconfig: Error if missing the include/autoconf.mk

Joe Hershberger joe.hershberger at ni.com
Thu May 7 23:22:59 CEST 2015


The main image autoconf.mk certainly had better exist. I'm not sure
about SPL and TPL, but at least this one. Check for this and error if
missing.

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

 tools/moveconfig.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index ab53476..7635186 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -184,6 +184,8 @@ class KconfigParser:
                                     'autoconf.mk')
 
             if not os.path.exists(autoconf):
+                if img == '.':
+                    return True
                 values.append('')
                 continue
 
@@ -228,6 +230,7 @@ class KconfigParser:
                 if prefixes[line] != '+':
                     line = prefixes[line] + ':' + line
                 f.write(line + '\n')
+        return False
 
 class Slot:
 
@@ -308,7 +311,8 @@ class Slot:
             return True
 
         if self.state == STATE_SILENTOLDCONFIG:
-            self.parser.update_defconfig(self.defconfig)
+            if self.parser.update_defconfig(self.defconfig):
+                self.defconfig_error('ERROR - autoconf.mk not found')
             self.state = STATE_IDLE
             return True
 
-- 
1.7.11.5



More information about the U-Boot mailing list