]> git.sur5r.net Git - u-boot/blob - lib/efi/Makefile
x86: Tidy up selection of building the EFI stub
[u-boot] / lib / efi / Makefile
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
8 obj-$(CONFIG_EFI_STUB) += efi_info.o
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 -DEFI_STUB
13 CFLAGS_REMOVE_efi.o := -mregparm=3 \
14         $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
15 CFLAGS_efi.o := -fpic -fshort-wchar -DEFI_STUB
16
17 extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o