dm mpath: add queue length load balancer
[pandora-kernel.git] / drivers / md / Makefile
1 #
2 # Makefile for the kernel software RAID and LVM drivers.
3 #
4
5 dm-mod-y        += dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
6                    dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o
7 dm-multipath-y  += dm-path-selector.o dm-mpath.o
8 dm-snapshot-y   += dm-snap.o dm-exception-store.o dm-snap-transient.o \
9                     dm-snap-persistent.o
10 dm-mirror-y     += dm-raid1.o
11 md-mod-y        += md.o bitmap.o
12 raid456-y       += raid5.o
13 raid6_pq-y      += raid6algos.o raid6recov.o raid6tables.o \
14                    raid6int1.o raid6int2.o raid6int4.o \
15                    raid6int8.o raid6int16.o raid6int32.o \
16                    raid6altivec1.o raid6altivec2.o raid6altivec4.o \
17                    raid6altivec8.o \
18                    raid6mmx.o raid6sse1.o raid6sse2.o
19 hostprogs-y     += mktables
20
21 # Note: link order is important.  All raid personalities
22 # and must come before md.o, as they each initialise 
23 # themselves, and md.o may use the personalities when it 
24 # auto-initialised.
25
26 obj-$(CONFIG_MD_LINEAR)         += linear.o
27 obj-$(CONFIG_MD_RAID0)          += raid0.o
28 obj-$(CONFIG_MD_RAID1)          += raid1.o
29 obj-$(CONFIG_MD_RAID10)         += raid10.o
30 obj-$(CONFIG_MD_RAID6_PQ)       += raid6_pq.o
31 obj-$(CONFIG_MD_RAID456)        += raid456.o
32 obj-$(CONFIG_MD_MULTIPATH)      += multipath.o
33 obj-$(CONFIG_MD_FAULTY)         += faulty.o
34 obj-$(CONFIG_BLK_DEV_MD)        += md-mod.o
35 obj-$(CONFIG_BLK_DEV_DM)        += dm-mod.o
36 obj-$(CONFIG_DM_CRYPT)          += dm-crypt.o
37 obj-$(CONFIG_DM_DELAY)          += dm-delay.o
38 obj-$(CONFIG_DM_MULTIPATH)      += dm-multipath.o dm-round-robin.o
39 obj-$(CONFIG_DM_MULTIPATH_QL)   += dm-queue-length.o
40 obj-$(CONFIG_DM_SNAPSHOT)       += dm-snapshot.o
41 obj-$(CONFIG_DM_MIRROR)         += dm-mirror.o dm-log.o dm-region-hash.o
42 obj-$(CONFIG_DM_ZERO)           += dm-zero.o
43
44 quiet_cmd_unroll = UNROLL  $@
45       cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \
46                    < $< > $@ || ( rm -f $@ && exit 1 )
47
48 ifeq ($(CONFIG_ALTIVEC),y)
49 altivec_flags := -maltivec -mabi=altivec
50 endif
51
52 ifeq ($(CONFIG_DM_UEVENT),y)
53 dm-mod-objs                     += dm-uevent.o
54 endif
55
56 targets += raid6int1.c
57 $(obj)/raid6int1.c:   UNROLL := 1
58 $(obj)/raid6int1.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
59         $(call if_changed,unroll)
60
61 targets += raid6int2.c
62 $(obj)/raid6int2.c:   UNROLL := 2
63 $(obj)/raid6int2.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
64         $(call if_changed,unroll)
65
66 targets += raid6int4.c
67 $(obj)/raid6int4.c:   UNROLL := 4
68 $(obj)/raid6int4.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
69         $(call if_changed,unroll)
70
71 targets += raid6int8.c
72 $(obj)/raid6int8.c:   UNROLL := 8
73 $(obj)/raid6int8.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
74         $(call if_changed,unroll)
75
76 targets += raid6int16.c
77 $(obj)/raid6int16.c:  UNROLL := 16
78 $(obj)/raid6int16.c:  $(src)/raid6int.uc $(src)/unroll.pl FORCE
79         $(call if_changed,unroll)
80
81 targets += raid6int32.c
82 $(obj)/raid6int32.c:  UNROLL := 32
83 $(obj)/raid6int32.c:  $(src)/raid6int.uc $(src)/unroll.pl FORCE
84         $(call if_changed,unroll)
85
86 CFLAGS_raid6altivec1.o += $(altivec_flags)
87 targets += raid6altivec1.c
88 $(obj)/raid6altivec1.c:   UNROLL := 1
89 $(obj)/raid6altivec1.c:   $(src)/raid6altivec.uc $(src)/unroll.pl FORCE
90         $(call if_changed,unroll)
91
92 CFLAGS_raid6altivec2.o += $(altivec_flags)
93 targets += raid6altivec2.c
94 $(obj)/raid6altivec2.c:   UNROLL := 2
95 $(obj)/raid6altivec2.c:   $(src)/raid6altivec.uc $(src)/unroll.pl FORCE
96         $(call if_changed,unroll)
97
98 CFLAGS_raid6altivec4.o += $(altivec_flags)
99 targets += raid6altivec4.c
100 $(obj)/raid6altivec4.c:   UNROLL := 4
101 $(obj)/raid6altivec4.c:   $(src)/raid6altivec.uc $(src)/unroll.pl FORCE
102         $(call if_changed,unroll)
103
104 CFLAGS_raid6altivec8.o += $(altivec_flags)
105 targets += raid6altivec8.c
106 $(obj)/raid6altivec8.c:   UNROLL := 8
107 $(obj)/raid6altivec8.c:   $(src)/raid6altivec.uc $(src)/unroll.pl FORCE
108         $(call if_changed,unroll)
109
110 quiet_cmd_mktable = TABLE   $@
111       cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 )
112
113 targets += raid6tables.c
114 $(obj)/raid6tables.c: $(obj)/mktables FORCE
115         $(call if_changed,mktable)