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-ppc-devel

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

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [ppc] change Makefile "ARCH" naming conventions to be (x86|ppc)_(32|64)
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Fri, 12 May 2006 15:01:46 -0500
Delivery-date: Fri, 12 May 2006 13:01:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [ppc] change Makefile "ARCH" naming conventions to be (x86|ppc)_(32|64), Hollis Blanchard <=