[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [xenppc-unstable] [POWERPC] detect how to call nm for xen-syms.S
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |