diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-11-29 12:16:37 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-12-09 09:00:22 -0500 |
commit | 4e53f78e5b06c073a5c10814c72e98c1ca8a9f10 (patch) | |
tree | 2c3f60a3e159b6871c7e4d2e98b1c18bcf384ebb /tools/virtio/Makefile | |
parent | 71ccc212e5b28dfcc870b6db6589c2df264fdc6a (diff) |
tools/virtio: virtio_test tool
This is the userspace part of the tool: it includes a bunch of stubs for
linux APIs, somewhat simular to linuxsched. This makes it possible to
recompile the ring code in userspace.
A small test example is implemented combining this with vhost_test
module.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio/Makefile')
-rw-r--r-- | tools/virtio/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/virtio/Makefile b/tools/virtio/Makefile new file mode 100644 index 00000000000..d1d442ed106 --- /dev/null +++ b/tools/virtio/Makefile | |||
@@ -0,0 +1,12 @@ | |||
1 | all: test mod | ||
2 | test: virtio_test | ||
3 | virtio_test: virtio_ring.o virtio_test.o | ||
4 | CFLAGS += -g -O2 -Wall -I. -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -MMD | ||
5 | vpath %.c ../../drivers/virtio | ||
6 | mod: | ||
7 | ${MAKE} -C `pwd`/../.. M=`pwd`/vhost_test | ||
8 | .PHONY: all test mod clean | ||
9 | clean: | ||
10 | ${RM} *.o vhost_test/*.o vhost_test/.*.cmd \ | ||
11 | vhost_test/Module.symvers vhost_test/modules.order *.d | ||
12 | -include *.d | ||