cross-compile xen core
PATCH 1/1 cross-compile xen core
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 <[email protected]>
Signature · 2 lines
Hollis Blanchard IBM Linux Technology Center
===== xen/arch/ia64/Rules.mk 1.1 vs edited =====
xen/arch/ia64/Rules.mk +4 -3
@@ -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 =====
xen/arch/x86/Rules.mk +2 -2
@@ -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