1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2016 Alexander Graf
6 # This file only gets included with CONFIG_EFI_LOADER set, so all
7 # object inclusion implicitly depends on it
9 CFLAGS_efi_boottime.o += \
10 -DFW_VERSION="0x$(VERSION)" \
11 -DFW_PATCHLEVEL="0x$(PATCHLEVEL)"
12 CFLAGS_helloworld.o := $(CFLAGS_EFI) -Os -ffreestanding
13 CFLAGS_REMOVE_helloworld.o := $(CFLAGS_NON_EFI)
15 ifneq ($(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
16 always += helloworld.efi
19 obj-$(CONFIG_CMD_BOOTEFI_HELLO) += helloworld_efi.o
20 obj-y += efi_bootmgr.o
21 obj-y += efi_boottime.o
22 obj-y += efi_console.o
23 obj-y += efi_device_path.o
24 obj-$(CONFIG_EFI_DEVICE_PATH_TO_TEXT) += efi_device_path_to_text.o
25 obj-y += efi_device_path_utilities.o
27 obj-$(CONFIG_EFI_LOADER_HII) += efi_hii.o efi_hii_config.o
28 obj-y += efi_image_loader.o
30 obj-y += efi_root_node.o
31 obj-y += efi_runtime.o
33 obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL) += efi_unicode_collation.o
34 obj-y += efi_variable.o
35 obj-y += efi_watchdog.o
36 obj-$(CONFIG_LCD) += efi_gop.o
37 obj-$(CONFIG_DM_VIDEO) += efi_gop.o
38 obj-$(CONFIG_PARTITIONS) += efi_disk.o
39 obj-$(CONFIG_NET) += efi_net.o
40 obj-$(CONFIG_GENERATE_ACPI_TABLE) += efi_acpi.o
41 obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += efi_smbios.o