[U-Boot] [PATCH v3 18/21] efi: sandbox: Add a simple 'bootefi test' command

Simon Glass sjg at chromium.org
Wed May 16 15:40:30 UTC 2018


Hi Heinrich,

On 19 February 2018 at 12:40, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> On 02/19/2018 04:48 PM, Simon Glass wrote:
>>
>> This jumps to test code which can call directly into the EFI support. It
>> does not need a separate image so it is easy to write tests with it.
>>
>> This test can be executed without causing problems to the run-time
>> environemnt (e.g. U-Boot does not need to reboot afterwards).
>>
>> For now the test just outputs a message. To try it:
>
>
> Please, explain what the use of the command shall be.
> We already have bootefi selftest.
> We shouldn't invent the wheel twice.

These are different wheels, With 'selftest' we build an EFI
application and run it as a binary. With 'test' we just call into the
U-Boot code. IMO the latter is much easier to debug and test since it
is a single application - e.g. it can be run entirely within gdb.

Regards,
Simon


More information about the U-Boot mailing list