2017-09-15 08:06:11 +00:00
|
|
|
:
|
|
|
|
# (C) Copyright 2017, Heinrich Schuchardt <xypron.glpk@gmx.de>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#
|
|
|
|
|
|
|
|
# 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-01-11 07:16:08 +00:00
|
|
|
efi_selftest_controllers.o \
|
2017-09-15 08:06:15 +00:00
|
|
|
efi_selftest_console.o \
|
2017-11-26 13:05:11 +00:00
|
|
|
efi_selftest_devicepath.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 \
|
2017-11-06 20:17:43 +00:00
|
|
|
efi_selftest_manageprotocols.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 \
|
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 \
|
|
|
|
efi_selftest_watchdog.o
|
2018-01-19 18:01:05 +00:00
|
|
|
|
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.
|
|
|
|
ifeq ($(CONFIG_X86_64),)
|
|
|
|
|
|
|
|
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
|