WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] getting etherboot compiling

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] getting etherboot compiling
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Fri, 1 Feb 2008 18:21:03 +0000
Delivery-date: Fri, 01 Feb 2008 10:21:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080201181647.GA7841@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080201181647.GA7841@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Fri, Feb 01, 2008 at 06:16:47PM +0000, John Levon wrote:

> With the patch below (at least some of the way), I just get:

And the patch

john

diff --git a/config/StdGNU.mk b/config/StdGNU.mk
--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -12,6 +12,7 @@ SIZEUTIL   = $(CROSS_COMPILE)size
 
 MSGFMT     = msgfmt
 MSGMERGE   = msgmerge
+TAR        = tar
 
 INSTALL      = install
 INSTALL_DIR  = $(INSTALL) -d -m0755 -p
diff --git a/config/SunOS.mk b/config/SunOS.mk
--- a/config/SunOS.mk
+++ b/config/SunOS.mk
@@ -11,6 +11,7 @@ SIZEUTIL   = $(CROSS_COMPILE)gsize
 SIZEUTIL   = $(CROSS_COMPILE)gsize
 
 MSGFMT     = gmsgfmt
+TAR        = gtar
 
 SHELL      = bash
 
diff --git a/tools/firmware/etherboot/Makefile 
b/tools/firmware/etherboot/Makefile
--- a/tools/firmware/etherboot/Makefile
+++ b/tools/firmware/etherboot/Makefile
@@ -21,14 +21,14 @@ eb-%.zrom.h: $E/src/Config
        mv -f $@.new $@
 
 eb-rom-list.h: make-eb-rom-list $E/src/bin/Roms
-       ./$^ $(NICS) >$@.new && mv -f $@.new $@
+       PATH=/usr/gnu/bin/:$(PATH) ./$^ $(NICS) >$@.new && mv -f $@.new $@
 
 eb-roms.h: eb-rom-list.h $(ROM_ZHS)
        cat $^ >$@.new && mv -f $@.new $@
 
 $E/src/Config: $T Config
        rm -rf $D $E
-       tar zxf $T
+       $(TAR) zxf $T
        cat Config >>$D/src/Config
        @
        # override many of the settings in Config
@@ -36,14 +36,14 @@ eb-roms.h: eb-rom-list.h $(ROM_ZHS)
        echo "HOST_CC=$(HOSTCC)" >>$D/src/Config
        echo "CPP=$(CPP)" >>$D/src/Config
        echo "CC=$(CC)" >>$D/src/Config
-       echo "AS=$(CC) -c -x assembler -" >>$D/src/Config
+       echo "AS=$(AS)" >>$D/src/Config
        echo "LD=$(LD)" >>$D/src/Config
        echo "SIZE=$(SIZE)" >>$D/src/Config
        echo "AR=$(AR)" >>$D/src/Config
        echo "RANLIB=$(RANLIB)" >>$D/src/Config
        echo "OBJCOPY=$(OBJCOPY)" >>$D/src/Config
        echo "CFLAGS+=$(CFLAGS)" >>$D/src/Config
-       echo "ASFLAGS+=$(CFLAGS)" >>$D/src/Config
+       echo "ASFLAGS+=$(ASFLAGS)" >>$D/src/Config
        echo "LDFLAGS+=$(LDFLAGS_DIRECT)" >>$D/src/Config
        @
        set -e; cd $D/src/arch/i386; \
@@ -53,7 +53,7 @@ eb-roms.h: eb-rom-list.h $(ROM_ZHS)
        mv $D $E
 
 $E/src/bin/Roms: $E/src/Config
-       $(MAKE) -C $E/src bin/Roms
+       PATH=/usr/gnu/bin/:$(PATH) $(MAKE) -C $E/src bin/Roms
 
 clean:
        rm -rf $D $E *.zrom.h eb-rom-list.h eb-roms.h *~
diff --git a/tools/firmware/etherboot/make-eb-rom-list 
b/tools/firmware/etherboot/make-eb-rom-list
--- a/tools/firmware/etherboot/make-eb-rom-list
+++ b/tools/firmware/etherboot/make-eb-rom-list
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 set -e
 roms=$1; shift
 echo "/* autogenerated - do not edit */"

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