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

[Xen-devel] [PATCH][1/4] Cross-compilation enablement.

To: xen-devel@xxxxxxxxxxxxxxxxxxx, mostrows@xxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][1/4] Cross-compilation enablement.
From: Michal Ostrowski <mostrows@xxxxxxxxxxxxxx>
Date: Tue, 30 Aug 2005 08:22:30 -0400
Delivery-date: Tue, 30 Aug 2005 12:20:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Signed-off-by: Michal Ostrowski <mostrows@xxxxxxxxxxxxxx>

changeset:   6334:28c822457019
user:        mostrows@xxxxxxxxxxxxxxxxxxxxx
date:        Mon Aug 29 18:48:06 2005 -0400
summary:     Fixes for cross-compilation; ensure that toolchain is selected by 
Config.mk

diff -r 648c366d588b -r 28c822457019 tools/console/Makefile
--- a/tools/console/Makefile    Tue Aug 23 13:53:04 2005
+++ b/tools/console/Makefile    Mon Aug 29 22:48:06 2005
@@ -9,8 +9,7 @@
 INSTALL_PROG    = $(INSTALL) -m0755
 INSTALL_DIR     = $(INSTALL) -d -m0755
 
-CC       = gcc
-CFLAGS   = -Wall -Werror -g3
+CFLAGS  += -Wall -Werror -g3
 
 CFLAGS  += -I $(XEN_XCS)
 CFLAGS  += -I $(XEN_LIBXC)
diff -r 648c366d588b -r 28c822457019 tools/examples/Makefile
--- a/tools/examples/Makefile   Tue Aug 23 13:53:04 2005
+++ b/tools/examples/Makefile   Mon Aug 29 22:48:06 2005
@@ -1,3 +1,6 @@
+XEN_ROOT = ../../
+include $(XEN_ROOT)/tools/Rules.mk
+
 INSTALL                = install
 INSTALL_DIR    = $(INSTALL) -d -m0755
 INSTALL_PROG   = $(INSTALL) -m0755
diff -r 648c366d588b -r 28c822457019 tools/xcutils/Makefile
--- a/tools/xcutils/Makefile    Tue Aug 23 13:53:04 2005
+++ b/tools/xcutils/Makefile    Mon Aug 29 22:48:06 2005
@@ -18,8 +18,6 @@
 PROGRAMS_INSTALL_DIR   = /usr/libexec/xen
 
 INCLUDES += -I $(XEN_LIBXC)
-
-CC := gcc
 
 CFLAGS += -Wall -Werror -O3 -fno-strict-aliasing
 CFLAGS += $(INCLUDES)
diff -r 648c366d588b -r 28c822457019 tools/xenstat/Makefile
--- a/tools/xenstat/Makefile    Tue Aug 23 13:53:04 2005
+++ b/tools/xenstat/Makefile    Mon Aug 29 22:48:06 2005
@@ -3,7 +3,11 @@
 
 SUBDIRS :=
 SUBDIRS += libxenstat
+
+# This doesn't cross-compile (cross-compile environments rarely have curses)
+ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
 SUBDIRS += xentop
+endif
 
 .PHONY: all install clean
 


Attachment: pgp23qjqvfneg.pgp
Description: PGP signature

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