diff options
author | Alexander Graf <agraf@suse.de> | 2016-11-17 22:40:10 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-27 09:53:39 -0500 |
commit | 95b62b2e28dbc3419f49eeae2e4fdccc862fccea (patch) | |
tree | 07df4c9929f7dbe55e2bf39de1b67813d436da1a /cmd | |
parent | 4ca4b265ad5398d96ba46a734910c0bbf3239359 (diff) | |
download | u-boot-95b62b2e28dbc3419f49eeae2e4fdccc862fccea.tar.gz |
efi_loader: Allow to compile helloworld.efi w/o bundling it
Today we can compile a self-contained hello world efi test binary that
allows us to quickly verify whether the EFI loader framwork works.
We can use that binary outside of the self-contained test case though,
by providing it to a to-be-tested system via tftp.
This patch separates compilation of the helloworld.efi file from
including it in the u-boot binary for "bootefi hello". It also modifies
the efi_loader test case to enable travis to pick up the compiled file.
Because we're now no longer bloating the resulting u-boot binary, we
can enable compilation always, giving us good travis test coverage.
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/Kconfig | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 2a2f23e251..b16c6032aa 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -181,9 +181,22 @@ config CMD_BOOTEFI help Boot an EFI image from memory. +config CMD_BOOTEFI_HELLO_COMPILE + bool "Compile a standard EFI hello world binary for testing" + depends on CMD_BOOTEFI && (ARM || X86) + default y + help + This compiles a standard EFI hello world application with U-Boot so + that it can be used with the test/py testing framework. This is useful + for testing that EFI is working at a basic level, and for bringing + up EFI support on a new architecture. + + No additional space will be required in the resulting U-Boot binary + when this option is enabled. + config CMD_BOOTEFI_HELLO bool "Allow booting a standard EFI hello world for testing" - depends on CMD_BOOTEFI && (ARM || X86) + depends on CMD_BOOTEFI_HELLO_COMPILE help This adds a standard EFI hello world application to U-Boot so that it can be used with the 'bootefi hello' command. This is useful |