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
|
|
|
|
CFLAGS_REMOVE_efi_selftest_miniapp_exit.o := $(CFLAGS_NON_EFI) -Os
|
|
|
|
CFLAGS_efi_selftest_miniapp_return.o := $(CFLAGS_EFI) -Os -ffreestanding
|
|
|
|
CFLAGS_REMOVE_efi_selftest_miniapp_return.o := $(CFLAGS_NON_EFI) -Os
|
2018-01-19 18:01:05 +00:00
|
|
|
|
2017-09-15 08:06:11 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += \
|
|
|
|
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 \
|
2017-11-26 13:05:11 +00:00
|
|
|
efi_selftest_devicepath.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 \
|
2017-09-15 08:06:19 +00:00
|
|
|
efi_selftest_exitbootservices.o \
|
2018-03-03 14:29:04 +00:00
|
|
|
efi_selftest_fdt.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-07-07 21:39:16 +00:00
|
|
|
efi_selftest_rtc.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 \
|
2018-09-04 17:34:59 +00:00
|
|
|
efi_selftest_unicode_collation.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 \
|
2017-10-18 16:13:05 +00:00
|
|
|
efi_selftest_watchdog.o
|
2018-01-19 18:01:05 +00:00
|
|
|
|
2018-04-03 19:59:34 +00:00
|
|
|
ifeq ($(CONFIG_CMD_BOOTEFI_SELFTEST),y)
|
|
|
|
obj-$(CONFIG_CPU_V7) += efi_selftest_unaligned.o
|
|
|
|
endif
|
|
|
|
|
2018-01-21 18:29:31 +00:00
|
|
|
ifeq ($(CONFIG_BLK)$(CONFIG_PARTITIONS),yy)
|
|
|
|
obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest_block_device.o
|
|
|
|
endif
|
2018-01-19 18:01:05 +00:00
|
|
|
|
|
|
|
# TODO: As of v2018.01 the relocation code for the EFI application cannot
|
|
|
|
# be built on x86_64.
|
2018-06-18 15:23:03 +00:00
|
|
|
ifeq ($(CONFIG_X86_64)$(CONFIG_SANDBOX),)
|
2018-01-19 18:01:05 +00:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST),)
|
|
|
|
|
|
|
|
obj-y += \
|
|
|
|
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
|
|
|
|
|
|
|
|
$(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
|
|
|
|
|
|
|
|
endif
|