tools: pack: Added Filename null check during memory specific image

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Ic61372ac9c69c6e951f86a70aaaa58b23010ccc2
This commit is contained in:
Karthick Shanmugham 2020-08-18 14:49:01 +05:30 committed by Gerrit - the friendly Code Review server
parent 10994a1641
commit 924c4932a5

View file

@ -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: