ia64/xen-unstable

changeset 15282:f5a71c9771a8

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>
author kfraser@localhost.localdomain
date Wed Jun 06 17:49:39 2007 +0100 (2007-06-06)
parents 736e7cf0a3a5
children 677731eb734d
files unmodified_drivers/linux-2.6/README unmodified_drivers/linux-2.6/mkbuildtree
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/README	Wed Jun 06 17:32:58 2007 +0100
     1.2 +++ b/unmodified_drivers/linux-2.6/README	Wed Jun 06 17:49:39 2007 +0100
     1.3 @@ -1,6 +1,12 @@
     1.4 -To build, run ./mkbuildtree and then
     1.5 +To build:
     1.6  
     1.7 -make -C /path/to/kernel/source M=$PWD modules
     1.8 +1. ./mkbuildtree
     1.9 +   NB. You can override paths to Xen sources and XenLinux sources via
    1.10 +       the XEN and XL environment variable.
    1.11 +
    1.12 +2. make -C /path/to/kernel/source M=$PWD modules
    1.13 +   NB. The kernel sources here are your native kernel build tree, not
    1.14 +       the XenLinux sources referred to in step 1.
    1.15  
    1.16  You get four modules, xen-platform-pci.ko, xenbus.ko, xen-vbd.ko, and
    1.17  xen-vnif.ko.  Load xen-platform-pci first, then xenbus, and then
     2.1 --- a/unmodified_drivers/linux-2.6/mkbuildtree	Wed Jun 06 17:32:58 2007 +0100
     2.2 +++ b/unmodified_drivers/linux-2.6/mkbuildtree	Wed Jun 06 17:49:39 2007 +0100
     2.3 @@ -10,8 +10,17 @@ fi
     2.4  
     2.5  C=$PWD
     2.6  
     2.7 -XEN=$C/../../xen
     2.8 -XL=$C/../../../linux-2.6.18-xen.hg
     2.9 +if [ -n "$XEN" -a -d "$XEN" ]; then
    2.10 +  XEN=$(cd $XEN && pwd)
    2.11 +else
    2.12 +  XEN=$C/../../xen
    2.13 +fi
    2.14 +
    2.15 +if [ -n "$XL" -a -d "$XL" ]; then
    2.16 +  XL=$(cd $XL && pwd)
    2.17 +else
    2.18 +  XL=$C/../../linux-2.6.18-xen.hg
    2.19 +fi
    2.20  
    2.21  for d in $(find ${XL}/drivers/xen/ -maxdepth 1 -type d | sed -e 1d); do
    2.22      if ! echo $d | egrep -q back; then