diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-11-08 15:19:10 -0800 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2011-11-08 15:24:19 -0800 |
commit | 7dc8f7c2874b256f2532b111daca6b382f292bf9 (patch) | |
tree | 4965ec7b3bcc968b6dcf97d5708324141700ac8c | |
parent | c4699e282193f766b2ada7a3f244f02ed0b60040 (diff) | |
download | efilinux-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-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |