xref: /linux/drivers/md/Makefile (revision 3418d036c81dcb604b7c7c71b209d5890a8418aa)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the kernel software RAID and LVM drivers.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
52a40a8aeSChristoph Hellwigdm-mod-y	+= dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
64cc96131SMike Snitzer		   dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o dm-stats.o \
74cc96131SMike Snitzer		   dm-rq.o
82a40a8aeSChristoph Hellwigdm-multipath-y	+= dm-path-selector.o dm-mpath.o
92a40a8aeSChristoph Hellwigdm-snapshot-y	+= dm-snap.o dm-exception-store.o dm-snap-transient.o \
104db6bfe0SAlasdair G Kergon		    dm-snap-persistent.o
112a40a8aeSChristoph Hellwigdm-mirror-y	+= dm-raid1.o
12f5db4af4SJonthan Brassowdm-log-userspace-y \
13f5db4af4SJonthan Brassow		+= dm-log-userspace-base.o dm-log-userspace-transfer.o
14991d9fa0SJoe Thornberdm-thin-pool-y	+= dm-thin.o dm-thin-metadata.o
15c6b4fcbaSJoe Thornberdm-cache-y	+= dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o
1666a63635SJoe Thornberdm-cache-smq-y   += dm-cache-policy-smq.o
178735a813SHeinz Mauelshagendm-cache-cleaner-y += dm-cache-policy-cleaner.o
18eec40579SJoe Thornberdm-era-y	+= dm-era-target.o
1903045cbaSSami Tolvanendm-verity-y	+= dm-verity-target.o
202a40a8aeSChristoph Hellwigmd-mod-y	+= md.o bitmap.o
21*3418d036SArtur Paszkiewiczraid456-y	+= raid5.o raid5-cache.o raid5-ppl.o
221da177e4SLinus Torvalds
231da177e4SLinus Torvalds# Note: link order is important.  All raid personalities
24685784aaSDan Williams# and must come before md.o, as they each initialise
251da177e4SLinus Torvalds# themselves, and md.o may use the personalities when it
261da177e4SLinus Torvalds# auto-initialised.
271da177e4SLinus Torvalds
281da177e4SLinus Torvaldsobj-$(CONFIG_MD_LINEAR)		+= linear.o
291da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID0)		+= raid0.o
301da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID1)		+= raid1.o
311da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID10)		+= raid10.o
32685784aaSDan Williamsobj-$(CONFIG_MD_RAID456)	+= raid456.o
331da177e4SLinus Torvaldsobj-$(CONFIG_MD_MULTIPATH)	+= multipath.o
341da177e4SLinus Torvaldsobj-$(CONFIG_MD_FAULTY)		+= faulty.o
358e854e9cSGoldwyn Rodriguesobj-$(CONFIG_MD_CLUSTER)	+= md-cluster.o
36cafe5635SKent Overstreetobj-$(CONFIG_BCACHE)		+= bcache/
3732a7627cSNeilBrownobj-$(CONFIG_BLK_DEV_MD)	+= md-mod.o
381da177e4SLinus Torvaldsobj-$(CONFIG_BLK_DEV_DM)	+= dm-mod.o
392995fa78SMikulas Patockaobj-$(CONFIG_BLK_DEV_DM_BUILTIN) += dm-builtin.o
4095d402f0SMikulas Patockaobj-$(CONFIG_DM_BUFIO)		+= dm-bufio.o
414f81a417SMike Snitzerobj-$(CONFIG_DM_BIO_PRISON)	+= dm-bio-prison.o
421da177e4SLinus Torvaldsobj-$(CONFIG_DM_CRYPT)		+= dm-crypt.o
4326b9f228SHeinz Mauelshagenobj-$(CONFIG_DM_DELAY)		+= dm-delay.o
443407ef52SJosef Bacikobj-$(CONFIG_DM_FLAKEY)		+= dm-flakey.o
451da177e4SLinus Torvaldsobj-$(CONFIG_DM_MULTIPATH)	+= dm-multipath.o dm-round-robin.o
46fd5e0339SKiyoshi Uedaobj-$(CONFIG_DM_MULTIPATH_QL)	+= dm-queue-length.o
47f392ba88SKiyoshi Uedaobj-$(CONFIG_DM_MULTIPATH_ST)	+= dm-service-time.o
489d0eb0abSJim Ramsayobj-$(CONFIG_DM_SWITCH)		+= dm-switch.o
491da177e4SLinus Torvaldsobj-$(CONFIG_DM_SNAPSHOT)	+= dm-snapshot.o
50991d9fa0SJoe Thornberobj-$(CONFIG_DM_PERSISTENT_DATA)	+= persistent-data/
511f965b19SHeinz Mauelshagenobj-$(CONFIG_DM_MIRROR)		+= dm-mirror.o dm-log.o dm-region-hash.o
52f5db4af4SJonthan Brassowobj-$(CONFIG_DM_LOG_USERSPACE)	+= dm-log-userspace.o
531da177e4SLinus Torvaldsobj-$(CONFIG_DM_ZERO)		+= dm-zero.o
549d09e663SNeilBrownobj-$(CONFIG_DM_RAID)	+= dm-raid.o
55991d9fa0SJoe Thornberobj-$(CONFIG_DM_THIN_PROVISIONING)	+= dm-thin-pool.o
56a4ffc152SMikulas Patockaobj-$(CONFIG_DM_VERITY)		+= dm-verity.o
57c6b4fcbaSJoe Thornberobj-$(CONFIG_DM_CACHE)		+= dm-cache.o
5866a63635SJoe Thornberobj-$(CONFIG_DM_CACHE_SMQ)	+= dm-cache-smq.o
598735a813SHeinz Mauelshagenobj-$(CONFIG_DM_CACHE_CLEANER)	+= dm-cache-cleaner.o
60eec40579SJoe Thornberobj-$(CONFIG_DM_ERA)		+= dm-era.o
610e9cebe7SJosef Bacikobj-$(CONFIG_DM_LOG_WRITES)	+= dm-log-writes.o
621da177e4SLinus Torvalds
6351e5b2bdSMike Andersonifeq ($(CONFIG_DM_UEVENT),y)
6451e5b2bdSMike Andersondm-mod-objs			+= dm-uevent.o
6551e5b2bdSMike Andersonendif
66a739ff3fSSami Tolvanen
67a739ff3fSSami Tolvanenifeq ($(CONFIG_DM_VERITY_FEC),y)
68a739ff3fSSami Tolvanendm-verity-objs			+= dm-verity-fec.o
69a739ff3fSSami Tolvanenendif
70