ia64/xen-unstable

diff tools/hotplug/NetBSD/block-nbsd @ 19818:415505139333

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>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 23 17:25:51 2009 +0100 (2009-06-23)
parents 4bfc67b09e9c
children
line diff
     1.1 --- a/tools/hotplug/NetBSD/block-nbsd	Tue Jun 23 17:24:14 2009 +0100
     1.2 +++ b/tools/hotplug/NetBSD/block-nbsd	Tue Jun 23 17:25:51 2009 +0100
     1.3 @@ -4,7 +4,10 @@
     1.4  # Called by xenbackendd
     1.5  # Usage: block xsdir_backend_path state
     1.6  
     1.7 -PATH=/bin:/usr/bin:/sbin:/usr/sbin
     1.8 +DIR=$(dirname "$0")
     1.9 +. "${DIR}/hotplugpath.sh"
    1.10 +
    1.11 +PATH=${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/bin:/usr/bin:/sbin:/usr/sbin
    1.12  export PATH
    1.13  
    1.14  error() {