pass IOEMU_CONFIGURE_CROSS to ioemu-remote/xen-setup
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 31 Jul 2008 15:13:22 +0000 (16:13 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 31 Jul 2008 15:13:22 +0000 (16:13 +0100)
Add --cpu to IOEMU_CONFIGURE_CROSS since otherwise qemu uses the
output of `uname -m` even for cross-building.  Pass
IOEMU_CONFIGURE_CROSS to xen-setup which passes it on to
ioemu/configure.

Signed-off-by: Aron Griffis <aron@hp.com>
tools/Makefile

index ff4175de9e8d919b11b06475edb383fcf5919124..bcc9fb8d0a98f03f1c6e8ac3dcef4b824a353aed 100644 (file)
@@ -55,7 +55,8 @@ install: subdirs-install
 clean distclean: subdirs-clean
 
 ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
-IOEMU_CONFIGURE_CROSS ?= --cross-prefix=$(CROSS_COMPILE) \
+IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
+                        --cross-prefix=$(CROSS_COMPILE) \
                         --interp-prefix=$(CROSS_SYS_ROOT)
 endif
 
@@ -96,7 +97,7 @@ ioemu-dir-find:
                esac; \
                export XEN_ROOT; \
                cd ioemu-dir; \
-               ./xen-setup
+               ./xen-setup $(IOEMU_CONFIGURE_CROSS)
 
 subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find