blob: f1a3929e32bd57fe535db4d0ca3091d06580a0a2 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glass9539e692015-07-31 09:31:36 -06002#
3# (C) Copyright 2015 Google, Inc
Simon Glass9539e692015-07-31 09:31:36 -06004
5obj-$(CONFIG_EFI_APP) += efi_app.o efi.o
Simon Glass91e24e42015-08-04 12:33:58 -06006obj-$(CONFIG_EFI_STUB) += efi_info.o
Simon Glass63f581f2015-08-04 12:33:52 -06007
8CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
9 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
Bin Meng5acbb782018-06-10 06:25:03 -070010CFLAGS_efi_stub.o := -fpic -fshort-wchar -DEFI_STUB \
11 $(if $(CONFIG_EFI_STUB_64BIT),-m64)
Simon Glass63f581f2015-08-04 12:33:52 -060012CFLAGS_REMOVE_efi.o := -mregparm=3 \
13 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
Bin Meng5acbb782018-06-10 06:25:03 -070014CFLAGS_efi.o := -fpic -fshort-wchar -DEFI_STUB \
15 $(if $(CONFIG_EFI_STUB_64BIT),-m64)
Simon Glass63f581f2015-08-04 12:33:52 -060016
17extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o