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 asflags-y += -DHOST_ARCH="$(HOST_ARCH)" -I.
10 ccflags-y += -DHOST_ARCH="$(HOST_ARCH)"
12 CFLAGS_efi_boottime.o += \
13 -DFW_VERSION="0x$(VERSION)" \
14 -DFW_PATCHLEVEL="0x$(PATCHLEVEL)"
15 CFLAGS_helloworld.o := $(CFLAGS_EFI) -Os -ffreestanding
16 CFLAGS_REMOVE_helloworld.o := $(CFLAGS_NON_EFI)
18 ifneq ($(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
19 always += helloworld.efi
20 targets += helloworld.o
23 obj-$(CONFIG_CMD_BOOTEFI_HELLO) += helloworld_efi.o
24 obj-y += efi_bootmgr.o
25 obj-y += efi_boottime.o
26 obj-$(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) += efi_capsule.o
27 obj-$(CONFIG_EFI_CAPSULE_FIRMWARE_FIT) += efi_firmware.o
28 obj-y += efi_console.o
29 obj-y += efi_device_path.o
30 obj-$(CONFIG_EFI_DEVICE_PATH_TO_TEXT) += efi_device_path_to_text.o
31 obj-y += efi_device_path_utilities.o
33 obj-$(CONFIG_EFI_LOADER_HII) += efi_hii.o efi_hii_config.o
34 obj-y += efi_image_loader.o
36 obj-y += efi_root_node.o
37 obj-y += efi_runtime.o
40 obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += efi_unicode_collation.o
41 obj-y += efi_var_common.o
42 obj-y += efi_var_mem.o
43 obj-y += efi_var_file.o
44 ifeq ($(CONFIG_EFI_MM_COMM_TEE),y)
45 obj-y += efi_variable_tee.o
47 obj-y += efi_variable.o
48 obj-$(CONFIG_EFI_VARIABLES_PRESEED) += efi_var_seed.o
50 obj-y += efi_watchdog.o
51 obj-$(CONFIG_LCD) += efi_gop.o
52 obj-$(CONFIG_DM_VIDEO) += efi_gop.o
53 obj-$(CONFIG_PARTITIONS) += efi_disk.o
54 obj-$(CONFIG_NET) += efi_net.o
55 obj-$(CONFIG_GENERATE_ACPI_TABLE) += efi_acpi.o
56 obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += efi_smbios.o
57 obj-$(CONFIG_EFI_RNG_PROTOCOL) += efi_rng.o
58 obj-$(CONFIG_EFI_TCG2_PROTOCOL) += efi_tcg2.o
59 obj-$(CONFIG_EFI_LOAD_FILE2_INITRD) += efi_load_initrd.o
60 obj-y += efi_signature.o
62 EFI_VAR_SEED_FILE := $(subst $\",,$(CONFIG_EFI_VAR_SEED_FILE))
63 $(obj)/efi_var_seed.o: $(srctree)/$(EFI_VAR_SEED_FILE)