[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix Makefile portability



# HG changeset patch
# User John Levon <john.levon@xxxxxxx>
# Date 1236822392 25200
# Node ID 5c365f6d394e67d0ea5b9a30bd02fa5f1a3c0dbd
# Parent  602cae863715248763cb78253eb4179908075bc5
Fix Makefile portability

head -n -1 sadly isn't portable.

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/xen/arch/x86/boot/build32.mk b/xen/arch/x86/boot/build32.mk
--- a/xen/arch/x86/boot/build32.mk
+++ b/xen/arch/x86/boot/build32.mk
@@ -11,7 +11,7 @@ CFLAGS += -Werror -fno-builtin -msoft-fl
 CFLAGS += -Werror -fno-builtin -msoft-float
 
 %.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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.