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