[U-Boot] [x86] Error building for qemu-x86 as EFI payload

Yan Phenix phenix_yw at hotmail.com
Sun Aug 21 10:29:20 CEST 2016


Hi,

I want to build u-boot for qemu-x86 as an 32-bit EFI payload.

What I have done is below:

step 1:
  make qemu-x86_defconfig
  
step 2:
  make menuconfig 
  Library routines  --->
    [*] Support running U-Boot from EFI 
        (X) Support running as an EFI payload
        (X) Produce a stub for running with 32-bit EFI 
        
step 3:
  make

But finally, it fails:  

lib/efi/efi_stub.o: In function `efi_main':
/opt/u-boot-2016.07/obj/../lib/efi/efi_stub.c:357: undefined reference to `_binary_u_boot_dtb_bin_start'
/opt/u-boot-2016.07/obj/../lib/efi/efi_stub.c:357: undefined reference to `_binary_u_boot_dtb_bin_end'
/opt/u-boot-2016.07/Makefile:1117: recipe for target 'u-boot-payload' failed
make[1]: *** [u-boot-payload] Error 1
make[1]: Leaving directory '/opt/u-boot-2016.07/obj'
Makefile:150: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Can anybody tell me what mistakes I made?  Thanks.

Best Regards!
Phenix


More information about the U-Boot mailing list