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

Joe Hershberger joe.hershberger at ni.com
Mon May 11 19:23:15 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>
---

Changes in v2: None

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

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 315f4be..2e5f2ce 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