WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [POWERPC] detect how to call nm for xen-s

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [POWERPC] detect how to call nm for xen-syms.S
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 23:40:31 +0000
Delivery-date: Wed, 30 Aug 2006 16:43:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 0caf1a74fecd6ed9967a9eea1cc6b3fafd6a9eb5
# Parent  3a195d95c61570240322e9643093168d2003783f
[POWERPC] detect how to call nm for xen-syms.S
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/Makefile |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)

diff -r 3a195d95c615 -r 0caf1a74fecd xen/arch/powerpc/Makefile
--- a/xen/arch/powerpc/Makefile Wed Aug 23 05:44:46 2006 -0400
+++ b/xen/arch/powerpc/Makefile Thu Aug 24 21:07:46 2006 -0400
@@ -101,8 +101,15 @@ TARGET_OPTS += start.o $(ALL_OBJS)
 .xen-syms: start.o $(ALL_OBJS) xen.lds
        $(CC) $(CFLAGS) $(TARGET_OPTS) -o $@
 
+NM=$(CROSS_COMPILE)nm
+new_nm := $(shell if $(NM) --help 2>&1 | grep -- '--synthetic' > /dev/null; 
then echo y; else echo n; fi)
+
+ifeq ($(new_nm),y)
+NM             := $(NM) --synthetic
+endif
+
 xen-syms.S: .xen-syms
-       $(CROSS_COMPILE)nm --synthetic -n $^ | $(BASEDIR)/tools/symbols > $@
+       $(NM) -n $^ | $(BASEDIR)/tools/symbols > $@
 
 xen-syms.o: xen-syms.S
        $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [POWERPC] detect how to call nm for xen-syms.S, Xen patchbot-unstable <=