diff options
author | Simon Glass <sjg@chromium.org> | 2015-07-31 09:31:36 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-05 08:42:41 -0600 |
commit | 867a6ac86dd823de409752e9ca5dc8f4d4880f26 (patch) | |
tree | d9b3bbaeae3cc0ade351850c0110fc6b92d5c808 /lib/efi/Kconfig | |
parent | 8f3b9694b217b7083fcbc44d7a28c16185c0c579 (diff) | |
download | u-boot-867a6ac86dd823de409752e9ca5dc8f4d4880f26.tar.gz |
efi: Add start-up library code
When running as an EFI application, U-Boot must request memory from EFI,
and provide access to the boot services U-Boot needs.
Add library code to perform these tasks. This includes efi_main() which is
the entry point from EFI. U-Boot is built as a shared library.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'lib/efi/Kconfig')
-rw-r--r-- | lib/efi/Kconfig | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/efi/Kconfig b/lib/efi/Kconfig new file mode 100644 index 0000000000..b23ba5b504 --- /dev/null +++ b/lib/efi/Kconfig @@ -0,0 +1,33 @@ +config EFI + bool "Support running U-Boot from EFI" + depends on X86 + help + U-Boot can be started from EFI on certain platforms. This allows + EFI to perform most of the system init and then jump to U-Boot for + final system boot. Another option is to run U-Boot as an EFI + application, with U-Boot using EFI's drivers instead of its own. + +choice + prompt "Select EFI mode to use" + depends on X86 && EFI + +config EFI_APP + bool "Support running as an EFI application" + help + Build U-Boot as an application which can be started from EFI. This + is useful for examining a platform in the early stages of porting + U-Boot to it. It allows only very basic functionality, such as a + command prompt and memory and I/O functions. Use 'reset' to return + to EFI. + +config EFI_RAM_SIZE + hex "Amount of EFI RAM for U-Boot" + depends on EFI_APP + default 0x2000000 + help + Set the amount of EFI RAM which is claimed by U-Boot for its own + use. U-Boot allocates this from EFI on start-up (along with a few + other smaller amounts) and it can never be increased after that. + It is used as the RAM size in with U-Boot. + +endchoice |