blob: a790d2d554cdf82f78181ce772ac813eacfe2ee6 [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)
Alexander Grafff592b22018-06-22 01:38:26 -070010CFLAGS_efi_stub.o := -fpic -fshort-wchar \
Bin Meng5acbb782018-06-10 06:25:03 -070011 $(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)
Alexander Grafff592b22018-06-22 01:38:26 -070014CFLAGS_efi.o := -fpic -fshort-wchar \
Bin Meng5acbb782018-06-10 06:25:03 -070015 $(if $(CONFIG_EFI_STUB_64BIT),-m64)
Simon Glass63f581f2015-08-04 12:33:52 -060016
17extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o