xref: /linux/drivers/md/Makefile (revision a1ce39288e6fbefdd8d607021d02384eb4a20b99)
1#
2# Makefile for the kernel software RAID and LVM drivers.
3#
4
5dm-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
7dm-multipath-y	+= dm-path-selector.o dm-mpath.o
8dm-snapshot-y	+= dm-snap.o dm-exception-store.o dm-snap-transient.o \
9		    dm-snap-persistent.o
10dm-mirror-y	+= dm-raid1.o
11dm-log-userspace-y \
12		+= dm-log-userspace-base.o dm-log-userspace-transfer.o
13dm-thin-pool-y	+= dm-thin.o dm-thin-metadata.o
14md-mod-y	+= md.o bitmap.o
15raid456-y	+= raid5.o
16
17# Note: link order is important.  All raid personalities
18# and must come before md.o, as they each initialise
19# themselves, and md.o may use the personalities when it
20# auto-initialised.
21
22obj-$(CONFIG_MD_LINEAR)		+= linear.o
23obj-$(CONFIG_MD_RAID0)		+= raid0.o
24obj-$(CONFIG_MD_RAID1)		+= raid1.o
25obj-$(CONFIG_MD_RAID10)		+= raid10.o
26obj-$(CONFIG_MD_RAID456)	+= raid456.o
27obj-$(CONFIG_MD_MULTIPATH)	+= multipath.o
28obj-$(CONFIG_MD_FAULTY)		+= faulty.o
29obj-$(CONFIG_BLK_DEV_MD)	+= md-mod.o
30obj-$(CONFIG_BLK_DEV_DM)	+= dm-mod.o
31obj-$(CONFIG_DM_BUFIO)		+= dm-bufio.o
32obj-$(CONFIG_DM_CRYPT)		+= dm-crypt.o
33obj-$(CONFIG_DM_DELAY)		+= dm-delay.o
34obj-$(CONFIG_DM_FLAKEY)		+= dm-flakey.o
35obj-$(CONFIG_DM_MULTIPATH)	+= dm-multipath.o dm-round-robin.o
36obj-$(CONFIG_DM_MULTIPATH_QL)	+= dm-queue-length.o
37obj-$(CONFIG_DM_MULTIPATH_ST)	+= dm-service-time.o
38obj-$(CONFIG_DM_SNAPSHOT)	+= dm-snapshot.o
39obj-$(CONFIG_DM_PERSISTENT_DATA)	+= persistent-data/
40obj-$(CONFIG_DM_MIRROR)		+= dm-mirror.o dm-log.o dm-region-hash.o
41obj-$(CONFIG_DM_LOG_USERSPACE)	+= dm-log-userspace.o
42obj-$(CONFIG_DM_ZERO)		+= dm-zero.o
43obj-$(CONFIG_DM_RAID)	+= dm-raid.o
44obj-$(CONFIG_DM_THIN_PROVISIONING)	+= dm-thin-pool.o
45obj-$(CONFIG_DM_VERITY)		+= dm-verity.o
46
47ifeq ($(CONFIG_DM_UEVENT),y)
48dm-mod-objs			+= dm-uevent.o
49endif
50