summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-01-18 03:33:00 -0800
committerBin Meng <bmeng.cn@gmail.com>2017-02-07 13:27:20 +0800
commit9d1adf04845a1509a27f182acf2b1c7fdb60439c (patch)
tree287f05e447cf2958f09a55cbaeba059949109bce /tools
parentcdfc0a055d1988c7531799754feeeda8f4deea28 (diff)
downloadu-boot-9d1adf04845a1509a27f182acf2b1c7fdb60439c.tar.gz
u-boot-9d1adf04845a1509a27f182acf2b1c7fdb60439c.tar.bz2
u-boot-9d1adf04845a1509a27f182acf2b1c7fdb60439c.zip
tools: binman: Handle optional microcode case in SPL image
On platforms which do not require microcode in SPL, handle such case like U-Boot proper. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/binman/etype/u_boot_ucode.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/binman/etype/u_boot_ucode.py b/tools/binman/etype/u_boot_ucode.py
index 8fe27acb24..8e51e99a11 100644
--- a/tools/binman/etype/u_boot_ucode.py
+++ b/tools/binman/etype/u_boot_ucode.py
@@ -62,6 +62,12 @@ class Entry_u_boot_ucode(Entry_blob):
self.data = ''
return True
+ # 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 = ''
+ return True
+
# Get the microcode from the device tree entry
fdt_entry = self.image.FindEntryType('u-boot-dtb-with-ucode')
if not fdt_entry or not fdt_entry.ucode_data: