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-changelog

[Xen-changelog] [xen-unstable] etherboot: Fix the build.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] etherboot: Fix the build.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Feb 2008 08:00:20 -0800
Delivery-date: Fri, 01 Feb 2008 08:01:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1201788119 0
# Node ID f3b418afc6beedb1b99579d74c08483879295643
# Parent  af5d189df05117d4be376f03fe41530fd217835c
etherboot: Fix the build.
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 .hgignore                         |    5 +++--
 config/StdGNU.mk                  |    1 +
 config/SunOS.mk                   |    1 +
 tools/firmware/etherboot/Makefile |   25 ++++++++++++++++++++++++-
 4 files changed, 29 insertions(+), 3 deletions(-)

diff -r af5d189df051 -r f3b418afc6be .hgignore
--- a/.hgignore Thu Jan 31 13:01:08 2008 +0000
+++ b/.hgignore Thu Jan 31 14:01:59 2008 +0000
@@ -105,6 +105,9 @@
 ^tools/firmware/.*\.bin$
 ^tools/firmware/.*\.sym$
 ^tools/firmware/.*bios/.*bios.*\.txt$
+^tools/firmware/etherboot/etherboot-5
+^tools/firmware/etherboot/etherboot-build
+^tools/firmware/etherboot/.*\.zrom\.h$
 ^tools/firmware/extboot/extboot.img$
 ^tools/firmware/extboot/signrom$
 ^tools/firmware/hvmloader/acpi/acpigen$
@@ -258,5 +261,3 @@
 ^unmodified_drivers/linux-2.6/.*\.ko$
 ^unmodified_drivers/linux-2.6/.*\.mod\.c$
 ^LibVNCServer.*
-^tools/firmware/etherboot/etherboot-build
-^tools/firmware/etherboot/etherboot-5.*
diff -r af5d189df051 -r f3b418afc6be config/StdGNU.mk
--- a/config/StdGNU.mk  Thu Jan 31 13:01:08 2008 +0000
+++ b/config/StdGNU.mk  Thu Jan 31 14:01:59 2008 +0000
@@ -8,6 +8,7 @@ STRIP      = $(CROSS_COMPILE)strip
 STRIP      = $(CROSS_COMPILE)strip
 OBJCOPY    = $(CROSS_COMPILE)objcopy
 OBJDUMP    = $(CROSS_COMPILE)objdump
+SIZEUTIL   = $(CROSS_COMPILE)size
 
 MSGFMT     = msgfmt
 MSGMERGE   = msgmerge
diff -r af5d189df051 -r f3b418afc6be config/SunOS.mk
--- a/config/SunOS.mk   Thu Jan 31 13:01:08 2008 +0000
+++ b/config/SunOS.mk   Thu Jan 31 14:01:59 2008 +0000
@@ -8,6 +8,7 @@ STRIP      = $(CROSS_COMPILE)gstrip
 STRIP      = $(CROSS_COMPILE)gstrip
 OBJCOPY    = $(CROSS_COMPILE)gobjcopy
 OBJDUMP    = $(CROSS_COMPILE)gobjdump
+SIZEUTIL   = $(CROSS_COMPILE)gsize
 
 MSGFMT     = gmsgfmt
 
diff -r af5d189df051 -r f3b418afc6be tools/firmware/etherboot/Makefile
--- a/tools/firmware/etherboot/Makefile Thu Jan 31 13:01:08 2008 +0000
+++ b/tools/firmware/etherboot/Makefile Thu Jan 31 14:01:59 2008 +0000
@@ -1,5 +1,9 @@
 
 EB_VERSION=5.4.2
+
+override XEN_TARGET_ARCH = x86_32
+XEN_ROOT = ../../..
+include $(XEN_ROOT)/tools/Rules.mk
 
 D=etherboot-$(EB_VERSION)
 T=etherboot-$(EB_VERSION).tar.gz
@@ -18,7 +22,26 @@ eb-%.zrom.h: $E/src/Config
        rm -rf $D $E
        tar zxf $T
        cat Config >>$D/src/Config
-       ./find-gcc-3 >>$D/src/Config
+       @
+       # override many of the settings in Config
+       echo ARCH=i386 >>$D/src/Config
+       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 "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 "LDFLAGS+=$(LDFLAGS_DIRECT)" >>$D/src/Config
+       @
+       set -e; cd $D/src/arch/i386; \
+               sed -e '/ifneq.*GCC_MINORVERSION/,/endif/ s/^/#/' \
+                       Config >Config.new; \
+               mv Config.new Config
        mv $D $E
 
 clean:

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] etherboot: Fix the build., Xen patchbot-unstable <=