1# SPDX-License-Identifier: GPL-2.0+ 2# 3# (C) Copyright 2016 Alexander Graf 4# 5 6# This file only gets included with CONFIG_EFI_LOADER set, so all 7# object inclusion implicitly depends on it 8 9asflags-y += -DHOST_ARCH="$(HOST_ARCH)" -I. 10ccflags-y += -DHOST_ARCH="$(HOST_ARCH)" 11 12CFLAGS_efi_boottime.o += \ 13 -DFW_VERSION="0x$(VERSION)" \ 14 -DFW_PATCHLEVEL="0x$(PATCHLEVEL)" 15CFLAGS_helloworld.o := $(CFLAGS_EFI) -Os -ffreestanding 16CFLAGS_REMOVE_helloworld.o := $(CFLAGS_NON_EFI) 17 18ifneq ($(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),) 19always += helloworld.efi 20targets += helloworld.o 21endif 22 23obj-$(CONFIG_CMD_BOOTEFI_HELLO) += helloworld_efi.o 24obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += efi_bootmgr.o 25obj-y += efi_boottime.o 26obj-$(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) += efi_capsule.o 27obj-$(CONFIG_EFI_CAPSULE_FIRMWARE) += efi_firmware.o 28obj-y += efi_console.o 29obj-y += efi_device_path.o 30obj-$(CONFIG_EFI_DEVICE_PATH_TO_TEXT) += efi_device_path_to_text.o 31obj-$(CONFIG_EFI_DEVICE_PATH_UTIL) += efi_device_path_utilities.o 32ifeq ($(CONFIG_GENERATE_ACPI_TABLE),) 33obj-y += efi_dt_fixup.o 34endif 35obj-y += efi_file.o 36obj-$(CONFIG_EFI_LOADER_HII) += efi_hii.o 37obj-y += efi_image_loader.o 38obj-y += efi_load_options.o 39obj-y += efi_memory.o 40obj-y += efi_root_node.o 41obj-y += efi_runtime.o 42obj-y += efi_setup.o 43obj-y += efi_string.o 44obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += efi_unicode_collation.o 45obj-y += efi_var_common.o 46obj-y += efi_var_mem.o 47obj-y += efi_var_file.o 48ifeq ($(CONFIG_EFI_MM_COMM_TEE),y) 49obj-y += efi_variable_tee.o 50else 51obj-y += efi_variable.o 52obj-$(CONFIG_EFI_VARIABLES_PRESEED) += efi_var_seed.o 53endif 54obj-y += efi_watchdog.o 55obj-$(CONFIG_LCD) += efi_gop.o 56obj-$(CONFIG_DM_VIDEO) += efi_gop.o 57obj-$(CONFIG_PARTITIONS) += efi_disk.o 58obj-$(CONFIG_NET) += efi_net.o 59obj-$(CONFIG_GENERATE_ACPI_TABLE) += efi_acpi.o 60obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += efi_smbios.o 61obj-$(CONFIG_EFI_RNG_PROTOCOL) += efi_rng.o 62obj-$(CONFIG_EFI_TCG2_PROTOCOL) += efi_tcg2.o 63obj-$(CONFIG_EFI_LOAD_FILE2_INITRD) += efi_load_initrd.o 64obj-y += efi_signature.o 65 66EFI_VAR_SEED_FILE := $(subst $\",,$(CONFIG_EFI_VAR_SEED_FILE)) 67$(obj)/efi_var_seed.o: $(srctree)/$(EFI_VAR_SEED_FILE) 68