Commit 3dc51ab0 authored by Bin Meng's avatar Bin Meng

x86: efi: payload: Make EFI payload build again

Since commit 73c5c399 "Makefile: Drop unnecessary -dtb suffixes",
EFI payload does not build anymore. This fixes the build.
Signed-off-by: default avatarBin Meng <>
Reviewed-by: default avatarSimon Glass <>
parent 4cc00f06
......@@ -278,7 +278,7 @@ struct efi_priv {
extern char image_base[];
/* Start and end of U-Boot image (for payload) */
extern char _binary_u_boot_dtb_bin_start[], _binary_u_boot_dtb_bin_end[];
extern char _binary_u_boot_bin_start[], _binary_u_boot_bin_end[];
* efi_get_sys_table() - Get access to the main EFI system table
......@@ -354,9 +354,9 @@ efi_status_t efi_main(efi_handle_t image, struct efi_system_table *sys_table)
/* The EFI UART won't work now, switch to a debug one */
use_uart = true;
memcpy((void *)CONFIG_SYS_TEXT_BASE, _binary_u_boot_dtb_bin_start,
(ulong)_binary_u_boot_dtb_bin_end -
memcpy((void *)CONFIG_SYS_TEXT_BASE, _binary_u_boot_bin_start,
(ulong)_binary_u_boot_bin_end -
#ifdef DEBUG
puts("EFI table at ");
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment