diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2017-09-15 10:06:11 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-09-18 23:53:57 +0200 |
commit | 623b3a579765f8e05723bd1eff6f8c7e56d33922 (patch) | |
tree | 6c51f2a6aa341c2e6c424201f48630d7c9c61f1c /include/efi_loader.h | |
parent | ea630ce9eae4858a2108bd019a6ef22e2bc1b3f6 (diff) | |
download | u-boot-623b3a579765f8e05723bd1eff6f8c7e56d33922.tar.gz |
efi_selftest: provide an EFI selftest application
A testing framework for the EFI API is provided.
It can be executed with the 'bootefi selftest' command.
It is coded in a way that at a later stage we may turn it
into a standalone EFI application. The current build system
does not allow this yet.
All tests use a driver model and are run in three phases:
setup, execute, teardown.
A test may be setup and executed at boottime,
it may be setup at boottime and executed at runtime,
or it may be setup and executed at runtime.
After executing all tests the system is reset.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index f27192555e..f74b33d589 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -254,6 +254,15 @@ efi_status_t __efi_runtime EFIAPI efi_get_time( struct efi_time_cap *capabilities); void efi_get_time_init(void); +#ifdef CONFIG_CMD_BOOTEFI_SELFTEST +/* + * Entry point for the tests of the EFI API. + * It is called by 'bootefi selftest' + */ +efi_status_t EFIAPI efi_selftest(efi_handle_t image_handle, + struct efi_system_table *systab); +#endif + #else /* defined(EFI_LOADER) && !defined(CONFIG_SPL_BUILD) */ /* Without CONFIG_EFI_LOADER we don't have a runtime section, stub it out */ |