|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] [HVM] Allow mkbuildtree to override XEN and XL
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
|
|
|
|
|