1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2015 Google, Inc
5 obj-$(CONFIG_EFI_APP) += efi_app.o efi.o
6 obj-$(CONFIG_EFI_STUB) += efi_info.o
8 CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
9 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
10 CFLAGS_efi_stub.o := -fpic -fshort-wchar \
11 $(if $(CONFIG_EFI_STUB_64BIT),-m64)
12 CFLAGS_REMOVE_efi.o := -mregparm=3 \
13 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
14 CFLAGS_efi.o := -fpic -fshort-wchar \
15 $(if $(CONFIG_EFI_STUB_64BIT),-m64)
17 extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o