From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ijc@hellion.org.uk>
Cc: Ian Campbell <ian.campbell@citrix.com>,
stefano.stabellini@eu.citrix.com, tim@xen.org,
xen-devel@lists.xen.org, julien.grall@citrix.com,
Wookey <wookey@linaro.org>
Subject: Re: [PATCH] xen: arm: make zImage the default target which we install
Date: Thu, 18 Jul 2013 13:05:34 +0100 [thread overview]
Message-ID: <51E7DA0E.2070900@linaro.org> (raw)
In-Reply-To: <1373630398-20993-1-git-send-email-ijc@hellion.org.uk>
On 07/12/2013 12:59 PM, Ian Campbell wrote:
> From: Ian Campbell <ian.campbell@citrix.com>
>
> The zImage compatible binary is the useful one on real hardware. The relocated
> ELF thing is only really useful when booting directly on Fast Models. The
> customary suffix for that case is .axf so provide that as a target.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Cc: Wookey <wookey@linaro.org>
> ---
> xen/arch/arm/Makefile | 13 ++++---------
> 1 file changed, 4 insertions(+), 9 deletions(-)
>
> diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile
> index 87fabe1..0fba75c 100644
> --- a/xen/arch/arm/Makefile
> +++ b/xen/arch/arm/Makefile
> @@ -40,20 +40,15 @@ endif
>
> ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS)
>
> -$(TARGET): $(TARGET)-syms $(TARGET).bin
> +$(TARGET): $(TARGET)-syms $(TARGET).axf
> + $(OBJCOPY) -O binary -S $< $@
> +
> +$(TARGET).axf: $(TARGET)-syms
> # XXX: VE model loads by VMA so instead of
> # making a proper ELF we link with LMA == VMA and adjust crudely
> $(OBJCOPY) --change-addresses +0x80000000 $< $@
> $(STRIP) $@
>
> -#
> -$(TARGET).bin: $(TARGET)-syms
> - $(OBJCOPY) -O binary -S $< $@
> -
> -#$(TARGET): $(TARGET)-syms $(efi-y) boot/mkelf32
> -# ./boot/mkelf32 $(TARGET)-syms $(TARGET) 0x100000 \
> -# `$(NM) -nr $(TARGET)-syms | head -n 1 | sed -e 's/^\([^ ]*\).*/0x\1/'`
> -
> ifeq ($(lto),y)
> # Gather all LTO objects together
> prelink_lto.o: $(ALL_OBJS)
>
Is it possible to remove xen.axf when "make clean" is called?
--
Julien
next prev parent reply other threads:[~2013-07-18 12:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-12 11:59 [PATCH] xen: arm: make zImage the default target which we install Ian Campbell
2013-07-15 8:38 ` [PATCH] xen: allow architecture to choose whether to compress installed xen binary Ian Campbell
2013-07-15 9:44 ` Jan Beulich
2013-07-16 9:15 ` Ian Campbell
2013-07-16 9:20 ` Jan Beulich
2013-07-17 11:13 ` Ian Campbell
2013-07-17 11:31 ` Jan Beulich
2013-07-17 11:37 ` Ian Campbell
2013-07-17 11:13 ` [PATCH] xen: x86: drop the ".gz" suffix when installing Ian Campbell
2013-07-17 11:26 ` Jan Beulich
2013-07-17 11:35 ` Ian Campbell
2013-07-18 12:05 ` Julien Grall [this message]
2013-07-18 12:10 ` [PATCH] xen: arm: make zImage the default target which we install Ian Campbell
2013-07-18 12:12 ` Julien Grall
2013-07-19 14:18 ` Ian Campbell
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=51E7DA0E.2070900@linaro.org \
--to=julien.grall@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=ijc@hellion.org.uk \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=wookey@linaro.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).