aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/Makefile
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@entel.upc.edu>2011-09-30 14:38:55 +0200
committerRoger Pau Monne <roger.pau@entel.upc.edu>2011-09-30 14:38:55 +0200
commit97ee1f5d722e7504bf878b8200047db3f127ddde (patch)
treeaae49832584ef38a2f3b56db3e71e2253964dc7c /tools/libxl/Makefile
parent0772c12142d609624a958db9b2012d3617dd7c08 (diff)
downloadxen-97ee1f5d722e7504bf878b8200047db3f127ddde.tar.gz
xen-97ee1f5d722e7504bf878b8200047db3f127ddde.tar.bz2
xen-97ee1f5d722e7504bf878b8200047db3f127ddde.zip
libxl: add support for image files for NetBSD
Created a helper function to detect if the OS is capable of using image files as phy backends. Create two OS specific files, and changed the Makefile to choose the correct one at compile time. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/Makefile')
-rw-r--r--tools/libxl/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
index 1c95718a75..78bc589da8 100644
--- a/tools/libxl/Makefile
+++ b/tools/libxl/Makefile
@@ -33,6 +33,15 @@ endif
LIBXL_OBJS-$(CONFIG_X86) += libxl_cpuid.o
LIBXL_OBJS-$(CONFIG_IA64) += libxl_nocpuid.o
+ifeq ($(CONFIG_NetBSD),y)
+LIBXL_OBJS-y += libxl_netbsd.o
+else ifeq ($(CONFIG_Linux),y)
+LIBXL_OBJS-y += libxl_linux.o
+else
+$(error Your Operating System is not supported by libxenlight, \
+please check libxl_linux.c and libxl_netbsd.c to see how to get it ported)
+endif
+
LIBXL_LIBS += -lyajl
LIBXL_OBJS = flexarray.o libxl.o libxl_create.o libxl_dm.o libxl_pci.o \