stacktrace: add forward-declaration struct task_struct
[linux/fpc-iii.git] / drivers / md / Makefile
blob45cc5951d9287030df73363a20659482aa55414d
2 # Makefile for the kernel software RAID and LVM drivers.
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
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.
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_SNAPSHOT) += dm-snapshot.o
40 obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o
41 obj-$(CONFIG_DM_ZERO) += dm-zero.o
43 quiet_cmd_unroll = UNROLL $@
44 cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \
45 < $< > $@ || ( rm -f $@ && exit 1 )
47 ifeq ($(CONFIG_ALTIVEC),y)
48 altivec_flags := -maltivec -mabi=altivec
49 endif
51 ifeq ($(CONFIG_DM_UEVENT),y)
52 dm-mod-objs += dm-uevent.o
53 endif
55 targets += raid6int1.c
56 $(obj)/raid6int1.c: UNROLL := 1
57 $(obj)/raid6int1.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE
58 $(call if_changed,unroll)
60 targets += raid6int2.c
61 $(obj)/raid6int2.c: UNROLL := 2
62 $(obj)/raid6int2.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE
63 $(call if_changed,unroll)
65 targets += raid6int4.c
66 $(obj)/raid6int4.c: UNROLL := 4
67 $(obj)/raid6int4.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE
68 $(call if_changed,unroll)
70 targets += raid6int8.c
71 $(obj)/raid6int8.c: UNROLL := 8
72 $(obj)/raid6int8.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE
73 $(call if_changed,unroll)
75 targets += raid6int16.c
76 $(obj)/raid6int16.c: UNROLL := 16
77 $(obj)/raid6int16.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE
78 $(call if_changed,unroll)
80 targets += raid6int32.c
81 $(obj)/raid6int32.c: UNROLL := 32
82 $(obj)/raid6int32.c: $(src)/raid6int.uc $(src)/unroll.pl FORCE
83 $(call if_changed,unroll)
85 CFLAGS_raid6altivec1.o += $(altivec_flags)
86 targets += raid6altivec1.c
87 $(obj)/raid6altivec1.c: UNROLL := 1
88 $(obj)/raid6altivec1.c: $(src)/raid6altivec.uc $(src)/unroll.pl FORCE
89 $(call if_changed,unroll)
91 CFLAGS_raid6altivec2.o += $(altivec_flags)
92 targets += raid6altivec2.c
93 $(obj)/raid6altivec2.c: UNROLL := 2
94 $(obj)/raid6altivec2.c: $(src)/raid6altivec.uc $(src)/unroll.pl FORCE
95 $(call if_changed,unroll)
97 CFLAGS_raid6altivec4.o += $(altivec_flags)
98 targets += raid6altivec4.c
99 $(obj)/raid6altivec4.c: UNROLL := 4
100 $(obj)/raid6altivec4.c: $(src)/raid6altivec.uc $(src)/unroll.pl FORCE
101 $(call if_changed,unroll)
103 CFLAGS_raid6altivec8.o += $(altivec_flags)
104 targets += raid6altivec8.c
105 $(obj)/raid6altivec8.c: UNROLL := 8
106 $(obj)/raid6altivec8.c: $(src)/raid6altivec.uc $(src)/unroll.pl FORCE
107 $(call if_changed,unroll)
109 quiet_cmd_mktable = TABLE $@
110 cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 )
112 targets += raid6tables.c
113 $(obj)/raid6tables.c: $(obj)/mktables FORCE
114 $(call if_changed,mktable)