blob: 9449600b5bd7bfaed3f06de886a766a53a31e75b [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)
Simon Glass5abd9132016-11-07 08:47:06 -070012CFLAGS_efi_stub.o := -fpic -fshort-wchar -DEFI_STUB
Simon Glass476476e2015-08-04 12:33:52 -060013CFLAGS_REMOVE_efi.o := -mregparm=3 \
14 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
Simon Glass5abd9132016-11-07 08:47:06 -070015CFLAGS_efi.o := -fpic -fshort-wchar -DEFI_STUB
Simon Glass476476e2015-08-04 12:33:52 -060016
17extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o