|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[Xen-devel] [PATCH 3 of 8] [powerpc] add PowerPC support to Makefiles
# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Date 1152744165 18000
# Node ID 49de99129bc4d762bc71b5559d0102c5691aa61e
# Parent f4654c1450a8c56bf9f439f09026c093cf3cb7d9
[powerpc] add PowerPC support to Makefiles
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
diff -r f4654c1450a8 -r 49de99129bc4 Config.mk
--- a/Config.mk Wed Jul 12 17:42:45 2006 -0500
+++ b/Config.mk Wed Jul 12 17:42:45 2006 -0500
@@ -3,8 +3,8 @@
# A debug build of Xen and tools?
debug ?= n
-# Currently supported architectures: x86_32, x86_64
-XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
+XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
+ -e s/ppc/powerpc/)
XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
XEN_TARGET_X86_PAE ?= n
diff -r f4654c1450a8 -r 49de99129bc4 xen/Rules.mk
--- a/xen/Rules.mk Wed Jul 12 17:42:45 2006 -0500
+++ b/xen/Rules.mk Wed Jul 12 17:42:45 2006 -0500
@@ -23,8 +23,10 @@ include $(XEN_ROOT)/Config.mk
# Set ARCH/SUBARCH appropriately.
override COMPILE_SUBARCH := $(XEN_COMPILE_ARCH)
override TARGET_SUBARCH := $(XEN_TARGET_ARCH)
-override COMPILE_ARCH := $(patsubst x86%,x86,$(XEN_COMPILE_ARCH))
-override TARGET_ARCH := $(patsubst x86%,x86,$(XEN_TARGET_ARCH))
+override COMPILE_ARCH := $(shell echo $(XEN_COMPILE_ARCH) | \
+ sed -e 's/\(x86\|powerpc\).*/\1/')
+override TARGET_ARCH := $(shell echo $(XEN_TARGET_ARCH) | \
+ sed -e 's/\(x86\|powerpc\).*/\1/')
TARGET := $(BASEDIR)/xen
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|