From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hershberger Date: Mon, 11 May 2015 12:23:15 -0500 Subject: [U-Boot] [PATCH v2 4/7] moveconfig: Error if missing the include/autoconf.mk In-Reply-To: <1431364998-2905-1-git-send-email-joe.hershberger@ni.com> References: <1431033780-2286-1-git-send-email-joe.hershberger@ni.com> <1431364998-2905-1-git-send-email-joe.hershberger@ni.com> Message-ID: <1431364998-2905-4-git-send-email-joe.hershberger@ni.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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