blob: 9449600b5bd7bfaed3f06de886a766a53a31e75b [file] [log] [blame]
Simon Glass9539e692015-07-31 09:31:36 -06001#
2# (C) Copyright 2015 Google, Inc
3#
4# SPDX-License-Identifier: GPL-2.0+
5#
6
7obj-$(CONFIG_EFI_APP) += efi_app.o efi.o
Simon Glass91e24e42015-08-04 12:33:58 -06008obj-$(CONFIG_EFI_STUB) += efi_info.o
Simon Glass63f581f2015-08-04 12:33:52 -06009
10CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
11 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
Simon Glass6cbaac62016-11-07 08:47:06 -070012CFLAGS_efi_stub.o := -fpic -fshort-wchar -DEFI_STUB
Simon Glass63f581f2015-08-04 12:33:52 -060013CFLAGS_REMOVE_efi.o := -mregparm=3 \
14 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
Simon Glass6cbaac62016-11-07 08:47:06 -070015CFLAGS_efi.o := -fpic -fshort-wchar -DEFI_STUB
Simon Glass63f581f2015-08-04 12:33:52 -060016
17extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o