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

Re: [Xen-devel] [PATCH v2 01/10] arm: few missing #define



On Fri, 2012-02-10 at 12:02 +0000, Stefano Stabellini wrote:
> Few missing #define are the cause of a compile failure with
> XEN_TARGET_ARM=arm and XEN_COMPILE_ARM=arm (for example in the case of a
> native compilation).

Have you tried native compilation? I get:
        $ make -C xen
        make: Entering directory `/local/scratch/ianc/devel/xen-unstable/xen'
        make -f Rules.mk _build
        make[1]: Entering directory `/local/scratch/ianc/devel/xen-unstable/xen'
        /local/scratch/ianc/devel/xen-unstable/xen/../Config.mk:45: 
/local/scratch/ianc/devel/xen-unstable/xen/../config/armv7l.mk: No such file or 
directory
        Rules.mk:35: 
/local/scratch/ianc/devel/xen-unstable/xen/arch/armv7l/Rules.mk: No such file 
or directory
        make[1]: *** No rule to make target 
`/local/scratch/ianc/devel/xen-unstable/xen/arch/armv7l/Rules.mk'.  Stop.

I presume this is because of:
        $ uname -m
        armv7l

The following fixes it for me and matches what Linux does.

8<---------------------------------------------------------------

>From 810e27651f0f883bab01f55e804fe733b92dd824 Mon Sep 17 00:00:00 2001
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Mon, 13 Feb 2012 13:46:53 +0000
Subject: [PATCH] arm: Set XEN_COMPILE_ARCH correctly from "umame -m" on ARM

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 Config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Config.mk b/Config.mk
index e2dc4b9..df34718 100644
--- a/Config.mk
+++ b/Config.mk
@@ -13,7 +13,7 @@ realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir 
$(file)) && echo "
 debug ?= y
 
 XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
-                         -e s/i86pc/x86_32/ -e s/amd64/x86_64/)
+                         -e s/i86pc/x86_32/ -e s/amd64/x86_64/ -e s/arm.*/arm/)
 XEN_TARGET_ARCH     ?= $(XEN_COMPILE_ARCH)
 XEN_OS              ?= $(shell uname -s)
 
-- 
1.7.8.3




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


 


Rackspace

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