1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2017, Heinrich Schuchardt <xypron.glpk@gmx.de>
5 # This file only gets included with CONFIG_EFI_LOADER set, so all
6 # object inclusion implicitly depends on it
8 CFLAGS_efi_selftest_miniapp_exit.o := $(CFLAGS_EFI) -Os -ffreestanding
9 CFLAGS_REMOVE_efi_selftest_miniapp_exit.o := $(CFLAGS_NON_EFI)
10 CFLAGS_efi_selftest_miniapp_return.o := $(CFLAGS_EFI) -Os -ffreestanding
11 CFLAGS_REMOVE_efi_selftest_miniapp_return.o := $(CFLAGS_NON_EFI)
15 efi_selftest_bitblt.o \
16 efi_selftest_config_table.o \
17 efi_selftest_controllers.o \
18 efi_selftest_console.o \
19 efi_selftest_crc32.o \
20 efi_selftest_devicepath_util.o \
21 efi_selftest_events.o \
22 efi_selftest_event_groups.o \
23 efi_selftest_exception.o \
24 efi_selftest_exitbootservices.o \
26 efi_selftest_loaded_image.o \
27 efi_selftest_manageprotocols.o \
28 efi_selftest_memory.o \
29 efi_selftest_open_protocol.o \
30 efi_selftest_register_notify.o \
31 efi_selftest_set_virtual_address_map.o \
33 efi_selftest_textinput.o \
34 efi_selftest_textinputex.o \
35 efi_selftest_textoutput.o \
38 efi_selftest_variables.o \
39 efi_selftest_variables_runtime.o \
40 efi_selftest_watchdog.o
42 obj-$(CONFIG_EFI_DEVICE_PATH_TO_TEXT) += efi_selftest_devicepath.o
43 obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += \
44 efi_selftest_unicode_collation.o
46 obj-$(CONFIG_CPU_V7) += efi_selftest_unaligned.o
47 obj-$(CONFIG_EFI_LOADER_HII) += efi_selftest_hii.o
48 obj-$(CONFIG_EFI_GET_TIME) += efi_selftest_rtc.o
50 ifeq ($(CONFIG_GENERATE_ACPI_TABLE),)
51 obj-y += efi_selftest_fdt.o
54 ifeq ($(CONFIG_BLK)$(CONFIG_PARTITIONS),yy)
55 obj-y += efi_selftest_block_device.o
58 # TODO: As of v2019.01 the relocation code for the EFI application cannot
59 # be built on ARMv7-M, Sandbox, and x86_64.
60 ifeq ($(CONFIG_SANDBOX)$(CONFIG_CPU_V7M)$(CONFIG_X86_64),)
63 efi_selftest_loadimage.o \
64 efi_selftest_startimage_exit.o \
65 efi_selftest_startimage_return.o
68 efi_miniapp_file_image_exit.h \
69 efi_miniapp_file_image_return.h \
70 efi_selftest_miniapp_exit.efi \
71 efi_selftest_miniapp_return.efi
73 $(obj)/efi_miniapp_file_image_exit.h: $(obj)/efi_selftest_miniapp_exit.efi
74 $(obj)/../../tools/file2include $(obj)/efi_selftest_miniapp_exit.efi > \
75 $(obj)/efi_miniapp_file_image_exit.h
77 $(obj)/efi_miniapp_file_image_return.h: $(obj)/efi_selftest_miniapp_return.efi
78 $(obj)/../../tools/file2include $(obj)/efi_selftest_miniapp_return.efi > \
79 $(obj)/efi_miniapp_file_image_return.h
81 $(obj)/efi_selftest_loadimage.o: $(obj)/efi_miniapp_file_image_exit.h
83 $(obj)/efi_selftest_startimage_exit.o: $(obj)/efi_miniapp_file_image_exit.h
85 $(obj)/efi_selftest_startimage_return.o: $(obj)/efi_miniapp_file_image_return.h