From: John Levon Subject: [PATCH] Fix Makefile portability Date: Wed, 11 Mar 2009 18:48:29 -0700 Message-ID: <5c365f6d394e67d0ea5b.1236822509@girltalk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User John Levon # Date 1236822392 25200 # Node ID 5c365f6d394e67d0ea5b9a30bd02fa5f1a3c0dbd # Parent 602cae863715248763cb78253eb4179908075bc5 Fix Makefile portability head -n -1 sadly isn't portable. Signed-off-by: John Levon 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