diff options
author | Simon Glass <sjg@chromium.org> | 2016-11-26 03:15:55 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-12-19 19:09:55 (GMT) |
commit | 75db0860b1cee8c3b2539878a227c37bfce00046 (patch) | |
tree | f83f5581222fc9d81100a5a0e0bf3758709ca967 /tools/binman/etype/u_boot_dtb_with_ucode.py | |
parent | c49deb837cb1ba0a64869fcb4fabac11d3e94ae0 (diff) | |
download | u-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.py | 4 |
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 |