From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Guthro Subject: [PATCH] [HVM] Allow mkbuildtree to override XEN and XL Date: Wed, 06 Jun 2007 12:12:24 -0400 Message-ID: <4666DCE8.4040605@virtualiron.com> References: <9392A06CB0FDC847B3A530B3DC174E7B02A95EDB@mse10be1.mse10.exchange.ms> <4666DA1C.4010708@virtualiron.com> <4666DB2C.9000707@virtualiron.com> <4666DC10.9020107@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050005040200090501080205" Return-path: In-Reply-To: <4666DC10.9020107@virtualiron.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------050005040200090501080205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------050005040200090501080205 Content-Type: text/x-patch; name="mkbuildtree.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mkbuildtree.patch" 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 --------------050005040200090501080205 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------050005040200090501080205--