From 924c4932a50a248a74f0d08a311ec50ee7dcb71e Mon Sep 17 00:00:00 2001 From: Karthick Shanmugham Date: Tue, 18 Aug 2020 14:49:01 +0530 Subject: [PATCH] tools: pack: Added Filename null check during memory specific image Signed-off-by: Karthick Shanmugham Change-Id: Ic61372ac9c69c6e951f86a70aaaa58b23010ccc2 --- tools/pack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pack.py b/tools/pack.py index 3971e99575..88492b3407 100644 --- a/tools/pack.py +++ b/tools/pack.py @@ -1208,7 +1208,7 @@ class Pack(object): print "Skipping partition '%s'" % section.attrib['label'] pass - if section != None and section.get('filename_mem' + memory_size) != None: + if section != None and filename != "" and section.get('filename_mem' + memory_size) != None: filename = section.get('filename_mem' + memory_size) if section != None and atf == "true" and section.get('filename_atf') != None: @@ -1613,7 +1613,7 @@ class Pack(object): print "Skipping partition '%s'" % section.attrib['label'] pass - if section != None and section.get('filename_mem' + memory_size) != None: + if section != None and filename != "" and section.get('filename_mem' + memory_size) != None: filename = section.get('filename_mem' + memory_size) if section != None and atf == "true" and section.get('filename_atf') != None: