summaryrefslogtreecommitdiffstats
path: root/lib/efi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/efi/Makefile')
-rw-r--r--lib/efi/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/efi/Makefile b/lib/efi/Makefile
index 5ee344c7d6..4bc67f01f9 100644
--- a/lib/efi/Makefile
+++ b/lib/efi/Makefile
@@ -5,3 +5,12 @@
#
obj-$(CONFIG_EFI_APP) += efi_app.o efi.o
+
+CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
+ $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
+CFLAGS_efi_stub.o := -fpic -fshort-wchar
+CFLAGS_REMOVE_efi.o := -mregparm=3 \
+ $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
+CFLAGS_efi.o := -fpic -fshort-wchar
+
+extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o
OpenPOWER on IntegriCloud