Skip to content
Snippets Groups Projects
Commit a9871c6e authored by Simon Glass's avatar Simon Glass
Browse files

binman: Increase test coverage back to 100%


Make a minor tweak to fix test coverage.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 9fc60b49
No related branches found
No related tags found
No related merge requests found
...@@ -58,13 +58,10 @@ class Entry_u_boot_ucode(Entry_blob): ...@@ -58,13 +58,10 @@ class Entry_u_boot_ucode(Entry_blob):
def ObtainContents(self): def ObtainContents(self):
# If the image does not need microcode, there is nothing to do # If the image does not need microcode, there is nothing to do
ucode_dest_entry = self.image.FindEntryType('u-boot-with-ucode-ptr') ucode_dest_entry = self.image.FindEntryType('u-boot-with-ucode-ptr')
if ucode_dest_entry and not ucode_dest_entry.target_pos: ucode_dest_entry_spl = self.image.FindEntryType(
self.data = '' 'u-boot-spl-with-ucode-ptr')
return True if ((not ucode_dest_entry or not ucode_dest_entry.target_pos) and
(not ucode_dest_entry_spl or not ucode_dest_entry_spl.target_pos)):
# Handle microcode in SPL image as well
ucode_dest_entry = self.image.FindEntryType('u-boot-spl-with-ucode-ptr')
if ucode_dest_entry and not ucode_dest_entry.target_pos:
self.data = '' self.data = ''
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment