From: Roy Franz <roy.franz@linaro.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 <roy.franz@linaro.org>, fu.wei@linaro.org
Subject: [RFC PATCH 2/2] arm64: Create xen.efi binary for arm64
Date: Wed, 1 Oct 2014 18:11:39 -0700 [thread overview]
Message-ID: <1412212299-13831-3-git-send-email-roy.franz@linaro.org> (raw)
In-Reply-To: <1412212299-13831-1-git-send-email-roy.franz@linaro.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 <roy.franz@linaro.org>
---
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
next prev parent reply other threads:[~2014-10-02 1:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-02 1:11 [RFC PATCH 0/2] EFI/arm64 updates Roy Franz
2014-10-02 1:11 ` [RFC PATCH 1/2] EFI: Update documentation for arm64 Roy Franz
2014-10-02 8:34 ` Jan Beulich
2014-10-02 14:10 ` Ian Campbell
2014-10-02 1:11 ` Roy Franz [this message]
2014-10-02 13:03 ` [RFC PATCH 2/2] arm64: Create xen.efi binary " Ian Campbell
2014-10-02 13:09 ` Jan Beulich
2014-10-02 14:08 ` Ian Campbell
2014-10-02 16:56 ` Roy Franz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1412212299-13831-3-git-send-email-roy.franz@linaro.org \
--to=roy.franz@linaro.org \
--cc=fu.wei@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).