aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers/linux-2.6/mkbuildtree
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-06-06 17:49:39 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-06-06 17:49:39 +0100
commit957412e0eca07486983dd9866df3f2d47d4a0d58 (patch)
treef1b5f186fa0abeb1ec781d1b07fe49eba80b07e4 /unmodified_drivers/linux-2.6/mkbuildtree
parent49c7bf0d1d8ad265704b4055bd341f76bd9bd97d (diff)
downloadxen-957412e0eca07486983dd9866df3f2d47d4a0d58.tar.gz
xen-957412e0eca07486983dd9866df3f2d47d4a0d58.tar.bz2
xen-957412e0eca07486983dd9866df3f2d47d4a0d58.zip
pv-on-hvm: Allow Linux and Xen paths to be overridden by the environment.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6/mkbuildtree')
-rwxr-xr-xunmodified_drivers/linux-2.6/mkbuildtree13
1 files changed, 11 insertions, 2 deletions
diff --git a/unmodified_drivers/linux-2.6/mkbuildtree b/unmodified_drivers/linux-2.6/mkbuildtree
index c1abd8a83d..5c0fdb428f 100755
--- a/unmodified_drivers/linux-2.6/mkbuildtree
+++ b/unmodified_drivers/linux-2.6/mkbuildtree
@@ -10,8 +10,17 @@ fi
C=$PWD
-XEN=$C/../../xen
-XL=$C/../../../linux-2.6.18-xen.hg
+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.18-xen.hg
+fi
for d in $(find ${XL}/drivers/xen/ -maxdepth 1 -type d | sed -e 1d); do
if ! echo $d | egrep -q back; then