qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/2] Added target to build libvdisk


From: Saggi Mizrahi
Subject: [Qemu-devel] [PATCH 2/2] Added target to build libvdisk
Date: Mon, 22 Aug 2011 20:06:38 +0300

libvdisk is a library that packages qemu's handling of disk images. This
allows for other programs to link to it and get access to qemu image
file abstractions.

To use install the lib and #include <vdisk/block.h>
all the bdrv_* functions work as expected.

Signed-off-by: Saggi Mizrahi <address@hidden>
---
 .gitignore    |    4 ++--
 Makefile.objs |    9 +++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 59c343c..a389059 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
-config-devices.*
-config-all-devices.*
+config-devices.* config-all-devices.*
 config-host.*
 config-target.*
 trace.h
@@ -15,6 +14,7 @@ libdis*
 libhw32
 libhw64
 libuser
+libvdisk
 qapi-generated
 qemu-doc.html
 qemu-tech.html
diff --git a/Makefile.objs b/Makefile.objs
index 432b619..291f194 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -171,6 +171,15 @@ common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o 
xen_devconfig.o
 common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
 
 ######################################################################
+# libvdisk
+
+vdisk-obj-y = $(block-obj-y)
+
+vdisk-obj-y += qemu-tool.o qemu-error.o
+vdisk-obj-y += $(oslib-obj-y) $(trace-obj-y) $(block-obj-y)
+vdisk-obj-y += $(qobject-obj-y) $(version-obj-y) qemu-timer-common.o
+
+######################################################################
 # libuser
 
 user-obj-y =
-- 
1.7.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]