direct-io.hg

changeset 11376:0caf1a74fecd

[POWERPC] detect how to call nm for xen-syms.S
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Thu Aug 24 21:07:46 2006 -0400 (2006-08-24)
parents 3a195d95c615
children 7825169895d0
files xen/arch/powerpc/Makefile
line diff
     1.1 --- a/xen/arch/powerpc/Makefile	Wed Aug 23 05:44:46 2006 -0400
     1.2 +++ b/xen/arch/powerpc/Makefile	Thu Aug 24 21:07:46 2006 -0400
     1.3 @@ -101,8 +101,15 @@ TARGET_OPTS += start.o $(ALL_OBJS)
     1.4  .xen-syms: start.o $(ALL_OBJS) xen.lds
     1.5  	$(CC) $(CFLAGS) $(TARGET_OPTS) -o $@
     1.6  
     1.7 +NM=$(CROSS_COMPILE)nm
     1.8 +new_nm := $(shell if $(NM) --help 2>&1 | grep -- '--synthetic' > /dev/null; then echo y; else echo n; fi)
     1.9 +
    1.10 +ifeq ($(new_nm),y)
    1.11 +NM		:= $(NM) --synthetic
    1.12 +endif
    1.13 +
    1.14  xen-syms.S: .xen-syms
    1.15 -	$(CROSS_COMPILE)nm --synthetic -n $^ | $(BASEDIR)/tools/symbols > $@
    1.16 +	$(NM) -n $^ | $(BASEDIR)/tools/symbols > $@
    1.17  
    1.18  xen-syms.o: xen-syms.S
    1.19  	$(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@