From 54bfa07f00b25cd474be5ece09c85a211b1fdc2f Mon Sep 17 00:00:00 2001 From: Bart Kuivenhoven Date: Mon, 10 Mar 2014 12:42:25 +0100 Subject: Make: Compile for aarch64 ... sorta This commit fixes the build process for the current limitations of objcopy. Objcopy still has the problem of not fully understanding relocations so while this compiles, it will not be loadable by uefi. Signed-off-by: Bart Kuivenhoven --- gnu-efi-3.0/Make.defaults | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gnu-efi-3.0/Make.defaults') diff --git a/gnu-efi-3.0/Make.defaults b/gnu-efi-3.0/Make.defaults index cd5db7e..7b9eda4 100644 --- a/gnu-efi-3.0/Make.defaults +++ b/gnu-efi-3.0/Make.defaults @@ -46,8 +46,13 @@ TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) # lib and include under the root # INSTALLROOT := / -PREFIX := /usr/local -LIBDIR := $(PREFIX)/lib +ifeq ($(ARCH),aarch64) + PREFIX := /usr + LIBDIR := $(PREFIX)/lib64 +else + PREFIX := /usr/local + LIBDIR := $(PREFIX)/lib +endif INSTALL := install # Host/target identification -- cgit