mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
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>
This commit is contained in:
@@ -62,6 +62,12 @@ class Entry_u_boot_ucode(Entry_blob):
|
|||||||
self.data = ''
|
self.data = ''
|
||||||
return True
|
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
|
# Get the microcode from the device tree entry
|
||||||
fdt_entry = self.image.FindEntryType('u-boot-dtb-with-ucode')
|
fdt_entry = self.image.FindEntryType('u-boot-dtb-with-ucode')
|
||||||
if not fdt_entry or not fdt_entry.ucode_data:
|
if not fdt_entry or not fdt_entry.ucode_data:
|
||||||
|
Reference in New Issue
Block a user