From: Christoph Egger Date: Sat, 2 Apr 2011 14:53:35 +0000 (+0100) Subject: xen: fix reloc.S generation for non-gnu toolchain X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb22c75f1660d8a612af09828bf929334818003d;p=xen.git xen: fix reloc.S generation for non-gnu toolchain The output of AT&T UNIX and GNU od(1) are different. Signed-off-by: Christoph Egger --- diff --git a/xen/arch/x86/boot/build32.mk b/xen/arch/x86/boot/build32.mk index 447033afd2..185f9452d2 100644 --- a/xen/arch/x86/boot/build32.mk +++ b/xen/arch/x86/boot/build32.mk @@ -9,8 +9,8 @@ CFLAGS := $(filter-out -flto,$(CFLAGS)) # 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 $< $@