]> 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:06:45 +0000 (16:06 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Sat, 2 Apr 2011 15:06:45 +0000 (16:06 +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 1364d3b5097a68b39f3e193fdce255f79bfb81ce..2d2cfb15aa0a7a8c049a7281962a7afac2adcf81 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 $< $@