aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-11-22 17:24:51 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-11-22 17:24:51 +0000
commit3f857a8d12b1c4b0076a6424d5f62b1f60a4ad27 (patch)
treeef779ee316b17cacf1daf770d1204704f8e5b937 /tools/Makefile
parentc977b08f1f860f9c58341b59b1b81c393a28671d (diff)
downloadxen-3f857a8d12b1c4b0076a6424d5f62b1f60a4ad27.tar.gz
xen-3f857a8d12b1c4b0076a6424d5f62b1f60a4ad27.tar.bz2
xen-3f857a8d12b1c4b0076a6424d5f62b1f60a4ad27.zip
tools: use system installed libaio by default.
I could have sworn I did this years ago. IIRC the need for our own copy was due to the use of io_set_eventfd which is not present in version 0.3.106. However it is in 0.3.107 the first version of which was uploaded to Debian in June 2008 (I can't find a better reference for the release date). The necessary version is available in Debian Lenny onwards and is in at least RHEL 6, Fedora 13 and OpenSuSE 11.3. The necessary version appears to not be available in RHEL 5 or SLES 11 which is why I haven't simply nuked the in tree version. This is based on tools-system-libaio.diff from the Debian packaging although I have made it optional (but default on). Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 9389e1f422..443ee7feae 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,6 +1,10 @@
XEN_ROOT = $(CURDIR)/..
include $(XEN_ROOT)/tools/Rules.mk
+ifneq ($(CONFIG_SYSTEM_LIBAIO),y)
+SUBDIRS-libaio := libaio
+endif
+
SUBDIRS-y :=
SUBDIRS-y += check
SUBDIRS-y += include
@@ -18,11 +22,11 @@ SUBDIRS-y += xenmon
SUBDIRS-$(VTPM_TOOLS) += vtpm_manager
SUBDIRS-$(VTPM_TOOLS) += vtpm
SUBDIRS-y += xenstat
-SUBDIRS-$(CONFIG_Linux) += libaio
+SUBDIRS-$(CONFIG_Linux) += $(SUBDIRS-libaio)
SUBDIRS-$(CONFIG_Linux) += memshr
SUBDIRS-$(CONFIG_Linux) += blktap
SUBDIRS-$(CONFIG_Linux) += blktap2
-SUBDIRS-$(CONFIG_NetBSD) += libaio
+SUBDIRS-$(CONFIG_NetBSD) += $(SUBDIRS-libaio)
SUBDIRS-$(CONFIG_NetBSD) += blktap2
SUBDIRS-$(CONFIG_NetBSD) += xenbackendd
SUBDIRS-y += libfsimage