Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2015 Google, Inc |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 4 | |
| 5 | obj-$(CONFIG_EFI_APP) += efi_app.o efi.o |
Simon Glass | 91e24e4 | 2015-08-04 12:33:58 -0600 | [diff] [blame] | 6 | obj-$(CONFIG_EFI_STUB) += efi_info.o |
Simon Glass | 63f581f | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 7 | |
| 8 | CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \ |
| 9 | $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32) |
Simon Glass | 6cbaac6 | 2016-11-07 08:47:06 -0700 | [diff] [blame] | 10 | CFLAGS_efi_stub.o := -fpic -fshort-wchar -DEFI_STUB |
Simon Glass | 63f581f | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 11 | CFLAGS_REMOVE_efi.o := -mregparm=3 \ |
| 12 | $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32) |
Simon Glass | 6cbaac6 | 2016-11-07 08:47:06 -0700 | [diff] [blame] | 13 | CFLAGS_efi.o := -fpic -fshort-wchar -DEFI_STUB |
Simon Glass | 63f581f | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 14 | |
| 15 | extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o |