diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-06-06 17:49:39 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-06-06 17:49:39 +0100 |
commit | 957412e0eca07486983dd9866df3f2d47d4a0d58 (patch) | |
tree | f1b5f186fa0abeb1ec781d1b07fe49eba80b07e4 /unmodified_drivers | |
parent | 49c7bf0d1d8ad265704b4055bd341f76bd9bd97d (diff) | |
download | xen-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')
-rw-r--r-- | unmodified_drivers/linux-2.6/README | 10 | ||||
-rwxr-xr-x | unmodified_drivers/linux-2.6/mkbuildtree | 13 |
2 files changed, 19 insertions, 4 deletions
diff --git a/unmodified_drivers/linux-2.6/README b/unmodified_drivers/linux-2.6/README index f5ad4dbabe..f46da3d3aa 100644 --- a/unmodified_drivers/linux-2.6/README +++ b/unmodified_drivers/linux-2.6/README @@ -1,6 +1,12 @@ -To build, run ./mkbuildtree and then +To build: -make -C /path/to/kernel/source M=$PWD modules +1. ./mkbuildtree + NB. You can override paths to Xen sources and XenLinux sources via + the XEN and XL environment variable. + +2. make -C /path/to/kernel/source M=$PWD modules + NB. The kernel sources here are your native kernel build tree, not + the XenLinux sources referred to in step 1. You get four modules, xen-platform-pci.ko, xenbus.ko, xen-vbd.ko, and xen-vnif.ko. Load xen-platform-pci first, then xenbus, and then 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 |