Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 867a6ac | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2015 Google, Inc |
Simon Glass | 867a6ac | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 4 | |
| 5 | obj-$(CONFIG_EFI_APP) += efi_app.o efi.o |
Simon Glass | 16c220d | 2015-08-04 12:33:58 -0600 | [diff] [blame] | 6 | obj-$(CONFIG_EFI_STUB) += efi_info.o |
Simon Glass | 476476e | 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) |
Alexander Graf | 0186644 | 2018-06-22 01:38:26 -0700 | [diff] [blame^] | 10 | CFLAGS_efi_stub.o := -fpic -fshort-wchar \ |
Bin Meng | 16dde89 | 2018-06-10 06:25:03 -0700 | [diff] [blame] | 11 | $(if $(CONFIG_EFI_STUB_64BIT),-m64) |
Simon Glass | 476476e | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 12 | CFLAGS_REMOVE_efi.o := -mregparm=3 \ |
| 13 | $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32) |
Alexander Graf | 0186644 | 2018-06-22 01:38:26 -0700 | [diff] [blame^] | 14 | CFLAGS_efi.o := -fpic -fshort-wchar \ |
Bin Meng | 16dde89 | 2018-06-10 06:25:03 -0700 | [diff] [blame] | 15 | $(if $(CONFIG_EFI_STUB_64BIT),-m64) |
Simon Glass | 476476e | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 16 | |
| 17 | extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o |