]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib/efi/Makefile
efi: Add support for loading U-Boot through an EFI stub
[karo-tx-uboot.git] / lib / efi / Makefile
index 5ee344c7d6d6a7fc60c6e2efd48d1edd1d53e004..4bc67f01f95319e32e08b3062a95a9f0cd02f761 100644 (file)
@@ -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