blob: 18d081ac46fc0fc2b0fdaba4e87f21ab1515c820 [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)
Simon Glass6cbaac62016-11-07 08:47:06 -070010CFLAGS_efi_stub.o := -fpic -fshort-wchar -DEFI_STUB
Simon Glass63f581f2015-08-04 12:33:52 -060011CFLAGS_REMOVE_efi.o := -mregparm=3 \
12 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
Simon Glass6cbaac62016-11-07 08:47:06 -070013CFLAGS_efi.o := -fpic -fshort-wchar -DEFI_STUB
Simon Glass63f581f2015-08-04 12:33:52 -060014
15extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o