ia64/xen-unstable

changeset 10742:35a29c8f0bab

[powerpc] add PowerPC support to Makefiles
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jul 14 10:22:40 2006 +0100 (2006-07-14)
parents 516ff6908472
children 08906834ca74
files Config.mk xen/Rules.mk
line diff
     1.1 --- a/Config.mk	Fri Jul 14 10:21:57 2006 +0100
     1.2 +++ b/Config.mk	Fri Jul 14 10:22:40 2006 +0100
     1.3 @@ -3,8 +3,8 @@
     1.4  # A debug build of Xen and tools?
     1.5  debug ?= n
     1.6  
     1.7 -# Currently supported architectures: x86_32, x86_64
     1.8 -XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/)
     1.9 +XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
    1.10 +                                              -e s/ppc/powerpc/)
    1.11  XEN_TARGET_ARCH     ?= $(XEN_COMPILE_ARCH)
    1.12  XEN_TARGET_X86_PAE  ?= n
    1.13  
     2.1 --- a/xen/Rules.mk	Fri Jul 14 10:21:57 2006 +0100
     2.2 +++ b/xen/Rules.mk	Fri Jul 14 10:22:40 2006 +0100
     2.3 @@ -23,8 +23,10 @@ include $(XEN_ROOT)/Config.mk
     2.4  # Set ARCH/SUBARCH appropriately.
     2.5  override COMPILE_SUBARCH := $(XEN_COMPILE_ARCH)
     2.6  override TARGET_SUBARCH  := $(XEN_TARGET_ARCH)
     2.7 -override COMPILE_ARCH    := $(patsubst x86%,x86,$(XEN_COMPILE_ARCH))
     2.8 -override TARGET_ARCH     := $(patsubst x86%,x86,$(XEN_TARGET_ARCH))
     2.9 +override COMPILE_ARCH    := $(shell echo $(XEN_COMPILE_ARCH) | \
    2.10 +                              sed -e 's/\(x86\|powerpc\).*/\1/')
    2.11 +override TARGET_ARCH     := $(shell echo $(XEN_TARGET_ARCH) | \
    2.12 +                              sed -e 's/\(x86\|powerpc\).*/\1/')
    2.13  
    2.14  TARGET := $(BASEDIR)/xen
    2.15