2 # Makefile for the kernel software RAID and LVM drivers.
5 dm-mod-objs
:= dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
6 dm-ioctl.o dm-io.o kcopyd.o
7 dm-snapshot-objs
:= dm-snap.o dm-exception-store.o
8 dm-mirror-objs
:= dm-log.o dm-raid1.o
9 raid6-objs
:= raid6main.o raid6algos.o raid6recov.o raid6tables.o \
10 raid6int1.o raid6int2.o raid6int4.o \
11 raid6int8.o raid6int16.o raid6int32.o \
12 raid6mmx.o raid6sse1.o raid6sse2.o
13 hostprogs-y
:= mktables
15 # Note: link order is important. All raid personalities
16 # and xor.o must come before md.o, as they each initialise
17 # themselves, and md.o may use the personalities when it
20 obj-
$(CONFIG_MD_LINEAR
) += linear.o
21 obj-
$(CONFIG_MD_RAID0
) += raid0.o
22 obj-
$(CONFIG_MD_RAID1
) += raid1.o
23 obj-
$(CONFIG_MD_RAID10
) += raid10.o
24 obj-
$(CONFIG_MD_RAID5
) += raid5.o xor.o
25 obj-
$(CONFIG_MD_RAID6
) += raid6.o xor.o
26 obj-
$(CONFIG_MD_MULTIPATH
) += multipath.o
27 obj-
$(CONFIG_BLK_DEV_MD
) += md.o
28 obj-
$(CONFIG_BLK_DEV_DM
) += dm-mod.o
29 obj-
$(CONFIG_DM_CRYPT
) += dm-crypt.o
30 obj-
$(CONFIG_DM_SNAPSHOT
) += dm-snapshot.o
31 obj-
$(CONFIG_DM_MIRROR
) += dm-mirror.o
32 obj-
$(CONFIG_DM_ZERO
) += dm-zero.o
34 quiet_cmd_unroll
= UNROLL
$@
35 cmd_unroll
= $(PERL
) $(srctree
)/$(src
)/unroll.pl
$(UNROLL
) \
36 < $< > $@ ||
( rm -f
$@
&& exit
1 )
38 targets
+= raid6int1.c
39 $(obj
)/raid6int1.c
: UNROLL
:= 1
40 $(obj
)/raid6int1.c
: $(src
)/raid6int.uc
$(src
)/unroll.pl FORCE
41 $(call if_changed
,unroll
)
43 targets
+= raid6int2.c
44 $(obj
)/raid6int2.c
: UNROLL
:= 2
45 $(obj
)/raid6int2.c
: $(src
)/raid6int.uc
$(src
)/unroll.pl FORCE
46 $(call if_changed
,unroll
)
48 targets
+= raid6int4.c
49 $(obj
)/raid6int4.c
: UNROLL
:= 4
50 $(obj
)/raid6int4.c
: $(src
)/raid6int.uc
$(src
)/unroll.pl FORCE
51 $(call if_changed
,unroll
)
53 targets
+= raid6int8.c
54 $(obj
)/raid6int8.c
: UNROLL
:= 8
55 $(obj
)/raid6int8.c
: $(src
)/raid6int.uc
$(src
)/unroll.pl FORCE
56 $(call if_changed
,unroll
)
58 targets
+= raid6int16.c
59 $(obj
)/raid6int16.c
: UNROLL
:= 16
60 $(obj
)/raid6int16.c
: $(src
)/raid6int.uc
$(src
)/unroll.pl FORCE
61 $(call if_changed
,unroll
)
63 targets
+= raid6int32.c
64 $(obj
)/raid6int32.c
: UNROLL
:= 32
65 $(obj
)/raid6int32.c
: $(src
)/raid6int.uc
$(src
)/unroll.pl FORCE
66 $(call if_changed
,unroll
)
68 quiet_cmd_mktable
= TABLE
$@
69 cmd_mktable
= $(obj
)/mktables
> $@ ||
( rm -f
$@
&& exit
1 )
71 targets
+= raid6tables.c
72 $(obj
)/raid6tables.c
: $(obj
)/mktables FORCE
73 $(call if_changed
,mktable
)