]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
xen: fix reloc.S generation for non-gnu toolchain
authorChristoph Egger <Christoph.Egger@amd.com>
Sat, 2 Apr 2011 15:09:21 +0000 (16:09 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Sat, 2 Apr 2011 15:09:21 +0000 (16:09 +0100)
The output of AT&T UNIX and GNU od(1) are different.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   23130:0e88c781a8a8
xen-unstable date:        Sat Apr 02 15:53:35 2011 +0100

xen/arch/x86/boot/build32.mk

index c061560bdfea492e16d88e9103db8d1ed086ca1a..19c813de76eb5921e42267996a61689c39e2b3f2 100644 (file)
@@ -9,8 +9,8 @@ CFLAGS += -Werror -fno-builtin -msoft-float
 
 # NB. awk invocation is a portable alternative to 'head -n -1'
 %.S: %.bin
-       (od -v -t x $< | awk 'NR > 1 {print s} {s=$$0}' | \
-       sed 's/ /,0x/g' | sed 's/^[0-9]*,/ .long /') >$@
+       (od -v -t x $< | tr -s ' ' | awk 'NR > 1 {print s} {s=$$0}' | \
+       sed 's/ /,0x/g' | sed 's/,0x$$//' | sed 's/^[0-9]*,/ .long /') >$@
 
 %.bin: %.lnk
        $(OBJCOPY) -O binary $< $@