From: Ian Jackson Subject: [PATCH 06/11] xenstore: Make building of xenstored optional Date: Thu, 10 Jul 2014 17:14:35 +0100 Message-ID: <1405008880-21843-7-git-send-email-ian.jackson@eu.citrix.com> References: <1405008880-21843-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1405008880-21843-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org In principle it would be possible to make a rumpuser-xen-based stub xenstored, but all the necessary pieces do not yet exist. So provide a facility to disable compilation of xenstored, and use it to disable it on rump kernels. Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- config/NetBSDRump.mk | 2 ++ tools/Rules.mk | 2 ++ tools/xenstore/Makefile | 7 ++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/NetBSDRump.mk b/config/NetBSDRump.mk index e063272..e32c1cd 100644 --- a/config/NetBSDRump.mk +++ b/config/NetBSDRump.mk @@ -6,3 +6,5 @@ PTHREAD_LIBS = XEN_LOCK_DIR = /var/lib WGET = ftp + +XENSTORE_XENSTORED=n diff --git a/tools/Rules.mk b/tools/Rules.mk index 13d8fc1..0a8dd3e 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -19,6 +19,8 @@ XEN_LIBVCHAN = $(XEN_ROOT)/tools/libvchan CFLAGS_xeninclude = -I$(XEN_INCLUDE) +XENSTORE_XENSTORED ?= y + CFLAGS_libxenctrl = -I$(XEN_LIBXC) $(CFLAGS_xeninclude) LDLIBS_libxenctrl = $(XEN_LIBXC)/libxenctrl.so SHLIB_libxenctrl = -Wl,-rpath-link=$(XEN_LIBXC) diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile index e8c2f62..6a1ad77 100644 --- a/tools/xenstore/Makefile +++ b/tools/xenstore/Makefile @@ -28,7 +28,10 @@ LIBXENSTORE := libxenstore.a xenstore xenstore-control: CFLAGS += -static endif -ALL_TARGETS = libxenstore.so libxenstore.a clients xs_tdb_dump xenstored +ALL_TARGETS = libxenstore.so libxenstore.a clients +ifeq ($(XENSTORE_XENSTORED),y) +ALL_TARGETS += xs_tdb_dump xenstored +endif ifeq ($(CONFIG_Linux),y) ALL_TARGETS += init-xenstore-domain @@ -114,8 +117,10 @@ install: all $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xenstore-compat +ifeq ($(XENSTORE_XENSTORED),y) $(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR) +endif $(INSTALL_PROG) xenstore-control $(DESTDIR)$(BINDIR) $(INSTALL_PROG) xenstore $(DESTDIR)$(BINDIR) set -e ; for c in $(CLIENTS) ; do \ -- 1.7.10.4