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-ppc-devel

[XenPPC] [xenppc-unstable] [POWERPC] detect how to call nm for xen-syms.

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [POWERPC] detect how to call nm for xen-syms.S
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 25 Aug 2006 01:10:32 +0000
Delivery-date: Fri, 25 Aug 2006 03:43:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID d87d602408d5a25715fc9bd19ec3fd02395a1c8f
# Parent  d2087a16bc5153d6abc4d28b3bcc39904a6c65b6
[POWERPC] detect how to call nm for xen-syms.S
---
 xen/arch/powerpc/Makefile |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)

diff -r d2087a16bc51 -r d87d602408d5 xen/arch/powerpc/Makefile
--- a/xen/arch/powerpc/Makefile Thu Aug 24 13:42:05 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-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

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