x86: efi: payload: Make EFI payload build again
authorBin Meng <bmeng.cn@gmail.com>
Thu, 25 Aug 2016 08:47:17 +0000 (01:47 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 30 Aug 2016 01:26:05 +0000 (09:26 +0800)
Since commit 73c5c39 "Makefile: Drop unnecessary -dtb suffixes",
EFI payload does not build anymore. This fixes the build.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/efi.h
lib/efi/efi_stub.c

index 1dbc3b77b42f6429e2a73ca23798a36d0e7f83a4..21921f1d4f46137731d869bc7bd93529b1c64486 100644 (file)
@@ -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
index 8b4bb4e78fecb76c8099de66468a39ff3bdb0874..1814960572890e100c0884e45e35961a180d5173 100644 (file)
@@ -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 -
-              (ulong)_binary_u_boot_dtb_bin_start);
+       memcpy((void *)CONFIG_SYS_TEXT_BASE, _binary_u_boot_bin_start,
+              (ulong)_binary_u_boot_bin_end -
+              (ulong)_binary_u_boot_bin_start);
 
 #ifdef DEBUG
        puts("EFI table at ");