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

[Xen-devel] [PATCH] [HVM] Allow mkbuildtree to override XEN and XL

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [HVM] Allow mkbuildtree to override XEN and XL
From: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
Date: Wed, 06 Jun 2007 12:12:24 -0400
Delivery-date: Wed, 06 Jun 2007 09:08:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4666DC10.9020107@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <9392A06CB0FDC847B3A530B3DC174E7B02A95EDB@xxxxxxxxxxxxxxxxxxxxxxxxxx> <4666DA1C.4010708@xxxxxxxxxxxxxxx> <4666DB2C.9000707@xxxxxxxxxxxxxxx> <4666DC10.9020107@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.0 (X11/20070418)
mkbuildtree.patch
    Previous versions of mkbuildtree allowed XL to be overridden. With
the introduction of the XEN variable, this functonality was removed.
This patch gives the flexibility to override XL, and XEN on the command
line.

Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>

diff -r d4a0706d6747 unmodified_drivers/linux-2.6/mkbuildtree
--- a/unmodified_drivers/linux-2.6/mkbuildtree  Tue May 15 15:14:02 2007 +0100
+++ b/unmodified_drivers/linux-2.6/mkbuildtree  Fri May 18 07:48:18 2007 -0400
@@ -10,8 +10,17 @@ fi
 
 C=$PWD
 
-XEN=$C/../../xen
-XL=$C/../../linux-2.6-xen-sparse
+if [ -n "$XEN" -a -d "$XEN" ]; then
+       XEN=$(cd $XEN && pwd)
+else
+       XEN=$C/../../xen
+fi
+
+if [ -n "$XL" -a -d "$XL" ]; then
+       XL=$(cd $XL && pwd)
+else
+       XL=$C/../../linux-2.6-xen-sparse
+fi
 
 for d in $(find ${XL}/drivers/xen/ -maxdepth 1 -type d | sed -e 1d); do
     if ! echo $d | egrep -q back; then
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel