
Now that we have all the bits and pieces ready for EFI payload loading support, hook them up in Makefiles and KConfigs so that we can build.
Signed-off-by: Alexander Graf agraf@suse.de --- lib/Kconfig | 1 + lib/Makefile | 1 + lib/efi_loader/Kconfig | 8 ++++++++ lib/efi_loader/Makefile | 11 +++++++++++ 4 files changed, 21 insertions(+) create mode 100644 lib/efi_loader/Kconfig create mode 100644 lib/efi_loader/Makefile
diff --git a/lib/Kconfig b/lib/Kconfig index 9d580e4..3efe075 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -138,5 +138,6 @@ config ERRNO_STR - if errno is negative - a pointer to errno related message
source lib/efi/Kconfig +source lib/efi_loader/Kconfig
endmenu diff --git a/lib/Makefile b/lib/Makefile index dd36f25..3a9f304 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -8,6 +8,7 @@ ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_EFI) += efi/ +obj-$(CONFIG_EFI_LOADER) += efi_loader/ obj-$(CONFIG_RSA) += rsa/ obj-$(CONFIG_LZMA) += lzma/ obj-$(CONFIG_LZO) += lzo/ diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig new file mode 100644 index 0000000..870f1f7 --- /dev/null +++ b/lib/efi_loader/Kconfig @@ -0,0 +1,8 @@ +config EFI_LOADER + bool "Support running EFI Applications in U-Boot" + depends on ARM64 || ARM + help + Select this option if you want to run EFI applications (like grub2) + on top of U-Boot. If this option is enabled, U-Boot will expose EFI + interfaces to a loaded EFI application, enabling it to reuse U-Boot's + device drivers. diff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile new file mode 100644 index 0000000..1df595b --- /dev/null +++ b/lib/efi_loader/Makefile @@ -0,0 +1,11 @@ +# +# (C) Copyright 2015 Alexander Graf +# +# SPDX-License-Identifier: LGPL-2.1+ +# + +# This file only gets included with CONFIG_EFI_LOADER set, so all +# object inclusion implicitly depends on it + +obj-y += efi_image_loader.o efi_boottime.o efi_runtime.o efi_console.o +obj-$(CONFIG_PARTITIONS) += efi_disk.o