blob: 4bc67f01f95319e32e08b3062a95a9f0cd02f761 [file] [log] [blame]
Simon Glass9539e692015-07-31 09:31:36 -06001#
2# (C) Copyright 2015 Google, Inc
3#
4# SPDX-License-Identifier: GPL-2.0+
5#
6
7obj-$(CONFIG_EFI_APP) += efi_app.o efi.o
Simon Glass63f581f2015-08-04 12:33:52 -06008
9CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
10 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
11CFLAGS_efi_stub.o := -fpic -fshort-wchar
12CFLAGS_REMOVE_efi.o := -mregparm=3 \
13 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
14CFLAGS_efi.o := -fpic -fshort-wchar
15
16extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o