2018-05-07 21:02:21 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2017-09-15 08:06:11 +00:00
|
|
|
#
|
2018-05-07 21:02:21 +00:00
|
|
|
# (C) Copyright 2017, Heinrich Schuchardt <xypron.glpk@gmx.de>
|
2017-09-15 08:06:11 +00:00
|
|
|
|
|
|
|
# This file only gets included with CONFIG_EFI_LOADER set, so all
|
|
|
|
# object inclusion implicitly depends on it
|
|
|
|
|
2019-11-08 20:17:58 +00:00
|
|
|
asflags-y += -DHOST_ARCH="$(HOST_ARCH)"
|
|
|
|
ccflags-y += -DHOST_ARCH="$(HOST_ARCH)"
|
|
|
|
|
2021-02-18 06:34:44 +00:00
|
|
|
CFLAGS_dtbdump.o := $(CFLAGS_EFI) -Os -ffreestanding
|
2020-11-04 21:00:48 +00:00
|
|
|
CFLAGS_REMOVE_dtbdump.o := $(CFLAGS_NON_EFI)
|
2021-05-20 11:23:59 +00:00
|
|
|
CFLAGS_efi_selftest_miniapp_exception.o := $(CFLAGS_EFI) -Os -ffreestanding
|
|
|
|
CFLAGS_REMOVE_efi_selftest_miniapp_exception.o := $(CFLAGS_NON_EFI)
|
2018-02-02 00:05:47 +00:00
|
|
|
CFLAGS_efi_selftest_miniapp_exit.o := $(CFLAGS_EFI) -Os -ffreestanding
|
2019-01-12 14:32:06 +00:00
|
|
|
CFLAGS_REMOVE_efi_selftest_miniapp_exit.o := $(CFLAGS_NON_EFI)
|
2018-02-02 00:05:47 +00:00
|
|
|
CFLAGS_efi_selftest_miniapp_return.o := $(CFLAGS_EFI) -Os -ffreestanding
|
2019-01-12 14:32:06 +00:00
|
|
|
CFLAGS_REMOVE_efi_selftest_miniapp_return.o := $(CFLAGS_NON_EFI)
|
2021-01-17 06:30:26 +00:00
|
|
|
CFLAGS_initrddump_exit.o := $(CFLAGS_EFI) -Os -ffreestanding
|
|
|
|
CFLAGS_REMOVE_initrddump.o := $(CFLAGS_NON_EFI)
|
2018-01-19 18:01:05 +00:00
|
|
|
|
2018-09-26 17:03:33 +00:00
|
|
|
obj-y += \
|
2017-09-15 08:06:11 +00:00
|
|
|
efi_selftest.o \
|
2018-02-07 21:14:23 +00:00
|
|
|
efi_selftest_bitblt.o \
|
2018-06-28 10:45:33 +00:00
|
|
|
efi_selftest_config_table.o \
|
2018-01-11 07:16:08 +00:00
|
|
|
efi_selftest_controllers.o \
|
2017-09-15 08:06:15 +00:00
|
|
|
efi_selftest_console.o \
|
2018-07-07 13:36:07 +00:00
|
|
|
efi_selftest_crc32.o \
|
2018-04-16 05:59:10 +00:00
|
|
|
efi_selftest_devicepath_util.o \
|
2017-09-15 08:06:17 +00:00
|
|
|
efi_selftest_events.o \
|
2018-02-18 14:17:53 +00:00
|
|
|
efi_selftest_event_groups.o \
|
2020-12-08 06:12:10 +00:00
|
|
|
efi_selftest_exception.o \
|
2017-09-15 08:06:19 +00:00
|
|
|
efi_selftest_exitbootservices.o \
|
2017-10-26 17:25:52 +00:00
|
|
|
efi_selftest_gop.o \
|
2020-12-08 14:55:01 +00:00
|
|
|
efi_selftest_load_file.o \
|
2018-08-26 13:31:53 +00:00
|
|
|
efi_selftest_loaded_image.o \
|
2020-12-08 06:12:10 +00:00
|
|
|
efi_selftest_loadimage.o \
|
2017-11-06 20:17:43 +00:00
|
|
|
efi_selftest_manageprotocols.o \
|
2020-03-22 08:32:55 +00:00
|
|
|
efi_selftest_mem.o \
|
2018-11-18 16:58:47 +00:00
|
|
|
efi_selftest_memory.o \
|
2019-06-01 19:00:50 +00:00
|
|
|
efi_selftest_open_protocol.o \
|
2019-05-04 20:44:13 +00:00
|
|
|
efi_selftest_register_notify.o \
|
2020-08-20 10:16:54 +00:00
|
|
|
efi_selftest_reset.o \
|
2019-07-12 10:58:48 +00:00
|
|
|
efi_selftest_set_virtual_address_map.o \
|
2020-12-08 06:12:10 +00:00
|
|
|
efi_selftest_startimage_exit.o \
|
|
|
|
efi_selftest_startimage_return.o \
|
2018-03-03 14:39:53 +00:00
|
|
|
efi_selftest_textinput.o \
|
2018-09-11 20:38:10 +00:00
|
|
|
efi_selftest_textinputex.o \
|
2017-10-18 16:13:19 +00:00
|
|
|
efi_selftest_textoutput.o \
|
2017-10-05 14:36:07 +00:00
|
|
|
efi_selftest_tpl.o \
|
2017-10-18 16:13:05 +00:00
|
|
|
efi_selftest_util.o \
|
2018-05-17 05:57:06 +00:00
|
|
|
efi_selftest_variables.o \
|
2019-06-20 14:18:48 +00:00
|
|
|
efi_selftest_variables_runtime.o \
|
2017-10-18 16:13:05 +00:00
|
|
|
efi_selftest_watchdog.o
|
2018-01-19 18:01:05 +00:00
|
|
|
|
2020-07-29 10:32:49 +00:00
|
|
|
obj-$(CONFIG_NET) += efi_selftest_snp.o
|
|
|
|
|
2019-05-11 07:53:33 +00:00
|
|
|
obj-$(CONFIG_EFI_DEVICE_PATH_TO_TEXT) += efi_selftest_devicepath.o
|
2019-05-16 05:52:58 +00:00
|
|
|
obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += \
|
|
|
|
efi_selftest_unicode_collation.o
|
2019-05-08 21:24:26 +00:00
|
|
|
|
2018-04-03 19:59:34 +00:00
|
|
|
obj-$(CONFIG_CPU_V7) += efi_selftest_unaligned.o
|
2019-02-11 14:24:00 +00:00
|
|
|
obj-$(CONFIG_EFI_LOADER_HII) += efi_selftest_hii.o
|
2019-12-28 14:40:40 +00:00
|
|
|
obj-$(CONFIG_EFI_RNG_PROTOCOL) += efi_selftest_rng.o
|
2019-05-31 20:56:02 +00:00
|
|
|
obj-$(CONFIG_EFI_GET_TIME) += efi_selftest_rtc.o
|
2020-11-12 18:53:10 +00:00
|
|
|
obj-$(CONFIG_EFI_TCG2_PROTOCOL) += efi_selftest_tcg2.o
|
2018-04-03 19:59:34 +00:00
|
|
|
|
2019-04-20 11:33:55 +00:00
|
|
|
ifeq ($(CONFIG_GENERATE_ACPI_TABLE),)
|
|
|
|
obj-y += efi_selftest_fdt.o
|
|
|
|
endif
|
|
|
|
|
2020-07-29 10:43:41 +00:00
|
|
|
ifeq ($(CONFIG_BLK)$(CONFIG_DOS_PARTITION),yy)
|
2018-09-26 17:03:33 +00:00
|
|
|
obj-y += efi_selftest_block_device.o
|
2018-01-21 18:29:31 +00:00
|
|
|
endif
|
2018-01-19 18:01:05 +00:00
|
|
|
|
2021-03-11 13:18:52 +00:00
|
|
|
obj-$(CONFIG_EFI_ESRT) += efi_selftest_esrt.o
|
|
|
|
|
2018-01-19 18:01:05 +00:00
|
|
|
targets += \
|
2019-08-27 06:16:08 +00:00
|
|
|
efi_miniapp_file_image_exception.h \
|
2018-01-19 18:01:05 +00:00
|
|
|
efi_miniapp_file_image_exit.h \
|
|
|
|
efi_miniapp_file_image_return.h \
|
2019-08-27 06:16:08 +00:00
|
|
|
efi_selftest_miniapp_exception.efi \
|
2018-01-19 18:01:05 +00:00
|
|
|
efi_selftest_miniapp_exit.efi \
|
|
|
|
efi_selftest_miniapp_return.efi
|
|
|
|
|
2021-01-17 04:41:41 +00:00
|
|
|
ifeq ($(CONFIG_GENERATE_ACPI_TABLE),)
|
|
|
|
always += dtbdump.efi
|
|
|
|
endif
|
2020-11-04 21:00:48 +00:00
|
|
|
|
2021-01-17 06:30:26 +00:00
|
|
|
ifdef CONFIG_EFI_LOAD_FILE2_INITRD
|
|
|
|
always += initrddump.efi
|
|
|
|
endif
|
|
|
|
|
2019-08-27 06:16:08 +00:00
|
|
|
$(obj)/efi_miniapp_file_image_exception.h: $(obj)/efi_selftest_miniapp_exception.efi
|
|
|
|
$(obj)/../../tools/file2include $(obj)/efi_selftest_miniapp_exception.efi > \
|
|
|
|
$(obj)/efi_miniapp_file_image_exception.h
|
|
|
|
|
2018-01-19 18:01:05 +00:00
|
|
|
$(obj)/efi_miniapp_file_image_exit.h: $(obj)/efi_selftest_miniapp_exit.efi
|
|
|
|
$(obj)/../../tools/file2include $(obj)/efi_selftest_miniapp_exit.efi > \
|
|
|
|
$(obj)/efi_miniapp_file_image_exit.h
|
|
|
|
|
|
|
|
$(obj)/efi_miniapp_file_image_return.h: $(obj)/efi_selftest_miniapp_return.efi
|
|
|
|
$(obj)/../../tools/file2include $(obj)/efi_selftest_miniapp_return.efi > \
|
|
|
|
$(obj)/efi_miniapp_file_image_return.h
|
|
|
|
|
2019-08-27 06:16:08 +00:00
|
|
|
$(obj)/efi_selftest_exception.o: $(obj)/efi_miniapp_file_image_exception.h
|
|
|
|
|
2020-12-08 14:55:01 +00:00
|
|
|
$(obj)/efi_selftest_load_file.o: $(obj)/efi_miniapp_file_image_exit.h
|
|
|
|
|
2020-12-08 06:12:10 +00:00
|
|
|
$(obj)/efi_selftest_loadimage.o: $(obj)/efi_miniapp_file_image_exit.h
|
|
|
|
|
2018-01-19 18:01:05 +00:00
|
|
|
$(obj)/efi_selftest_startimage_exit.o: $(obj)/efi_miniapp_file_image_exit.h
|
|
|
|
|
|
|
|
$(obj)/efi_selftest_startimage_return.o: $(obj)/efi_miniapp_file_image_return.h
|