ia64/xen-unstable

changeset 19341:32cdbebf0cb7

Fix Makefile portability: head -n -1 isn't portable.

Signed-off-by: John Levon <john.levon@sun.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 12 11:24:25 2009 +0000 (2009-03-12)
parents dc5441bf3ddc
children e174645c7fc0
files xen/arch/x86/boot/build32.mk
line diff
     1.1 --- a/xen/arch/x86/boot/build32.mk	Thu Mar 12 11:16:54 2009 +0000
     1.2 +++ b/xen/arch/x86/boot/build32.mk	Thu Mar 12 11:24:25 2009 +0000
     1.3 @@ -10,8 +10,9 @@ include $(XEN_ROOT)/Config.mk
     1.4  
     1.5  CFLAGS += -Werror -fno-builtin -msoft-float
     1.6  
     1.7 +# NB. awk invocation is a portable alternative to 'head -n -1'
     1.8  %.S: %.bin
     1.9 -	(od -v -t x $< | head -n -1 | \
    1.10 +	(od -v -t x $< | awk 'NR > 1 {print s} {s=$$0}' | \
    1.11  	sed 's/ /,0x/g' | sed 's/^[0-9]*,/ .long /') >$@
    1.12  
    1.13  %.bin: %.lnk