blob: e32dc14f3d61645a22262d5ba38e1d29feaf5968 [file] [log] [blame]
Simon Glass867a6ac2015-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 Glass16c220d2015-08-04 12:33:58 -06008obj-$(CONFIG_EFI_STUB) += efi_info.o
Simon Glass476476e2015-08-04 12:33:52 -06009
10CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
11 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
12CFLAGS_efi_stub.o := -fpic -fshort-wchar
13CFLAGS_REMOVE_efi.o := -mregparm=3 \
14 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
15CFLAGS_efi.o := -fpic -fshort-wchar
16
17extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o