Makefile 2.5 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4
#
# Makefile for the kernel software RAID and LVM drivers.
#

C
Christoph Hellwig 已提交
5
dm-mod-y	+= dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
6 7
		   dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o dm-stats.o \
		   dm-rq.o
C
Christoph Hellwig 已提交
8 9
dm-multipath-y	+= dm-path-selector.o dm-mpath.o
dm-snapshot-y	+= dm-snap.o dm-exception-store.o dm-snap-transient.o \
10
		    dm-snap-persistent.o
C
Christoph Hellwig 已提交
11
dm-mirror-y	+= dm-raid1.o
J
Jonthan Brassow 已提交
12 13
dm-log-userspace-y \
		+= dm-log-userspace-base.o dm-log-userspace-transfer.o
14
dm-bio-prison-y += dm-bio-prison-v1.o dm-bio-prison-v2.o
J
Joe Thornber 已提交
15
dm-thin-pool-y	+= dm-thin.o dm-thin-metadata.o
16 17
dm-cache-y	+= dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o \
		    dm-cache-background-tracker.o
18
dm-cache-smq-y   += dm-cache-policy-smq.o
J
Joe Thornber 已提交
19
dm-era-y	+= dm-era-target.o
20
dm-verity-y	+= dm-verity-target.o
C
Christoph Hellwig 已提交
21
md-mod-y	+= md.o bitmap.o
S
Shaohua Li 已提交
22
raid456-y	+= raid5.o raid5-cache.o
L
Linus Torvalds 已提交
23 24

# Note: link order is important.  All raid personalities
25
# and must come before md.o, as they each initialise 
L
Linus Torvalds 已提交
26 27 28 29 30 31 32
# themselves, and md.o may use the personalities when it 
# auto-initialised.

obj-$(CONFIG_MD_LINEAR)		+= linear.o
obj-$(CONFIG_MD_RAID0)		+= raid0.o
obj-$(CONFIG_MD_RAID1)		+= raid1.o
obj-$(CONFIG_MD_RAID10)		+= raid10.o
33
obj-$(CONFIG_MD_RAID456)	+= raid456.o
L
Linus Torvalds 已提交
34 35
obj-$(CONFIG_MD_MULTIPATH)	+= multipath.o
obj-$(CONFIG_MD_FAULTY)		+= faulty.o
36
obj-$(CONFIG_MD_CLUSTER)	+= md-cluster.o
K
Kent Overstreet 已提交
37
obj-$(CONFIG_BCACHE)		+= bcache/
38
obj-$(CONFIG_BLK_DEV_MD)	+= md-mod.o
L
Linus Torvalds 已提交
39
obj-$(CONFIG_BLK_DEV_DM)	+= dm-mod.o
40
obj-$(CONFIG_BLK_DEV_DM_BUILTIN) += dm-builtin.o
M
Mikulas Patocka 已提交
41
obj-$(CONFIG_DM_BUFIO)		+= dm-bufio.o
42
obj-$(CONFIG_DM_BIO_PRISON)	+= dm-bio-prison.o
L
Linus Torvalds 已提交
43
obj-$(CONFIG_DM_CRYPT)		+= dm-crypt.o
H
Heinz Mauelshagen 已提交
44
obj-$(CONFIG_DM_DELAY)		+= dm-delay.o
J
Josef Bacik 已提交
45
obj-$(CONFIG_DM_FLAKEY)		+= dm-flakey.o
L
Linus Torvalds 已提交
46
obj-$(CONFIG_DM_MULTIPATH)	+= dm-multipath.o dm-round-robin.o
47
obj-$(CONFIG_DM_MULTIPATH_QL)	+= dm-queue-length.o
48
obj-$(CONFIG_DM_MULTIPATH_ST)	+= dm-service-time.o
J
Jim Ramsay 已提交
49
obj-$(CONFIG_DM_SWITCH)		+= dm-switch.o
L
Linus Torvalds 已提交
50
obj-$(CONFIG_DM_SNAPSHOT)	+= dm-snapshot.o
J
Joe Thornber 已提交
51
obj-$(CONFIG_DM_PERSISTENT_DATA)	+= persistent-data/
52
obj-$(CONFIG_DM_MIRROR)		+= dm-mirror.o dm-log.o dm-region-hash.o
J
Jonthan Brassow 已提交
53
obj-$(CONFIG_DM_LOG_USERSPACE)	+= dm-log-userspace.o
L
Linus Torvalds 已提交
54
obj-$(CONFIG_DM_ZERO)		+= dm-zero.o
N
NeilBrown 已提交
55
obj-$(CONFIG_DM_RAID)	+= dm-raid.o
J
Joe Thornber 已提交
56
obj-$(CONFIG_DM_THIN_PROVISIONING)	+= dm-thin-pool.o
M
Mikulas Patocka 已提交
57
obj-$(CONFIG_DM_VERITY)		+= dm-verity.o
J
Joe Thornber 已提交
58
obj-$(CONFIG_DM_CACHE)		+= dm-cache.o
59
obj-$(CONFIG_DM_CACHE_SMQ)	+= dm-cache-smq.o
J
Joe Thornber 已提交
60
obj-$(CONFIG_DM_ERA)		+= dm-era.o
J
Josef Bacik 已提交
61
obj-$(CONFIG_DM_LOG_WRITES)	+= dm-log-writes.o
L
Linus Torvalds 已提交
62

M
Mike Anderson 已提交
63 64 65
ifeq ($(CONFIG_DM_UEVENT),y)
dm-mod-objs			+= dm-uevent.o
endif
66 67 68 69

ifeq ($(CONFIG_DM_VERITY_FEC),y)
dm-verity-objs			+= dm-verity-fec.o
endif