[U-Boot] [PATCH 08/11] efi_selftest: allow to select a single test for exexution

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Oct 9 06:14:34 UTC 2017


On 10/09/2017 06:46 AM, Alexander Graf wrote:
> 
> 
> On 08.10.17 06:57, Heinrich Schuchardt wrote:
>> The second argument of bootefi is passed as a configuration
>> table to the selftest application. It is used to select
>> a single test to be executed.
>>
>> Tests get an on_request property. If this property is set
>> the tests are only executed if explicitly requested.
>>
>> A new command 'bootefi selftest list' is added that allows to list
>> all tests.
>>
>> The invocation of efi_selftest is changed to reflect that
>> bootefi selftest list will call the Exit bootservice.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> 
> Wouldn't it make more sense to just pass "bootargs" to the EFI payload
> as command line arguments?
> 
> We could then just
> 
>   U-Boot# setenv bootargs list
>   U-Boot# bootefi selftest
> 
> to list the available self tests. Same for selecting them.

Why bootargs?

> 
> That way we would also be able to directly load Linux as EFI binary and
> pass command line arguments to it without jumping through fdt patching
> hoops.

Does the Linux EFI stub or grub.efi have a capability to receive the
command line?

Regards

Heinrich


More information about the U-Boot mailing list