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 \ 84cc96131SMike Snitzer dm-rq.o 92a40a8aeSChristoph Hellwigdm-multipath-y += dm-path-selector.o dm-mpath.o 102a40a8aeSChristoph Hellwigdm-snapshot-y += dm-snap.o dm-exception-store.o dm-snap-transient.o \ 114db6bfe0SAlasdair G Kergon dm-snap-persistent.o 122a40a8aeSChristoph Hellwigdm-mirror-y += dm-raid1.o 13f5db4af4SJonthan Brassowdm-log-userspace-y \ 14f5db4af4SJonthan Brassow += dm-log-userspace-base.o dm-log-userspace-transfer.o 15742c8fdcSJoe Thornberdm-bio-prison-y += dm-bio-prison-v1.o dm-bio-prison-v2.o 16991d9fa0SJoe Thornberdm-thin-pool-y += dm-thin.o dm-thin-metadata.o 17b29d4986SJoe Thornberdm-cache-y += dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o \ 18b29d4986SJoe Thornber dm-cache-background-tracker.o 1966a63635SJoe Thornberdm-cache-smq-y += dm-cache-policy-smq.o 20d3c7b35cSHeinz Mauelshagendm-ebs-y += dm-ebs-target.o 21eec40579SJoe Thornberdm-era-y += dm-era-target.o 227431b783SNikos Tsironisdm-clone-y += dm-clone-target.o dm-clone-metadata.o 2303045cbaSSami Tolvanendm-verity-y += dm-verity-target.o 24935fe098SMike Snitzermd-mod-y += md.o md-bitmap.o 253418d036SArtur Paszkiewiczraid456-y += raid5.o raid5-cache.o raid5-ppl.o 263b1a94c8SDamien Le Moaldm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o 27935fe098SMike Snitzerlinear-y += md-linear.o 28935fe098SMike Snitzermultipath-y += md-multipath.o 29935fe098SMike Snitzerfaulty-y += md-faulty.o 301da177e4SLinus Torvalds 311da177e4SLinus Torvalds# Note: link order is important. All raid personalities 32685784aaSDan Williams# and must come before md.o, as they each initialise 331da177e4SLinus Torvalds# themselves, and md.o may use the personalities when it 341da177e4SLinus Torvalds# auto-initialised. 351da177e4SLinus Torvalds 361da177e4SLinus Torvaldsobj-$(CONFIG_MD_LINEAR) += linear.o 371da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID0) += raid0.o 381da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID1) += raid1.o 391da177e4SLinus Torvaldsobj-$(CONFIG_MD_RAID10) += raid10.o 40685784aaSDan Williamsobj-$(CONFIG_MD_RAID456) += raid456.o 411da177e4SLinus Torvaldsobj-$(CONFIG_MD_MULTIPATH) += multipath.o 421da177e4SLinus Torvaldsobj-$(CONFIG_MD_FAULTY) += faulty.o 438e854e9cSGoldwyn Rodriguesobj-$(CONFIG_MD_CLUSTER) += md-cluster.o 44cafe5635SKent Overstreetobj-$(CONFIG_BCACHE) += bcache/ 4532a7627cSNeilBrownobj-$(CONFIG_BLK_DEV_MD) += md-mod.o 461da177e4SLinus Torvaldsobj-$(CONFIG_BLK_DEV_DM) += dm-mod.o 472995fa78SMikulas Patockaobj-$(CONFIG_BLK_DEV_DM_BUILTIN) += dm-builtin.o 4818a5bf27SScott Bauerobj-$(CONFIG_DM_UNSTRIPED) += dm-unstripe.o 4995d402f0SMikulas Patockaobj-$(CONFIG_DM_BUFIO) += dm-bufio.o 504f81a417SMike Snitzerobj-$(CONFIG_DM_BIO_PRISON) += dm-bio-prison.o 511da177e4SLinus Torvaldsobj-$(CONFIG_DM_CRYPT) += dm-crypt.o 5226b9f228SHeinz Mauelshagenobj-$(CONFIG_DM_DELAY) += dm-delay.o 53e4f3fabdSBryan Gurneyobj-$(CONFIG_DM_DUST) += dm-dust.o 543407ef52SJosef Bacikobj-$(CONFIG_DM_FLAKEY) += dm-flakey.o 551da177e4SLinus Torvaldsobj-$(CONFIG_DM_MULTIPATH) += dm-multipath.o dm-round-robin.o 56fd5e0339SKiyoshi Uedaobj-$(CONFIG_DM_MULTIPATH_QL) += dm-queue-length.o 57f392ba88SKiyoshi Uedaobj-$(CONFIG_DM_MULTIPATH_ST) += dm-service-time.o 58*2613eab1SKhazhismel Kumykovobj-$(CONFIG_DM_MULTIPATH_HST) += dm-historical-service-time.o 599d0eb0abSJim Ramsayobj-$(CONFIG_DM_SWITCH) += dm-switch.o 601da177e4SLinus Torvaldsobj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o 61991d9fa0SJoe Thornberobj-$(CONFIG_DM_PERSISTENT_DATA) += persistent-data/ 621f965b19SHeinz Mauelshagenobj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o 63f5db4af4SJonthan Brassowobj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o 641da177e4SLinus Torvaldsobj-$(CONFIG_DM_ZERO) += dm-zero.o 659d09e663SNeilBrownobj-$(CONFIG_DM_RAID) += dm-raid.o 66991d9fa0SJoe Thornberobj-$(CONFIG_DM_THIN_PROVISIONING) += dm-thin-pool.o 67a4ffc152SMikulas Patockaobj-$(CONFIG_DM_VERITY) += dm-verity.o 68c6b4fcbaSJoe Thornberobj-$(CONFIG_DM_CACHE) += dm-cache.o 6966a63635SJoe Thornberobj-$(CONFIG_DM_CACHE_SMQ) += dm-cache-smq.o 70d3c7b35cSHeinz Mauelshagenobj-$(CONFIG_DM_EBS) += dm-ebs.o 71eec40579SJoe Thornberobj-$(CONFIG_DM_ERA) += dm-era.o 727431b783SNikos Tsironisobj-$(CONFIG_DM_CLONE) += dm-clone.o 730e9cebe7SJosef Bacikobj-$(CONFIG_DM_LOG_WRITES) += dm-log-writes.o 747eada909SMikulas Patockaobj-$(CONFIG_DM_INTEGRITY) += dm-integrity.o 753b1a94c8SDamien Le Moalobj-$(CONFIG_DM_ZONED) += dm-zoned.o 7648debafeSMikulas Patockaobj-$(CONFIG_DM_WRITECACHE) += dm-writecache.o 771da177e4SLinus Torvalds 786bbc923dSHelen Koikeifeq ($(CONFIG_DM_INIT),y) 796bbc923dSHelen Koikedm-mod-objs += dm-init.o 806bbc923dSHelen Koikeendif 816bbc923dSHelen Koike 8251e5b2bdSMike Andersonifeq ($(CONFIG_DM_UEVENT),y) 8351e5b2bdSMike Andersondm-mod-objs += dm-uevent.o 8451e5b2bdSMike Andersonendif 85a739ff3fSSami Tolvanen 86a739ff3fSSami Tolvanenifeq ($(CONFIG_DM_VERITY_FEC),y) 87a739ff3fSSami Tolvanendm-verity-objs += dm-verity-fec.o 88a739ff3fSSami Tolvanenendif 8988cd3e6cSJaskaran Khurana 9088cd3e6cSJaskaran Khuranaifeq ($(CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG),y) 9188cd3e6cSJaskaran Khuranadm-verity-objs += dm-verity-verify-sig.o 9288cd3e6cSJaskaran Khuranaendif 93