xenstore: Portability: do not build init-xenstore-domain if stubdom disabled
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 1 Mar 2012 18:52:35 +0000 (18:52 +0000)
committerChristoph Egger <Christoph.Egger@amd.com>
Thu, 1 Mar 2012 18:52:35 +0000 (18:52 +0000)
Build stubxenstore only when building stubdomains.
Fixes build failure on platforms w/o the relevant ioctl.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenstore/Makefile

index ea1b89b190fb5faaeb97095f5120338e1a22c2c7..e95790165c31fe32dc6b153048f2684dbf642911 100644 (file)
@@ -27,10 +27,11 @@ LIBXENSTORE := libxenstore.a
 xenstore xenstore-control: CFLAGS += -static
 endif
 
-ALL_TARGETS = libxenstore.so libxenstore.a clients xs_tdb_dump xenstored init-xenstore-domain
+ALL_TARGETS = libxenstore.so libxenstore.a clients xs_tdb_dump xenstored
 
 ifdef CONFIG_STUBDOM
 CFLAGS += -DNO_SOCKETS=1
+ALL_TARGETS += init-xenstore-domain
 endif
 
 .PHONY: all