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
|
|
|
|
|
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)
|
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 \
|
2018-09-26 17:05:58 +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 \
|
2018-08-26 13:31:53 +00:00
|
|
|
efi_selftest_loaded_image.o \
|
2017-11-06 20:17:43 +00:00
|
|
|
efi_selftest_manageprotocols.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 \
|
2019-07-12 10:58:48 +00:00
|
|
|
efi_selftest_set_virtual_address_map.o \
|
2017-10-05 14:36:07 +00:00
|
|
|
efi_selftest_snp.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
|
|
|
|
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-05-31 20:56:02 +00:00
|
|
|
obj-$(CONFIG_EFI_GET_TIME) += efi_selftest_rtc.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
|
|
|
|
|
2018-01-21 18:29:31 +00:00
|
|
|
ifeq ($(CONFIG_BLK)$(CONFIG_PARTITIONS),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
|
|
|
|
2019-08-21 20:21:54 +00:00
|
|
|
# TODO: As of v2019.10 the relocation code for the EFI application cannot
|
|
|
|
# be built on ARMv7-M and Sandbox.
|
|
|
|
ifeq ($(CONFIG_SANDBOX)$(CONFIG_CPU_V7M),)
|
2018-01-19 18:01:05 +00:00
|
|
|
|
|
|
|
obj-y += \
|
2019-01-09 18:04:14 +00:00
|
|
|
efi_selftest_loadimage.o \
|
2018-01-19 18:01:05 +00:00
|
|
|
efi_selftest_startimage_exit.o \
|
|
|
|
efi_selftest_startimage_return.o
|
|
|
|
|
|
|
|
targets += \
|
|
|
|
efi_miniapp_file_image_exit.h \
|
|
|
|
efi_miniapp_file_image_return.h \
|
|
|
|
efi_selftest_miniapp_exit.efi \
|
|
|
|
efi_selftest_miniapp_return.efi
|
|
|
|
|
|
|
|
$(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-01-09 18:04:14 +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
|
|
|
|
|
|
|
|
endif
|