1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for the kernel software RAID and LVM drivers.
6 dm-mod-y += dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
7 dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o dm-stats.o \
9 dm-multipath-y += dm-path-selector.o dm-mpath.o
10 dm-snapshot-y += dm-snap.o dm-exception-store.o dm-snap-transient.o \
12 dm-mirror-y += dm-raid1.o
14 += dm-log-userspace-base.o dm-log-userspace-transfer.o
15 dm-bio-prison-y += dm-bio-prison-v1.o dm-bio-prison-v2.o
16 dm-thin-pool-y += dm-thin.o dm-thin-metadata.o
17 dm-cache-y += dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o \
18 dm-cache-background-tracker.o
19 dm-cache-smq-y += dm-cache-policy-smq.o
20 dm-era-y += dm-era-target.o
21 dm-clone-y += dm-clone-target.o dm-clone-metadata.o
22 dm-verity-y += dm-verity-target.o
23 md-mod-y += md.o md-bitmap.o
24 raid456-y += raid5.o raid5-cache.o raid5-ppl.o
25 dm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o
26 linear-y += md-linear.o
27 multipath-y += md-multipath.o
28 faulty-y += md-faulty.o
30 # Note: link order is important. All raid personalities
31 # and must come before md.o, as they each initialise
32 # themselves, and md.o may use the personalities when it
35 obj-$(CONFIG_MD_LINEAR) += linear.o
36 obj-$(CONFIG_MD_RAID0) += raid0.o
37 obj-$(CONFIG_MD_RAID1) += raid1.o
38 obj-$(CONFIG_MD_RAID10) += raid10.o
39 obj-$(CONFIG_MD_RAID456) += raid456.o
40 obj-$(CONFIG_MD_MULTIPATH) += multipath.o
41 obj-$(CONFIG_MD_FAULTY) += faulty.o
42 obj-$(CONFIG_MD_CLUSTER) += md-cluster.o
43 obj-$(CONFIG_BCACHE) += bcache/
44 obj-$(CONFIG_BLK_DEV_MD) += md-mod.o
45 obj-$(CONFIG_BLK_DEV_DM) += dm-mod.o
46 obj-$(CONFIG_BLK_DEV_DM_BUILTIN) += dm-builtin.o
47 obj-$(CONFIG_DM_UNSTRIPED) += dm-unstripe.o
48 obj-$(CONFIG_DM_BUFIO) += dm-bufio.o
49 obj-$(CONFIG_DM_BIO_PRISON) += dm-bio-prison.o
50 obj-$(CONFIG_DM_CRYPT) += dm-crypt.o
51 obj-$(CONFIG_DM_DELAY) += dm-delay.o
52 obj-$(CONFIG_DM_DUST) += dm-dust.o
53 obj-$(CONFIG_DM_FLAKEY) += dm-flakey.o
54 obj-$(CONFIG_DM_MULTIPATH) += dm-multipath.o dm-round-robin.o
55 obj-$(CONFIG_DM_MULTIPATH_QL) += dm-queue-length.o
56 obj-$(CONFIG_DM_MULTIPATH_ST) += dm-service-time.o
57 obj-$(CONFIG_DM_SWITCH) += dm-switch.o
58 obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o
59 obj-$(CONFIG_DM_PERSISTENT_DATA) += persistent-data/
60 obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o
61 obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o
62 obj-$(CONFIG_DM_ZERO) += dm-zero.o
63 obj-$(CONFIG_DM_RAID) += dm-raid.o
64 obj-$(CONFIG_DM_THIN_PROVISIONING) += dm-thin-pool.o
65 obj-$(CONFIG_DM_VERITY) += dm-verity.o
66 obj-$(CONFIG_DM_CACHE) += dm-cache.o
67 obj-$(CONFIG_DM_CACHE_SMQ) += dm-cache-smq.o
68 obj-$(CONFIG_DM_ERA) += dm-era.o
69 obj-$(CONFIG_DM_CLONE) += dm-clone.o
70 obj-$(CONFIG_DM_LOG_WRITES) += dm-log-writes.o
71 obj-$(CONFIG_DM_INTEGRITY) += dm-integrity.o
72 obj-$(CONFIG_DM_ZONED) += dm-zoned.o
73 obj-$(CONFIG_DM_WRITECACHE) += dm-writecache.o
75 ifeq ($(CONFIG_DM_INIT),y)
76 dm-mod-objs += dm-init.o
79 ifeq ($(CONFIG_DM_UEVENT),y)
80 dm-mod-objs += dm-uevent.o
83 ifeq ($(CONFIG_DM_VERITY_FEC),y)
84 dm-verity-objs += dm-verity-fec.o
87 ifeq ($(CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG),y)
88 dm-verity-objs += dm-verity-verify-sig.o