diff options
-rw-r--r-- | tools/Rules.mk | 4 | ||||
-rw-r--r-- | tools/examples/Makefile | 1 | ||||
-rw-r--r-- | tools/flask/policy/Makefile | 2 | ||||
-rw-r--r-- | tools/hotplug/Linux/Makefile | 18 | ||||
-rw-r--r-- | tools/hotplug/NetBSD/Makefile | 4 | ||||
-rw-r--r-- | tools/hotplug/common/Makefile | 4 | ||||
-rw-r--r-- | tools/include/xen-foreign/Makefile | 2 | ||||
-rw-r--r-- | tools/security/Makefile | 2 | ||||
-rw-r--r-- | tools/vnet/examples/Makefile | 2 |
9 files changed, 14 insertions, 25 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk index 53434d51fc..7718283544 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -8,6 +8,10 @@ include $(XEN_ROOT)/Config.mk export _INSTALL := $(INSTALL) INSTALL = $(XEN_ROOT)/tools/cross-install +CONFIG_DIR = /etc +XEN_CONFIG_DIR = $(CONFIG_DIR)/xen +XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts + XEN_INCLUDE = $(XEN_ROOT)/tools/include XEN_XC = $(XEN_ROOT)/tools/python/xen/lowlevel/xc XEN_LIBXC = $(XEN_ROOT)/tools/libxc diff --git a/tools/examples/Makefile b/tools/examples/Makefile index ecddb43e77..bb3a72c9ba 100644 --- a/tools/examples/Makefile +++ b/tools/examples/Makefile @@ -7,7 +7,6 @@ XENDOMAINS_INITD = init.d/xendomains XENDOMAINS_SYSCONFIG = init.d/sysconfig.xendomains # Xen configuration dir and configs to go there. -XEN_CONFIG_DIR = /etc/xen XEN_READMES = README XEN_READMES += README.incompatibilities XEN_CONFIGS = xend-config.sxp diff --git a/tools/flask/policy/Makefile b/tools/flask/policy/Makefile index 069b232128..df25dd8d4a 100644 --- a/tools/flask/policy/Makefile +++ b/tools/flask/policy/Makefile @@ -86,7 +86,7 @@ TUNABLES := $(POLDIR)/tunables.conf BOOLEANS := $(POLDIR)/booleans.conf # install paths -TOPDIR = $(DESTDIR)/etc/xen/ +TOPDIR = $(DESTDIR)$(XEN_CONFIG_DIR) INSTALLDIR = $(TOPDIR)/$(NAME) SRCPATH = $(INSTALLDIR)/src USERPATH = $(INSTALLDIR)/users diff --git a/tools/hotplug/Linux/Makefile b/tools/hotplug/Linux/Makefile index c9edd0dc8e..5c83fe4526 100644 --- a/tools/hotplug/Linux/Makefile +++ b/tools/hotplug/Linux/Makefile @@ -6,11 +6,7 @@ XEND_INITD = init.d/xend XENDOMAINS_INITD = init.d/xendomains XENDOMAINS_SYSCONFIG = init.d/sysconfig.xendomains -# Xen configuration dir and configs to go there. -XEN_CONFIG_DIR = /etc/xen - # Xen script dir and scripts to go there. -XEN_SCRIPT_DIR = /etc/xen/scripts XEN_SCRIPTS = network-bridge vif-bridge XEN_SCRIPTS += network-route vif-route XEN_SCRIPTS += network-nat vif-nat @@ -25,10 +21,10 @@ XEN_SCRIPT_DATA += xen-hotplug-common.sh xen-network-common.sh vif-common.sh XEN_SCRIPT_DATA += block-common.sh vtpm-common.sh vtpm-hotplug-common.sh XEN_SCRIPT_DATA += vtpm-migration.sh vtpm-impl -XEN_HOTPLUG_DIR = /etc/hotplug +XEN_HOTPLUG_DIR = $(CONFIG_DIR)/hotplug XEN_HOTPLUG_SCRIPTS = xen-backend.agent -UDEV_RULES_DIR = /etc/udev +UDEV_RULES_DIR = $(CONFIG_DIR)/udev UDEV_RULES = xen-backend.rules xend.rules DI = $(if $(DISTDIR),$(shell readlink -f $(DISTDIR)),) @@ -54,11 +50,11 @@ install: all install-initd install-scripts $(HOTPLUGS) .PHONY: install-initd install-initd: - [ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d - [ -d $(DESTDIR)/etc/sysconfig ] || $(INSTALL_DIR) $(DESTDIR)/etc/sysconfig - $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d - $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d - $(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)/etc/sysconfig/xendomains + [ -d $(DESTDIR)$(CONFIG_DIR)/init.d ] || $(INSTALL_DIR) $(DESTDIR)$(CONFIG_DIR)/init.d + [ -d $(DESTDIR)$(CONFIG_DIR)/sysconfig ] || $(INSTALL_DIR) $(DESTDIR)$(CONFIG_DIR)/sysconfig + $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)$(CONFIG_DIR)/init.d + $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)$(CONFIG_DIR)/init.d + $(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)$(CONFIG_DIR)/sysconfig/xendomains .PHONY: install-scripts install-scripts: diff --git a/tools/hotplug/NetBSD/Makefile b/tools/hotplug/NetBSD/Makefile index 8577a6f2e5..e4be3f9140 100644 --- a/tools/hotplug/NetBSD/Makefile +++ b/tools/hotplug/NetBSD/Makefile @@ -1,11 +1,7 @@ XEN_ROOT = ../../../ include $(XEN_ROOT)/tools/Rules.mk -# Xen configuration dir and configs to go there. -XEN_CONFIG_DIR = /etc/xen - # Xen script dir and scripts to go there. -XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts XEN_SCRIPTS = XEN_SCRIPTS += block-nbsd XEN_SCRIPTS += qemu-ifup-nbsd diff --git a/tools/hotplug/common/Makefile b/tools/hotplug/common/Makefile index b69b9991af..a6e731c1ca 100644 --- a/tools/hotplug/common/Makefile +++ b/tools/hotplug/common/Makefile @@ -3,11 +3,7 @@ include $(XEN_ROOT)/tools/Rules.mk # OS-independent hotplug scripts go in this directory -# Xen configuration dir and configs to go there. -XEN_CONFIG_DIR = /etc/xen - # Xen script dir and scripts to go there. -XEN_SCRIPT_DIR = /etc/xen/scripts XEN_SCRIPTS = XEN_SCRIPT_DATA = diff --git a/tools/include/xen-foreign/Makefile b/tools/include/xen-foreign/Makefile index 0b8ed920eb..8683b05974 100644 --- a/tools/include/xen-foreign/Makefile +++ b/tools/include/xen-foreign/Makefile @@ -1,5 +1,5 @@ XEN_ROOT=../../.. -include $(XEN_ROOT)/Config.mk +include $(XEN_ROOT)/tools/Rules.mk ROOT = $(XEN_ROOT)/xen/include/public diff --git a/tools/security/Makefile b/tools/security/Makefile index f8eb69c6b3..5e43d4365b 100644 --- a/tools/security/Makefile +++ b/tools/security/Makefile @@ -21,7 +21,7 @@ ACM_EZPOLICY = xensec_ezpolicy ACM_OBJS = $(OBJS_TOOL) $(OBJS_GETD) ACM_SCRIPTS = python/xensec_tools/acm_getlabel -ACM_CONFIG_DIR = /etc/xen/acm-security +ACM_CONFIG_DIR = $(XEN_CONFIG_DIR)/acm-security ACM_POLICY_DIR = $(ACM_CONFIG_DIR)/policies ACM_SCRIPT_DIR = $(ACM_CONFIG_DIR)/scripts diff --git a/tools/vnet/examples/Makefile b/tools/vnet/examples/Makefile index c3aab0c70e..84d3f1e093 100644 --- a/tools/vnet/examples/Makefile +++ b/tools/vnet/examples/Makefile @@ -3,8 +3,6 @@ XEN_ROOT = ../../.. include $(XEN_ROOT)/tools/Rules.mk -XEN_SCRIPT_DIR = $(DESTDIR)/etc/xen/scripts - .PHONY: all all: |