From: Hollis Blanchard Subject: [patch] cross-compile xen core Date: Fri, 18 Mar 2005 14:51:49 -0600 Message-ID: <200503181451.49480.hollisb@us.ibm.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_l9zOCc5ezZ/GTN/" Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org --Boundary-00=_l9zOCc5ezZ/GTN/ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Is this patch ok? I'm just building the xen core right now, so I haven't looked at tools or anything else. Signed-off-by: Hollis Blanchard -- Hollis Blanchard IBM Linux Technology Center --Boundary-00=_l9zOCc5ezZ/GTN/ Content-Type: text/x-diff; charset="us-ascii"; name="xen-cross.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-cross.diff" ===== xen/arch/ia64/Rules.mk 1.1 vs edited ===== --- 1.1/xen/arch/ia64/Rules.mk 2005-02-14 06:25:22 -06:00 +++ edited/xen/arch/ia64/Rules.mk 2005-03-18 14:28:19 -06:00 @@ -5,10 +5,11 @@ OBJCOPY = objcopy endif ifneq ($(COMPILE_ARCH),$(TARGET_ARCH)) -CC = /usr/local/sp_env/v2.2/i686/bin/ia64-unknown-linux-gcc -LD = /usr/local/sp_env/v2.2/i686/bin/ia64-unknown-linux-ld -OBJCOPY = /usr/local/sp_env/v2.2/i686/bin/ia64-unknown-linux-objcopy +CROSS_COMPILE ?= /usr/local/sp_env/v2.2/i686/bin/ia64-unknown-linux- endif +CC = $(CROSS_COMPILE)gcc +LD = $(CROSS_COMPILE)ld +OBJCOPY = $(CROSS_COMPILE)objcopy HOSTCC := gcc #LD := ld # Linker should relocate monitor to this address ===== xen/arch/x86/Rules.mk 1.30 vs edited ===== --- 1.30/xen/arch/x86/Rules.mk 2005-02-10 07:17:10 -06:00 +++ edited/xen/arch/x86/Rules.mk 2005-03-18 14:28:38 -06:00 @@ -1,8 +1,8 @@ ######################################## # x86-specific definitions -CC := gcc -LD := ld +CC := $(CROSS_COMPILE)gcc +LD := $(CROSS_COMPILE)ld CFLAGS := -nostdinc -fno-builtin -fno-common -fno-strict-aliasing CFLAGS += -iwithprefix include -Wall -Werror -Wno-format -pipe --Boundary-00=_l9zOCc5ezZ/GTN/-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click