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
|
|
|
|
|
2019-11-07 07:05:17 +00:00
|
|
|
asflags-y += -DHOST_ARCH="$(HOST_ARCH)"
|
|
|
|
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)"
|
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)
|
2016-11-07 15:47:08 +00:00
|
|
|
|
2017-09-05 01:19:39 +00:00
|
|
|
ifneq ($(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
|
|
|
|
always += helloworld.efi
|
|
|
|
endif
|
2016-11-17 21:40:10 +00:00
|
|
|
|
2016-11-07 15:47:08 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTEFI_HELLO) += helloworld_efi.o
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_bootmgr.o
|
|
|
|
obj-y += efi_boottime.o
|
|
|
|
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
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_device_path_utilities.o
|
|
|
|
obj-y += efi_file.o
|
2019-05-08 19:42:36 +00:00
|
|
|
obj-$(CONFIG_EFI_LOADER_HII) += efi_hii.o efi_hii_config.o
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_image_loader.o
|
|
|
|
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
|
2019-05-16 05:52:58 +00:00
|
|
|
obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += efi_unicode_collation.o
|
2018-09-04 17:34:58 +00:00
|
|
|
obj-y += efi_variable.o
|
2018-03-09 16:43:21 +00:00
|
|
|
obj-y += efi_watchdog.o
|
2016-03-15 17:38:21 +00:00
|
|
|
obj-$(CONFIG_LCD) += efi_gop.o
|
2017-07-21 19:00:27 +00:00
|
|
|
obj-$(CONFIG_DM_VIDEO) += efi_gop.o
|
2016-03-04 00:10:07 +00:00
|
|
|
obj-$(CONFIG_PARTITIONS) += efi_disk.o
|
2018-04-13 20:26:39 +00:00
|
|
|
obj-$(CONFIG_NET) += 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
|