aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2011-09-03 11:43:47 +0100
committerMatt Fleming <matt.fleming@intel.com>2011-09-22 12:38:38 +0100
commit75862d872298aabe20c43286c2f3d5184dd9d691 (patch)
tree0136a61022c27775a96df782fe94dee83bfe7adc
parentdca494296205647d92d13eb8aa44252ab0eab30e (diff)
downloadefilinux-75862d872298aabe20c43286c2f3d5184dd9d691.tar.gz
Makefile: Allow CRT0 and LDSCRIPT to be overridden
Different distributions have a habit of installing the gnu-efi crt0 and ldscripts in various locations on the file system. Until efilinux gets autoconf support allow the user to override $CRT0 and $LDSCRIPT. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 58619ed..e5deb7b 100644
--- a/Makefile
+++ b/Makefile
@@ -48,8 +48,8 @@ else
FORMAT=efi-app-$(ARCH)
endif
-CRT0=$(LIBDIR)/gnuefi/crt0-efi-$(ARCH).o
-LDSCRIPT=$(LIBDIR)/gnuefi/elf_$(ARCH)_efi.lds
+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) \
-DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \