diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-06-23 17:25:51 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-06-23 17:25:51 +0100 |
commit | a2b4af7d77d66eeb6f3a82f3056889ff1d453bd0 (patch) | |
tree | 7e378a41343f4ef79acdbd5ee9427bfe6e3616e1 /tools/hotplug/NetBSD | |
parent | 2b8ba91b50c9536daac1ee64f4ef6737d03d349d (diff) | |
download | xen-a2b4af7d77d66eeb6f3a82f3056889ff1d453bd0.tar.gz xen-a2b4af7d77d66eeb6f3a82f3056889ff1d453bd0.tar.bz2 xen-a2b4af7d77d66eeb6f3a82f3056889ff1d453bd0.zip |
Get rid of hardcoded pathes for stubdom and hotplug scripts
- Have the buid system generate a file which exports the install paths
for the hotplug scripts and stubdom / stubdom-dm
- Move file generation code from tools/python/Makefile into a gmake
macro
in Config.mk to avoid maintenance of three duplicates each with its
own
tweaks and bugs
- Export gmake variables into ioemu as shell variables
for upcoming ioemu patches
- Do above as a gmake macro to avoid maintenance of several duplicates
- Adjust hotplug scripts to find the right xen binaries from the
install directory
- Adjust stubdom-dm to use the install directories
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'tools/hotplug/NetBSD')
-rw-r--r-- | tools/hotplug/NetBSD/block-nbsd | 5 | ||||
-rw-r--r-- | tools/hotplug/NetBSD/vif-bridge-nbsd | 5 | ||||
-rw-r--r-- | tools/hotplug/NetBSD/vif-ip-nbsd | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/tools/hotplug/NetBSD/block-nbsd b/tools/hotplug/NetBSD/block-nbsd index 915ddb755a..d853e11584 100644 --- a/tools/hotplug/NetBSD/block-nbsd +++ b/tools/hotplug/NetBSD/block-nbsd @@ -4,7 +4,10 @@ # Called by xenbackendd # Usage: block xsdir_backend_path state -PATH=/bin:/usr/bin:/sbin:/usr/sbin +DIR=$(dirname "$0") +. "${DIR}/hotplugpath.sh" + +PATH=${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/bin:/usr/bin:/sbin:/usr/sbin export PATH error() { diff --git a/tools/hotplug/NetBSD/vif-bridge-nbsd b/tools/hotplug/NetBSD/vif-bridge-nbsd index bedb387953..ecfef15012 100644 --- a/tools/hotplug/NetBSD/vif-bridge-nbsd +++ b/tools/hotplug/NetBSD/vif-bridge-nbsd @@ -4,7 +4,10 @@ # Called by xenbackendd # Usage: vif-bridge xsdir_backend_path state -PATH=/bin:/usr/bin:/sbin:/usr/sbin +DIR=$(dirname "$0") +. "${DIR}/hotplugpath.sh" + +PATH=${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/bin:/usr/bin:/sbin:/usr/sbin export PATH xpath=$1 diff --git a/tools/hotplug/NetBSD/vif-ip-nbsd b/tools/hotplug/NetBSD/vif-ip-nbsd index d8b5bb9759..ca4fd60580 100644 --- a/tools/hotplug/NetBSD/vif-ip-nbsd +++ b/tools/hotplug/NetBSD/vif-ip-nbsd @@ -4,7 +4,10 @@ # Called by xenbackendd # Usage: vif-ip xsdir_backend_path state -PATH=/bin:/usr/bin:/sbin:/usr/sbin +DIR=$(dirname "$0") +. "${DIR}/hotplugpath.sh" + +PATH=${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/bin:/usr/bin:/sbin:/usr/sbin export PATH xpath=$1 |