From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roy Franz Subject: [RFC PATCH 2/2] arm64: Create xen.efi binary for arm64 Date: Wed, 1 Oct 2014 18:11:39 -0700 Message-ID: <1412212299-13831-3-git-send-email-roy.franz@linaro.org> References: <1412212299-13831-1-git-send-email-roy.franz@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1412212299-13831-1-git-send-email-roy.franz@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org, ian.campbell@citrix.com, stefano.stabellini@citrix.com, tim@xen.org, jbeulich@suse.com, keir@xen.org Cc: Roy Franz , fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org The 'xen' binary for arm64 is both an Image file and a PE/COFF executable, copy it to xen.efi so that the 'make install' processing is shared with x86. Prior to this 'make install' was broken on arm64. Signed-off-by: Roy Franz --- config/arm64.mk | 2 ++ xen/arch/arm/Makefile | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/config/arm64.mk b/config/arm64.mk index 4e57b3a..6eafda2 100644 --- a/config/arm64.mk +++ b/config/arm64.mk @@ -15,3 +15,5 @@ LDFLAGS_DIRECT += -EL CONFIG_LOAD_ADDRESS ?= 0x80000000 IOEMU_CPU_ARCH ?= aarch64 + +EFI_DIR ?= /usr/lib64/efi diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index f330302..9a25290 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -49,6 +49,9 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) $(TARGET): $(TARGET)-syms $(TARGET).axf $(OBJCOPY) -O binary -S $< $@ +ifeq (arm64,$(XEN_TARGET_ARCH)) + ln -sf $(notdir $@) ../../$(notdir $@).efi +endif $(TARGET).axf: $(TARGET)-syms # XXX: VE model loads by VMA so instead of @@ -100,3 +103,4 @@ clean:: rm -f asm-offsets.s xen.lds rm -f $(BASEDIR)/.xen-syms.[0-9]* rm -f $(TARGET).axf + rm -f $(TARGET).efi -- 2.1.0