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/common | |
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/common')
-rw-r--r-- | tools/hotplug/common/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/hotplug/common/Makefile b/tools/hotplug/common/Makefile index a6e731c1ca..b95bf4ee8b 100644 --- a/tools/hotplug/common/Makefile +++ b/tools/hotplug/common/Makefile @@ -1,17 +1,22 @@ -XEN_ROOT = ../../../ +XEN_ROOT = ../../.. include $(XEN_ROOT)/tools/Rules.mk +HOTPLUGPATH="hotplugpath.sh" + # OS-independent hotplug scripts go in this directory -# Xen script dir and scripts to go there. -XEN_SCRIPTS = +# Xen scripts to go there. +XEN_SCRIPTS = $(HOTPLUGPATH) XEN_SCRIPT_DATA = +genpath-target = $(call buildmakevars2file,$(HOTPLUGPATH)) +$(eval $(genpath-target)) + .PHONY: all -all: +all: build .PHONY: build -build: +build: genpath .PHONY: install install: all install-scripts @@ -31,3 +36,4 @@ install-scripts: .PHONY: clean clean: + rm -f $(HOTPLUGPATH) |