blob: 0454b0885b013055d15e6c0133e85ac10b6fd314 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Makefile for the kernel software RAID and LVM drivers.
4#
5
Christoph Hellwig2a40a8a2009-03-31 14:27:02 +11006dm-mod-y += dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
Mike Snitzer4cc96132016-05-12 16:28:10 -04007 dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o dm-stats.o \
8 dm-rq.o
Christoph Hellwig2a40a8a2009-03-31 14:27:02 +11009dm-multipath-y += dm-path-selector.o dm-mpath.o
Mike Snitzer298fb372020-11-10 13:41:53 -050010dm-historical-service-time-y += dm-ps-historical-service-time.o
11dm-io-affinity-y += dm-ps-io-affinity.o
12dm-queue-length-y += dm-ps-queue-length.o
13dm-round-robin-y += dm-ps-round-robin.o
14dm-service-time-y += dm-ps-service-time.o
Christoph Hellwig2a40a8a2009-03-31 14:27:02 +110015dm-snapshot-y += dm-snap.o dm-exception-store.o dm-snap-transient.o \
Alasdair G Kergon4db6bfe2009-01-06 03:05:17 +000016 dm-snap-persistent.o
Christoph Hellwig2a40a8a2009-03-31 14:27:02 +110017dm-mirror-y += dm-raid1.o
Mike Snitzer298fb372020-11-10 13:41:53 -050018dm-log-userspace-y += dm-log-userspace-base.o dm-log-userspace-transfer.o
Joe Thornber742c8fd2016-10-21 10:06:40 -040019dm-bio-prison-y += dm-bio-prison-v1.o dm-bio-prison-v2.o
Joe Thornber991d9fa2011-10-31 20:21:18 +000020dm-thin-pool-y += dm-thin.o dm-thin-metadata.o
Joe Thornberb29d4982016-12-15 04:57:31 -050021dm-cache-y += dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o \
22 dm-cache-background-tracker.o
Mike Snitzer298fb372020-11-10 13:41:53 -050023dm-cache-smq-y += dm-cache-policy-smq.o
Heinz Mauelshagend3c7b352020-03-09 23:26:38 +010024dm-ebs-y += dm-ebs-target.o
Joe Thornbereec40572014-03-03 10:23:15 -050025dm-era-y += dm-era-target.o
Nikos Tsironis7431b782019-09-11 17:36:40 +030026dm-clone-y += dm-clone-target.o dm-clone-metadata.o
Sami Tolvanen03045cb2015-12-03 15:36:00 -050027dm-verity-y += dm-verity-target.o
Mike Snitzer298fb372020-11-10 13:41:53 -050028dm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o
29
Mike Snitzer935fe092017-10-10 17:02:41 -040030md-mod-y += md.o md-bitmap.o
Artur Paszkiewicz3418d032017-03-09 09:59:59 +010031raid456-y += raid5.o raid5-cache.o raid5-ppl.o
Mike Snitzer935fe092017-10-10 17:02:41 -040032linear-y += md-linear.o
33multipath-y += md-multipath.o
34faulty-y += md-faulty.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
36# Note: link order is important. All raid personalities
Dan Williams685784a2007-07-09 11:56:42 -070037# and must come before md.o, as they each initialise
Linus Torvalds1da177e2005-04-16 15:20:36 -070038# themselves, and md.o may use the personalities when it
39# auto-initialised.
40
41obj-$(CONFIG_MD_LINEAR) += linear.o
42obj-$(CONFIG_MD_RAID0) += raid0.o
43obj-$(CONFIG_MD_RAID1) += raid1.o
44obj-$(CONFIG_MD_RAID10) += raid10.o
Dan Williams685784a2007-07-09 11:56:42 -070045obj-$(CONFIG_MD_RAID456) += raid456.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070046obj-$(CONFIG_MD_MULTIPATH) += multipath.o
47obj-$(CONFIG_MD_FAULTY) += faulty.o
Goldwyn Rodrigues8e854e92014-03-07 11:21:15 -060048obj-$(CONFIG_MD_CLUSTER) += md-cluster.o
Kent Overstreetcafe5632013-03-23 16:11:31 -070049obj-$(CONFIG_BCACHE) += bcache/
NeilBrown32a76272005-06-21 17:17:14 -070050obj-$(CONFIG_BLK_DEV_MD) += md-mod.o
Christoph Hellwig4f5b2462020-06-07 16:18:59 +020051ifeq ($(CONFIG_BLK_DEV_MD),y)
52obj-y += md-autodetect.o
53endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070054obj-$(CONFIG_BLK_DEV_DM) += dm-mod.o
Mikulas Patocka2995fa72014-01-13 19:37:54 -050055obj-$(CONFIG_BLK_DEV_DM_BUILTIN) += dm-builtin.o
Scott Bauer18a5bf22017-12-18 10:28:08 -070056obj-$(CONFIG_DM_UNSTRIPED) += dm-unstripe.o
Mikulas Patocka95d402f2011-10-31 20:19:09 +000057obj-$(CONFIG_DM_BUFIO) += dm-bufio.o
Mike Snitzer4f81a412012-10-12 21:02:13 +010058obj-$(CONFIG_DM_BIO_PRISON) += dm-bio-prison.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070059obj-$(CONFIG_DM_CRYPT) += dm-crypt.o
Heinz Mauelshagen26b9f222007-05-09 02:33:06 -070060obj-$(CONFIG_DM_DELAY) += dm-delay.o
Bryan Gurneye4f3fab2019-03-07 15:42:39 -050061obj-$(CONFIG_DM_DUST) += dm-dust.o
Josef Bacik3407ef52011-03-24 13:54:24 +000062obj-$(CONFIG_DM_FLAKEY) += dm-flakey.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070063obj-$(CONFIG_DM_MULTIPATH) += dm-multipath.o dm-round-robin.o
Kiyoshi Uedafd5e0332009-06-22 10:12:27 +010064obj-$(CONFIG_DM_MULTIPATH_QL) += dm-queue-length.o
Kiyoshi Uedaf392ba82009-06-22 10:12:28 +010065obj-$(CONFIG_DM_MULTIPATH_ST) += dm-service-time.o
Khazhismel Kumykov2613eab2020-04-30 16:48:30 -040066obj-$(CONFIG_DM_MULTIPATH_HST) += dm-historical-service-time.o
Mike Christiee4d2e822020-10-22 19:27:50 -050067obj-$(CONFIG_DM_MULTIPATH_IOA) += dm-io-affinity.o
Jim Ramsay9d0eb0a2013-07-10 23:41:19 +010068obj-$(CONFIG_DM_SWITCH) += dm-switch.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070069obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o
Mike Snitzer298fb372020-11-10 13:41:53 -050070obj-$(CONFIG_DM_PERSISTENT_DATA) += persistent-data/
Heinz Mauelshagen1f965b12008-10-21 17:45:06 +010071obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o
Jonthan Brassowf5db4af2009-06-22 10:12:35 +010072obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070073obj-$(CONFIG_DM_ZERO) += dm-zero.o
Mike Snitzer298fb372020-11-10 13:41:53 -050074obj-$(CONFIG_DM_RAID) += dm-raid.o
75obj-$(CONFIG_DM_THIN_PROVISIONING) += dm-thin-pool.o
Mikulas Patockaa4ffc152012-03-28 18:43:38 +010076obj-$(CONFIG_DM_VERITY) += dm-verity.o
Joe Thornberc6b4fcb2013-03-01 22:45:51 +000077obj-$(CONFIG_DM_CACHE) += dm-cache.o
Joe Thornber66a63632015-05-15 15:33:34 +010078obj-$(CONFIG_DM_CACHE_SMQ) += dm-cache-smq.o
Heinz Mauelshagend3c7b352020-03-09 23:26:38 +010079obj-$(CONFIG_DM_EBS) += dm-ebs.o
Joe Thornbereec40572014-03-03 10:23:15 -050080obj-$(CONFIG_DM_ERA) += dm-era.o
Nikos Tsironis7431b782019-09-11 17:36:40 +030081obj-$(CONFIG_DM_CLONE) += dm-clone.o
Josef Bacik0e9cebe2015-03-20 10:50:37 -040082obj-$(CONFIG_DM_LOG_WRITES) += dm-log-writes.o
Mikulas Patocka7eada902017-01-04 20:23:53 +010083obj-$(CONFIG_DM_INTEGRITY) += dm-integrity.o
Damien Le Moal3b1a94c2017-06-07 15:55:39 +090084obj-$(CONFIG_DM_ZONED) += dm-zoned.o
Mikulas Patocka48debaf2018-03-08 08:25:24 -050085obj-$(CONFIG_DM_WRITECACHE) += dm-writecache.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070086
Helen Koike6bbc9232019-02-21 17:33:34 -030087ifeq ($(CONFIG_DM_INIT),y)
88dm-mod-objs += dm-init.o
89endif
90
Mike Anderson51e5b2b2007-10-19 22:48:00 +010091ifeq ($(CONFIG_DM_UEVENT),y)
92dm-mod-objs += dm-uevent.o
93endif
Sami Tolvanena739ff32015-12-03 14:26:30 +000094
Damien Le Moal7fc18722021-05-26 06:24:56 +090095ifeq ($(CONFIG_BLK_DEV_ZONED),y)
96dm-mod-objs += dm-zone.o
97endif
98
Tushar Sugandhi91ccbba2021-07-12 17:48:58 -070099ifeq ($(CONFIG_IMA),y)
100dm-mod-objs += dm-ima.o
101endif
102
Sami Tolvanena739ff32015-12-03 14:26:30 +0000103ifeq ($(CONFIG_DM_VERITY_FEC),y)
104dm-verity-objs += dm-verity-fec.o
105endif
Jaskaran Khurana88cd3e62019-07-17 17:46:15 -0700106
107ifeq ($(CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG),y)
108dm-verity-objs += dm-verity-verify-sig.o
109endif
Michael Weiß2cc1ae42021-09-04 11:59:28 +0200110
111ifeq ($(CONFIG_DM_AUDIT),y)
112dm-mod-objs += dm-audit.o
113endif