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

Alexander Graf agraf at suse.de
Mon Oct 9 04:46:10 UTC 2017



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.

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.


Alex


More information about the U-Boot mailing list