summaryrefslogtreecommitdiff
path: root/tools/binman/etype/u_boot_dtb_with_ucode.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-11-26 03:15:55 (GMT)
committerSimon Glass <sjg@chromium.org>2016-12-19 19:09:55 (GMT)
commit75db0860b1cee8c3b2539878a227c37bfce00046 (patch)
treef83f5581222fc9d81100a5a0e0bf3758709ca967 /tools/binman/etype/u_boot_dtb_with_ucode.py
parentc49deb837cb1ba0a64869fcb4fabac11d3e94ae0 (diff)
downloadu-boot-75db0860b1cee8c3b2539878a227c37bfce00046.tar.xz
binman: Add support for building x86 ROMs with SPL
When building for 64-bit x86 we need an SPL binary in the ROM. Add support for this. Also increase entry test code coverage to 100%. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools/binman/etype/u_boot_dtb_with_ucode.py')
-rw-r--r--tools/binman/etype/u_boot_dtb_with_ucode.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/binman/etype/u_boot_dtb_with_ucode.py b/tools/binman/etype/u_boot_dtb_with_ucode.py
index 732d10a..fc02c67 100644
--- a/tools/binman/etype/u_boot_dtb_with_ucode.py
+++ b/tools/binman/etype/u_boot_dtb_with_ucode.py
@@ -31,7 +31,9 @@ class Entry_u_boot_dtb_with_ucode(Entry_blob):
Entry_blob.ObtainContents(self)
# 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-spl-with-ucode-ptr')
+ if not ucode_dest_entry or not ucode_dest_entry.target_pos:
+ ucode_dest_entry = self.image.FindEntryType('u-boot-with-ucode-ptr')
if not ucode_dest_entry or not ucode_dest_entry.target_pos:
return True