Commit 58ad86288fd32f1f969ac654f2074c090f0abe32

Authored by Simon Glass
Committed by Alexander Graf
1 parent 5bd828b532

x86: Enable EFI loader support

Enable this so that EFI applications (notably grub) can be run under U-Boot
on x86 platforms.

At present the 'hello world' EFI application is not supported for the
qemu-x86_efi_payload64 board. That board builds a payload consisting of a
64-bit header and a 32-bit U-Boot, which is incompatible with the way the
EFI loader builds its EFI application. The following error is obtained:

x86_64-linux-ld.bfd: i386 architecture of input file
   `lib/efi_loader/helloworld.o' is incompatible with i386:x86-64 output

This could be corrected with additional Makefile rules. For now, this
feature is disabled for that board.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[agraf: drop hello kconfig bits]
Signed-off-by: Alexander Graf <agraf@suse.de>

Showing 3 changed files with 2 additions and 2 deletions Side-by-side Diff

configs/efi-x86_defconfig
... ... @@ -34,4 +34,5 @@
34 34 CONFIG_USB_STORAGE=y
35 35 CONFIG_USB_KEYBOARD=y
36 36 CONFIG_EFI=y
  37 +# CONFIG_EFI_LOADER is not set
... ... @@ -1077,7 +1077,6 @@
1077 1077 ---------
1078 1078 - Audio
1079 1079 - Chrome OS verified boot
1080   -- Support for CONFIG_EFI_LOADER
1081 1080 - Building U-Boot to run in 64-bit mode
1082 1081  
1083 1082 References
lib/efi_loader/Kconfig
1 1 config EFI_LOADER
2 2 bool "Support running EFI Applications in U-Boot"
3   - depends on ARM && OF_LIBFDT
  3 + depends on (ARM || X86) && OF_LIBFDT
4 4 default y
5 5 help
6 6 Select this option if you want to run EFI applications (like grub2)