]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Propagate XEN_ROOT_PARENT when supplied by parent build system
authorIan Jackson <iwj@mariner.uk.xensource.com>
Wed, 2 Jul 2008 15:12:27 +0000 (16:12 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 2 Jul 2008 15:12:27 +0000 (16:12 +0100)
xen-setup

index f735320251e3ce7cba108717424c868d99e20975..fcc1603e3f1ec124b25ed107153a4bce8fe990ab 100755 (executable)
--- a/xen-setup
+++ b/xen-setup
@@ -9,9 +9,14 @@ rm -f config-host.mak
 
 ./configure --disable-curses "$@"
 
-
 target=i386-dm
 
+case "$XEN_ROOT_PARENT" in
+'')    ;;
+/*)    echo "XEN_ROOT=$XEN_ROOT_PARENT"                >>config-host.mak ;;
+*)     echo "XEN_ROOT=`pwd`/$XEN_ROOT_PARENT/.."       >>config-host.mak ;;
+esac
+
 ln -sf ../Makefile.target $target/Makefile
 ln -sf ../xen-config.mak $target/config.mak
 cat xen-config-host.mak >>config-host.mak