[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [ppc] change Makefile "ARCH" naming conventions to be (x86|ppc)_(32|64)



Summary: you must use XEN_TARGET_ARCH=ppc_64 to cross-compile now.

I noticed that our "ARCH" machinations actually broke x86 compilation in
the PPC tree. I've reworked to fix that, but that meant changing from
"ppc64" to "ppc_64".

-- 
Hollis Blanchard
IBM Linux Technology Center

changeset:   10265:41730255438f
tag:         tip
user:        Hollis Blanchard <hollisb@xxxxxxxxxx>
date:        Fri May 12 14:58:12 2006 -0500
summary:     [ppc] change Makefile "ARCH" naming conventions to be 
(x86|ppc)_(32|64)

diff -r 1f179ccb2a7f -r 41730255438f Config.mk
--- a/Config.mk Fri May 12 14:05:18 2006 -0500
+++ b/Config.mk Fri May 12 14:58:12 2006 -0500
@@ -3,8 +3,7 @@
 # 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\(..\)/ppc_\1/')
 XEN_TARGET_ARCH     ?= $(XEN_COMPILE_ARCH)
 XEN_TARGET_X86_PAE  ?= n

diff -r 1f179ccb2a7f -r 41730255438f xen/Rules.mk
--- a/xen/Rules.mk      Fri May 12 14:05:18 2006 -0500
+++ b/xen/Rules.mk      Fri May 12 14:58:12 2006 -0500
@@ -23,10 +23,8 @@ 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    := $(patsubst ppc%,ppc,$(XEN_COMPILE_ARCH))
-override TARGET_ARCH     := $(patsubst ppc%,ppc,$(XEN_TARGET_ARCH))
+override COMPILE_ARCH    := $(shell echo $(XEN_COMPILE_ARCH) | sed -e 
's/\(.*\)_\(32\|64\)/\1/')
+override TARGET_ARCH     := $(shell echo $(XEN_TARGET_ARCH) | sed -e 
's/\(.*\)_\(32\|64\)/\1/')

 TARGET := $(BASEDIR)/xen



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.