diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-12 11:24:25 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-12 11:24:25 +0000 |
commit | 670741eb9496339f88e0133ce8d96a85040faec1 (patch) | |
tree | 7076ec900453853893211687eb91d36a1b6610cd | |
parent | 0ca8557b7116b54dd879d08eb25e45a277445694 (diff) | |
download | xen-670741eb9496339f88e0133ce8d96a85040faec1.tar.gz xen-670741eb9496339f88e0133ce8d96a85040faec1.tar.bz2 xen-670741eb9496339f88e0133ce8d96a85040faec1.zip |
Fix Makefile portability: head -n -1 isn't portable.
Signed-off-by: John Levon <john.levon@sun.com>
-rw-r--r-- | xen/arch/x86/boot/build32.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/boot/build32.mk b/xen/arch/x86/boot/build32.mk index 3223bcf4f9..a570d42524 100644 --- a/xen/arch/x86/boot/build32.mk +++ b/xen/arch/x86/boot/build32.mk @@ -10,8 +10,9 @@ $(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all) CFLAGS += -Werror -fno-builtin -msoft-float +# NB. awk invocation is a portable alternative to 'head -n -1' %.S: %.bin - (od -v -t x $< | head -n -1 | \ + (od -v -t x $< | awk 'NR > 1 {print s} {s=$$0}' | \ sed 's/ /,0x/g' | sed 's/^[0-9]*,/ .long /') >$@ %.bin: %.lnk |