aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2011-11-08 15:19:10 -0800
committerDarren Hart <dvhart@linux.intel.com>2011-11-08 15:24:19 -0800
commit7dc8f7c2874b256f2532b111daca6b382f292bf9 (patch)
tree4965ec7b3bcc968b6dcf97d5708324141700ac8c
parentc4699e282193f766b2ada7a3f244f02ed0b60040 (diff)
downloadefilinux-7dc8f7c2874b256f2532b111daca6b382f292bf9.tar.gz
Make the efi include dir configurable
When crosscompiling, it's common to need to specify a different include dir location. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e5deb7b..dffc1c1 100644
--- a/Makefile
+++ b/Makefile
@@ -48,10 +48,12 @@ else
FORMAT=efi-app-$(ARCH)
endif
+INCDIR := /usr/include
+
CRT0 := $(LIBDIR)/gnuefi/crt0-efi-$(ARCH).o
LDSCRIPT := $(LIBDIR)/gnuefi/elf_$(ARCH)_efi.lds
-CFLAGS=-I. -I/usr/include/efi -I/usr/include/efi/$(ARCH) \
+CFLAGS=-I. -I$(INCDIR)/efi -I$(INCDIR)/efi/$(ARCH) \
-DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \
-Wall -Ifs/ -Iloaders/ -D$(ARCH) -Werror