diff -r cebd5d3f0ec4 xen/arch/x86/boot/build32.mk --- a/xen/arch/x86/boot/build32.mk Fri Mar 25 11:29:24 2011 +0100 +++ b/xen/arch/x86/boot/build32.mk Thu Mar 31 12:13:22 2011 +0200 @@ -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 $< $@