|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] [xen-unstable] [POWERPC] detect how to call nm for	xen-s
 
# 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 <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |