debuggers.hg

view tools/blktap/ublkback/Makefile @ 6649:f59e0163540e

Updates to blktap driver and user code.

Mostly this makes the tap code work again with all of the changes that
have happened to the block drivers recently. We now use a shared page
per VBD (to the driver), and handle control information through the
store. The taplib interfaces have changed to be based around per-vbd
data structures that you can attach arbitrary handlers for.

There is also initial code for a user-level blockback driver, which
aims to get around the use of loopbacks for file-based vbds. Still
plenty of work to do here -- this is a working incremental checkin and
I'm away from this for the next four weeks.

Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk>
author akw27@arcadians.cl.cam.ac.uk
date Sun Sep 04 21:19:44 2005 +0000 (2005-09-04)
parents
children b2f4823b6ff0 b35215021b32 9af349b055e5 3233e7ecfa9f
line source
2 XEN_ROOT = ../../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 INCLUDES += -I..
7 INSTALL = install
8 INSTALL_PROG = $(INSTALL) -m0755
9 IBIN = ublkback
10 INSTALL_DIR = /usr/sbin
12 CFLAGS += -Wall
13 CFLAGS += -Werror
14 CFLAGS += -Wno-unused
15 #CFLAGS += -O3
16 CFLAGS += -g3
17 CFLAGS += -fno-strict-aliasing
18 CFLAGS += -I $(XEN_LIBXC)
19 CFLAGS += $(INCLUDES) -I.
20 CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
21 # Get gcc to generate the dependencies for us.
22 CFLAGS += -Wp,-MD,.$(@F).d
23 DEPS = .*.d
25 OBJS = $(patsubst %.c,%.o,$(SRCS))
27 all: $(IBIN)
29 LINUX_ROOT := $(wildcard $(XEN_ROOT)/linux-2.6.*-xen-sparse)
31 install:
32 $(INSTALL_PROG) $(IBIN) $(DESTDIR)$(INSTALL_DIR)
33 clean:
34 rm -rf *.o*~ $(DEPS) xen TAGS $(IBIN)
36 ublkback:
37 $(CC) $(CFLAGS) -o ublkback -L$(XEN_LIBXC) -L. -L.. \
38 -lblktap -laio ublkback.c ublkbacklib.c -pg
40 .PHONY: clean install
42 -include $(DEPS)