diff options
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 |