[U-Boot] [PATCH v2 25/47] efi: Support building a u-boot.efi executable

Bin Meng bmeng.cn at gmail.com
Mon Aug 3 17:51:05 CEST 2015


Hi Simon,

On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass <sjg at chromium.org> wrote:
> Add support for building U-Boot as an EFI application with a .efi suffix.
> This can be loaded by EFI provided that EFI has the same bit width (32-
> or 64-bit) as U-Boot. This unfortunate limitation is imposed by EFI.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Rename CONFIG_ARCH_EFI to CONFIG_EFI_APP
>
>  Makefile | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index 2a3119e..3fb006b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -750,6 +750,7 @@ ifneq ($(CONFIG_SPL_TARGET),)
>  ALL-$(CONFIG_SPL) += $(CONFIG_SPL_TARGET:"%"=%)
>  endif
>  ALL-$(CONFIG_REMAKE_ELF) += u-boot.elf
> +ALL-$(CONFIG_EFI_APP) += u-boot.efi

u-boot-app.efi?

>
>  ifneq ($(BUILD_ROM),)
>  ALL-$(CONFIG_X86_RESET_VECTOR) += u-boot.rom
> @@ -1078,6 +1079,10 @@ u-boot-dtb-tegra.bin: u-boot-nodtb-tegra.bin dts/dt.dtb FORCE
>  endif
>  endif
>
> +OBJCOPYFLAGS_u-boot.efi := $(OBJCOPYFLAGS_EFI)

u-boot-app.efi?

> +u-boot.efi: u-boot FORCE

u-boot-app.efi?

> +       $(call if_changed,zobjcopy)
> +
>  u-boot-img.bin: spl/u-boot-spl.bin u-boot.img FORCE
>         $(call if_changed,cat)
>
> --

Regards,
Bin


More information about the U-Boot mailing list