xref: /linux/drivers/md/Makefile (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for the kernel software RAID and LVM drivers.
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
62a40a8aeSChristoph Hellwigdm-mod-y	+= dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
74cc96131SMike Snitzer		   dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o dm-stats.o \
861cbe788SMing Lei		   dm-rq.o dm-io-rewind.o
92a40a8aeSChristoph Hellwigdm-multipath-y	+= dm-path-selector.o dm-mpath.o
10298fb372SMike Snitzerdm-historical-service-time-y += dm-ps-historical-service-time.o
11298fb372SMike Snitzerdm-io-affinity-y += dm-ps-io-affinity.o
12298fb372SMike Snitzerdm-queue-length-y += dm-ps-queue-length.o
13298fb372SMike Snitzerdm-round-robin-y += dm-ps-round-robin.o
14298fb372SMike Snitzerdm-service-time-y += dm-ps-service-time.o
152a40a8aeSChristoph Hellwigdm-snapshot-y	+= dm-snap.o dm-exception-store.o dm-snap-transient.o \
164db6bfe0SAlasdair G Kergon		    dm-snap-persistent.o
172a40a8aeSChristoph Hellwigdm-mirror-y	+= dm-raid1.o
18298fb372SMike Snitzerdm-log-userspace-y += dm-log-userspace-base.o dm-log-userspace-transfer.o
19742c8fdcSJoe Thornberdm-bio-prison-y += dm-bio-prison-v1.o dm-bio-prison-v2.o
20991d9fa0SJoe Thornberdm-thin-pool-y	+= dm-thin.o dm-thin-metadata.o
21b29d4986SJoe Thornberdm-cache-y	+= dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o \
22b29d4986SJoe Thornber		    dm-cache-background-tracker.o
2366a63635SJoe Thornberdm-cache-smq-y	+= dm-cache-policy-smq.o
24d3c7b35cSHeinz Mauelshagendm-ebs-y	+= dm-ebs-target.o
25eec40579SJoe Thornberdm-era-y	+= dm-era-target.o
267431b783SNikos Tsironisdm-clone-y	+= dm-clone-target.o dm-clone-metadata.o
2703045cbaSSami Tolvanendm-verity-y	+= dm-verity-target.o
28298fb372SMike Snitzerdm-zoned-y	+= dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o
29298fb372SMike Snitzer
30935fe098SMike Snitzermd-mod-y	+= md.o md-bitmap.o
313418d036SArtur Paszkiewiczraid456-y	+= raid5.o raid5-cache.o raid5-ppl.o
321da177e4SLinus Torvalds
331da177e4SLinus Torvalds# Note: link order is important.  All raid personalities
34685784aaSDan Williams# and must come before md.o, as they each initialise
351da177e4SLinus Torvalds# themselves, and md.o may use the personalities when it
361da177e4SLinus Torvalds# auto-initialised.
371da177e4SLinus Torvalds
381da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID0)		+= raid0.o
391da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID1)		+= raid1.o
401da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID10)		+= raid10.o
41685784aaSDan Williamsobj-$(CONFIG_MD_RAID456)	+= raid456.o
428e854e9cSGoldwyn Rodriguesobj-$(CONFIG_MD_CLUSTER)	+= md-cluster.o
43cafe5635SKent Overstreetobj-$(CONFIG_BCACHE)		+= bcache/
4432a7627cSNeilBrownobj-$(CONFIG_BLK_DEV_MD)	+= md-mod.o
454f5b246bSChristoph Hellwigifeq ($(CONFIG_BLK_DEV_MD),y)
464f5b246bSChristoph Hellwigobj-y				+= md-autodetect.o
474f5b246bSChristoph Hellwigendif
481da177e4SLinus Torvaldsobj-$(CONFIG_BLK_DEV_DM)	+= dm-mod.o
492995fa78SMikulas Patockaobj-$(CONFIG_BLK_DEV_DM_BUILTIN) += dm-builtin.o
5018a5bf27SScott Bauerobj-$(CONFIG_DM_UNSTRIPED)	+= dm-unstripe.o
5195d402f0SMikulas Patockaobj-$(CONFIG_DM_BUFIO)		+= dm-bufio.o
524f81a417SMike Snitzerobj-$(CONFIG_DM_BIO_PRISON)	+= dm-bio-prison.o
531da177e4SLinus Torvaldsobj-$(CONFIG_DM_CRYPT)		+= dm-crypt.o
5426b9f228SHeinz Mauelshagenobj-$(CONFIG_DM_DELAY)		+= dm-delay.o
55e4f3fabdSBryan Gurneyobj-$(CONFIG_DM_DUST)		+= dm-dust.o
563407ef52SJosef Bacikobj-$(CONFIG_DM_FLAKEY)		+= dm-flakey.o
571da177e4SLinus Torvaldsobj-$(CONFIG_DM_MULTIPATH)	+= dm-multipath.o dm-round-robin.o
58fd5e0339SKiyoshi Uedaobj-$(CONFIG_DM_MULTIPATH_QL)	+= dm-queue-length.o
59f392ba88SKiyoshi Uedaobj-$(CONFIG_DM_MULTIPATH_ST)	+= dm-service-time.o
602613eab1SKhazhismel Kumykovobj-$(CONFIG_DM_MULTIPATH_HST)	+= dm-historical-service-time.o
61e4d2e82bSMike Christieobj-$(CONFIG_DM_MULTIPATH_IOA)	+= dm-io-affinity.o
629d0eb0abSJim Ramsayobj-$(CONFIG_DM_SWITCH)		+= dm-switch.o
631da177e4SLinus Torvaldsobj-$(CONFIG_DM_SNAPSHOT)	+= dm-snapshot.o
64991d9fa0SJoe Thornberobj-$(CONFIG_DM_PERSISTENT_DATA) += persistent-data/
651f965b19SHeinz Mauelshagenobj-$(CONFIG_DM_MIRROR)		+= dm-mirror.o dm-log.o dm-region-hash.o
66f5db4af4SJonthan Brassowobj-$(CONFIG_DM_LOG_USERSPACE)	+= dm-log-userspace.o
671da177e4SLinus Torvaldsobj-$(CONFIG_DM_ZERO)		+= dm-zero.o
689d09e663SNeilBrownobj-$(CONFIG_DM_RAID)		+= dm-raid.o
69991d9fa0SJoe Thornberobj-$(CONFIG_DM_THIN_PROVISIONING) += dm-thin-pool.o
70a4ffc152SMikulas Patockaobj-$(CONFIG_DM_VERITY)		+= dm-verity.o
71*f36b1d3bSMike Snitzerobj-$(CONFIG_DM_VDO)            += dm-vdo/
72c6b4fcbaSJoe Thornberobj-$(CONFIG_DM_CACHE)		+= dm-cache.o
7366a63635SJoe Thornberobj-$(CONFIG_DM_CACHE_SMQ)	+= dm-cache-smq.o
74d3c7b35cSHeinz Mauelshagenobj-$(CONFIG_DM_EBS)		+= dm-ebs.o
75eec40579SJoe Thornberobj-$(CONFIG_DM_ERA)		+= dm-era.o
767431b783SNikos Tsironisobj-$(CONFIG_DM_CLONE)		+= dm-clone.o
770e9cebe7SJosef Bacikobj-$(CONFIG_DM_LOG_WRITES)	+= dm-log-writes.o
787eada909SMikulas Patockaobj-$(CONFIG_DM_INTEGRITY)	+= dm-integrity.o
793b1a94c8SDamien Le Moalobj-$(CONFIG_DM_ZONED)		+= dm-zoned.o
8048debafeSMikulas Patockaobj-$(CONFIG_DM_WRITECACHE)	+= dm-writecache.o
81231af470SMatthias Kaehlckeobj-$(CONFIG_SECURITY_LOADPIN_VERITY)	+= dm-verity-loadpin.o
821da177e4SLinus Torvalds
836bbc923dSHelen Koikeifeq ($(CONFIG_DM_INIT),y)
846bbc923dSHelen Koikedm-mod-objs			+= dm-init.o
856bbc923dSHelen Koikeendif
866bbc923dSHelen Koike
8751e5b2bdSMike Andersonifeq ($(CONFIG_DM_UEVENT),y)
8851e5b2bdSMike Andersondm-mod-objs			+= dm-uevent.o
8951e5b2bdSMike Andersonendif
90a739ff3fSSami Tolvanen
917fc18728SDamien Le Moalifeq ($(CONFIG_BLK_DEV_ZONED),y)
927fc18728SDamien Le Moaldm-mod-objs			+= dm-zone.o
937fc18728SDamien Le Moalendif
947fc18728SDamien Le Moal
9591ccbbacSTushar Sugandhiifeq ($(CONFIG_IMA),y)
9691ccbbacSTushar Sugandhidm-mod-objs			+= dm-ima.o
9791ccbbacSTushar Sugandhiendif
9891ccbbacSTushar Sugandhi
99a739ff3fSSami Tolvanenifeq ($(CONFIG_DM_VERITY_FEC),y)
100a739ff3fSSami Tolvanendm-verity-objs			+= dm-verity-fec.o
101a739ff3fSSami Tolvanenendif
10288cd3e6cSJaskaran Khurana
10388cd3e6cSJaskaran Khuranaifeq ($(CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG),y)
10488cd3e6cSJaskaran Khuranadm-verity-objs			+= dm-verity-verify-sig.o
10588cd3e6cSJaskaran Khuranaendif
1062cc1ae48SMichael Weiß
1072cc1ae48SMichael Weißifeq ($(CONFIG_DM_AUDIT),y)
1082cc1ae48SMichael Weißdm-mod-objs			+= dm-audit.o
1092cc1ae48SMichael Weißendif
110