[U-Boot] [PATCH v2 2/2] efi_selftest: test start image

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Jan 18 10:01:20 UTC 2018



On 01/18/2018 10:30 AM, Alexander Graf wrote:
> 
> 
> On 18.01.18 08:24, Heinrich Schuchardt wrote:
>> This test checks the StartImage boot service.
>> An EFI application is loaded into memory and started.
>>
>> The test is not built on x86_64 because the relocation code for the efi
>> binary cannot be created.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> 
> Would it make sense to have 2 mini apps - one that calls ->exit() and
> one that just returns? Otherwise

Yes that makes sense. I will resubmit.

I really headed into trouble when I tried to allow building the test for 
x86_64. Building helloworld.efi fails on x86_64, too.

We should at some time dive into the mixture of 64bit and 32bit defined 
in arch/x86/config.mk:

ifneq ($(CONFIG_EFI_STUB_64BIT),)
EFI_LDS := elf_x86_64_efi.lds
EFI_CRT0 := crt0_x86_64_efi.o
EFI_RELOC := reloc_x86_64_efi.o
EFI_TARGET := --target=efi-app-ia32
else
EFI_LDS := elf_ia32_efi.lds
EFI_CRT0 := crt0_ia32_efi.o
EFI_RELOC := reloc_ia32_efi.o
EFI_TARGET := --target=efi-app-x86_64
endif

Regards

Heinrich

> 
> Reviewed-by: Alexander Graf <agraf at suse.de>
> 
> 
> Alex
> 


More information about the U-Boot mailing list