]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - lib/efi/Makefile
efi: Add support for loading U-Boot through an EFI stub
[karo-tx-uboot.git] / 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
9 CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
10         $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
11 CFLAGS_efi_stub.o := -fpic -fshort-wchar
12 CFLAGS_REMOVE_efi.o := -mregparm=3 \
13         $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
14 CFLAGS_efi.o := -fpic -fshort-wchar
15
16 extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o