2018-05-07 21:02:21 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2016-03-04 00:10:07 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2016 Alexander Graf
|
|
|
|
#
|
|
|
|
|
|
|
|
# This file only gets included with CONFIG_EFI_LOADER set, so all
|
|
|
|
# object inclusion implicitly depends on it
|
|
|
|
|
2020-07-14 19:25:28 +00:00
|
|
|
asflags-y += -DHOST_ARCH="$(HOST_ARCH)" -I.
|
2019-11-07 07:05:17 +00:00
|
|
|
ccflags-y += -DHOST_ARCH="$(HOST_ARCH)"
|
|
|
|
|
2018-06-28 10:45:30 +00:00
|
|
|
CFLAGS_efi_boottime.o += \
|
|
|
|
-DFW_VERSION="0x$(VERSION)" \
|
|
|
|
-DFW_PATCHLEVEL="0x$(PATCHLEVEL)"
|
2022-12-01 18:07:57 +00:00
|
|
|
CFLAGS_boothart.o := $(CFLAGS_EFI) -Os -ffreestanding
|
|
|
|
CFLAGS_REMOVE_boothart.o := $(CFLAGS_NON_EFI)
|
2017-12-01 21:09:50 +00:00
|
|
|
CFLAGS_helloworld.o := $(CFLAGS_EFI) -Os -ffreestanding
|
2019-01-12 14:32:06 +00:00
|
|
|
CFLAGS_REMOVE_helloworld.o := $(CFLAGS_NON_EFI)
|
2022-03-03 07:13:53 +00:00
|
|
|
CFLAGS_dtbdump.o := $(CFLAGS_EFI) -Os -ffreestanding
|
|
|
|
CFLAGS_REMOVE_dtbdump.o := $(CFLAGS_NON_EFI)
|
2022-03-30 09:14:43 +00:00
|
|
|
CFLAGS_initrddump.o := $(CFLAGS_EFI) -Os -ffreestanding
|
2022-03-03 07:13:53 +00:00
|
|
|
CFLAGS_REMOVE_initrddump.o := $(CFLAGS_NON_EFI)
|
2016-11-07 15:47:08 +00:00
|
|
|
|
2022-12-01 18:07:57 +00:00
|
|
|
ifdef CONFIG_RISCV
|
|
|
|
always += boothart.efi
|
|
|
|
endif
|
|
|
|
|
2017-09-05 01:19:39 +00:00
|
|
|
ifneq ($(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
|
|
|
|
always += helloworld.efi
|
2020-05-04 12:38:29 +00:00
|
|
|
targets += helloworld.o
|
2017-09-05 01:19:39 +00:00
|
|
|
endif
|
2016-11-17 21:40:10 +00:00
|
|
|
|
2022-03-03 07:13:53 +00:00
|
|
|
ifeq ($(CONFIG_GENERATE_ACPI_TABLE),)
|
|
|
|
always += dtbdump.efi
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EFI_LOAD_FILE2_INITRD
|
|
|
|
always += initrddump.efi
|
|
|
|
endif
|
|
|
|
|
2016-11-07 15:47:08 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTEFI_HELLO) += helloworld_efi.o
|
2021-01-15 18:02:50 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += efi_bootmgr.o
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_boottime.o
|
2021-03-17 19:54:59 +00:00
|
|
|
obj-y += efi_helper.o
|
2020-11-17 00:27:55 +00:00
|
|
|
obj-$(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) += efi_capsule.o
|
2020-11-17 00:28:00 +00:00
|
|
|
obj-$(CONFIG_EFI_CAPSULE_FIRMWARE) += efi_firmware.o
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_console.o
|
|
|
|
obj-y += efi_device_path.o
|
2019-05-11 07:53:33 +00:00
|
|
|
obj-$(CONFIG_EFI_DEVICE_PATH_TO_TEXT) += efi_device_path_to_text.o
|
2021-01-16 08:44:25 +00:00
|
|
|
obj-$(CONFIG_EFI_DEVICE_PATH_UTIL) += efi_device_path_utilities.o
|
2020-12-13 09:30:24 +00:00
|
|
|
ifeq ($(CONFIG_GENERATE_ACPI_TABLE),)
|
|
|
|
obj-y += efi_dt_fixup.o
|
|
|
|
endif
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_file.o
|
2020-12-07 17:20:57 +00:00
|
|
|
obj-$(CONFIG_EFI_LOADER_HII) += efi_hii.o
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_image_loader.o
|
2021-01-15 18:02:49 +00:00
|
|
|
obj-y += efi_load_options.o
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_memory.o
|
2018-09-20 19:58:23 +00:00
|
|
|
obj-y += efi_root_node.o
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_runtime.o
|
efi_loader: move efi_init_obj_list() to a new efi_setup.c
The function, efi_init_obj_list(), can be shared in different pseudo efi
applications, like bootefi/bootmgr as well as my efishell. Moreover, it
will be utilized to extend efi initialization, for example, my "removable
disk support" patch and "capsule-on-disk support" patch in the future.
So with this patch, it will be moved to a new file, efi_setup.c, under
lib/efi_loader and exported, making no changes in functionality.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Remove lines deactivated by #if 1 #else
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
2018-12-30 14:16:55 +00:00
|
|
|
obj-y += efi_setup.o
|
2020-10-29 04:47:46 +00:00
|
|
|
obj-y += efi_string.o
|
2019-05-16 05:52:58 +00:00
|
|
|
obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += efi_unicode_collation.o
|
2020-06-22 16:10:27 +00:00
|
|
|
obj-y += efi_var_common.o
|
2020-03-22 08:07:50 +00:00
|
|
|
obj-y += efi_var_mem.o
|
2020-07-23 12:49:49 +00:00
|
|
|
obj-y += efi_var_file.o
|
2020-05-17 19:25:44 +00:00
|
|
|
ifeq ($(CONFIG_EFI_MM_COMM_TEE),y)
|
|
|
|
obj-y += efi_variable_tee.o
|
|
|
|
else
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_variable.o
|
2020-07-14 19:25:28 +00:00
|
|
|
obj-$(CONFIG_EFI_VARIABLES_PRESEED) += efi_var_seed.o
|
2020-05-17 19:25:44 +00:00
|
|
|
endif
|
2018-03-09 16:43:21 +00:00
|
|
|
obj-y += efi_watchdog.o
|
2021-03-02 17:26:38 +00:00
|
|
|
obj-$(CONFIG_EFI_ESRT) += efi_esrt.o
|
2022-10-18 13:46:31 +00:00
|
|
|
obj-$(CONFIG_VIDEO) += efi_gop.o
|
2022-04-19 01:01:57 +00:00
|
|
|
obj-$(CONFIG_BLK) += efi_disk.o
|
2022-10-14 16:10:06 +00:00
|
|
|
obj-$(CONFIG_NETDEVICES) += efi_net.o
|
2018-06-28 03:38:03 +00:00
|
|
|
obj-$(CONFIG_GENERATE_ACPI_TABLE) += efi_acpi.o
|
2016-08-18 23:23:29 +00:00
|
|
|
obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += efi_smbios.o
|
2019-12-28 18:31:05 +00:00
|
|
|
obj-$(CONFIG_EFI_RNG_PROTOCOL) += efi_rng.o
|
2020-11-11 09:18:11 +00:00
|
|
|
obj-$(CONFIG_EFI_TCG2_PROTOCOL) += efi_tcg2.o
|
2022-01-28 15:18:44 +00:00
|
|
|
obj-$(CONFIG_EFI_RISCV_BOOT_PROTOCOL) += efi_riscv.o
|
2020-02-21 07:55:45 +00:00
|
|
|
obj-$(CONFIG_EFI_LOAD_FILE2_INITRD) += efi_load_initrd.o
|
2021-05-14 00:53:36 +00:00
|
|
|
obj-$(CONFIG_EFI_SIGNATURE_SUPPORT) += efi_signature.o
|
2021-12-23 14:51:07 +00:00
|
|
|
obj-$(CONFIG_EFI_ECPT) += efi_conformance.o
|
2020-07-14 19:25:28 +00:00
|
|
|
|
|
|
|
EFI_VAR_SEED_FILE := $(subst $\",,$(CONFIG_EFI_VAR_SEED_FILE))
|
|
|
|
$(obj)/efi_var_seed.o: $(srctree)/$(EFI_VAR_SEED_FILE)
|