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 | |
Simon Glass | a8ff44d | 2023-12-19 07:27:19 -0700 | [diff] [blame] | 5 | obj-$(CONFIG_EFI_APP) += efi_app.o efi.o efi_app_init.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) |
Alexander Graf | ff592b2 | 2018-06-22 01:38:26 -0700 | [diff] [blame] | 10 | CFLAGS_efi_stub.o := -fpic -fshort-wchar \ |
Bin Meng | 5acbb78 | 2018-06-10 06:25:03 -0700 | [diff] [blame] | 11 | $(if $(CONFIG_EFI_STUB_64BIT),-m64) |
Simon Glass | 63f581f | 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 | ff592b2 | 2018-06-22 01:38:26 -0700 | [diff] [blame] | 14 | CFLAGS_efi.o := -fpic -fshort-wchar \ |
Bin Meng | 5acbb78 | 2018-06-10 06:25:03 -0700 | [diff] [blame] | 15 | $(if $(CONFIG_EFI_STUB_64BIT),-m64) |
Simon Glass | 63f581f | 2015-08-04 12:33:52 -0600 | [diff] [blame] | 16 | |
| 17 | extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o |