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

Bin Meng bmeng.cn at gmail.com
Mon Aug 22 11:28:38 CEST 2016


Hi Phenix,

On Sun, Aug 21, 2016 at 4:29 PM, Yan Phenix <phenix_yw at hotmail.com> wrote:
> 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.
>

It's a bug. Patch will be sent out soon.

Regards,
Bin


More information about the U-Boot mailing list