]> xenbits.xensource.com Git - xen.git/commitdiff
tools: gpxe build fix for NetBSD
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Jul 2010 14:10:20 +0000 (15:10 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Jul 2010 14:10:20 +0000 (15:10 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/firmware/etherboot/patches/Makefile.patch [new file with mode: 0644]
tools/firmware/etherboot/patches/series

diff --git a/tools/firmware/etherboot/patches/Makefile.patch b/tools/firmware/etherboot/patches/Makefile.patch
new file mode 100644 (file)
index 0000000..d56825b
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/src/Makefile.orig        2010-07-19 13:09:06.000000000 +0200
++++ b/src/Makefile     2010-07-19 13:04:11.000000000 +0200
+@@ -71,7 +71,8 @@ noargs : blib $(BIN)/NIC $(BIN)/gpxe.dsk
+ # If no architecture is specified in Config or on the command-line,
+ # use that of the build machine.
+ #
+-ARCH          ?= $(shell uname -m | sed -e s,i[3456789]86,i386,)
++ARCH          ?= $(shell uname -m | sed -e s,i[3456789]86,i386, \
++              -e s,i86pc,x86_32, -e s,amd64,x86_64,)
+ # handle x86_64 like i386, but set -m32 option for 32bit code only
+ ifeq ($(ARCH),x86_64)
index 86cb3008655c6e6154b861084bad6029431d07f4..f76e6bef75e7fccf39018d6b8fef719c09fc5e9e 100644 (file)
@@ -1 +1,2 @@
+Makefile.patch
 boot_prompt_option.patch