Makefile 3.6 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
L
Linus Torvalds 已提交
2 3 4 5
#
# Makefile for the kernel software RAID and LVM drivers.
#

C
Christoph Hellwig 已提交
6
dm-mod-y	+= dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
7 8
		   dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o dm-stats.o \
		   dm-rq.o
C
Christoph Hellwig 已提交
9
dm-multipath-y	+= dm-path-selector.o dm-mpath.o
10 11 12 13 14
dm-historical-service-time-y += dm-ps-historical-service-time.o
dm-io-affinity-y += dm-ps-io-affinity.o
dm-queue-length-y += dm-ps-queue-length.o
dm-round-robin-y += dm-ps-round-robin.o
dm-service-time-y += dm-ps-service-time.o
C
Christoph Hellwig 已提交
15
dm-snapshot-y	+= dm-snap.o dm-exception-store.o dm-snap-transient.o \
16
		    dm-snap-persistent.o
C
Christoph Hellwig 已提交
17
dm-mirror-y	+= dm-raid1.o
18
dm-log-userspace-y += dm-log-userspace-base.o dm-log-userspace-transfer.o
19
dm-bio-prison-y += dm-bio-prison-v1.o dm-bio-prison-v2.o
J
Joe Thornber 已提交
20
dm-thin-pool-y	+= dm-thin.o dm-thin-metadata.o
21 22
dm-cache-y	+= dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o \
		    dm-cache-background-tracker.o
23
dm-cache-smq-y	+= dm-cache-policy-smq.o
24
dm-ebs-y	+= dm-ebs-target.o
J
Joe Thornber 已提交
25
dm-era-y	+= dm-era-target.o
N
Nikos Tsironis 已提交
26
dm-clone-y	+= dm-clone-target.o dm-clone-metadata.o
27
dm-verity-y	+= dm-verity-target.o
28 29
dm-zoned-y	+= dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o

30
md-mod-y	+= md.o md-bitmap.o
31
raid456-y	+= raid5.o raid5-cache.o raid5-ppl.o
32 33 34
linear-y	+= md-linear.o
multipath-y	+= md-multipath.o
faulty-y	+= md-faulty.o
L
Linus Torvalds 已提交
35 36

# Note: link order is important.  All raid personalities
37
# and must come before md.o, as they each initialise 
L
Linus Torvalds 已提交
38 39 40 41 42 43 44
# themselves, and md.o may use the personalities when it 
# auto-initialised.

obj-$(CONFIG_MD_LINEAR)		+= linear.o
obj-$(CONFIG_MD_RAID0)		+= raid0.o
obj-$(CONFIG_MD_RAID1)		+= raid1.o
obj-$(CONFIG_MD_RAID10)		+= raid10.o
45
obj-$(CONFIG_MD_RAID456)	+= raid456.o
L
Linus Torvalds 已提交
46 47
obj-$(CONFIG_MD_MULTIPATH)	+= multipath.o
obj-$(CONFIG_MD_FAULTY)		+= faulty.o
48
obj-$(CONFIG_MD_CLUSTER)	+= md-cluster.o
K
Kent Overstreet 已提交
49
obj-$(CONFIG_BCACHE)		+= bcache/
50
obj-$(CONFIG_BLK_DEV_MD)	+= md-mod.o
51 52 53
ifeq ($(CONFIG_BLK_DEV_MD),y)
obj-y				+= md-autodetect.o
endif
L
Linus Torvalds 已提交
54
obj-$(CONFIG_BLK_DEV_DM)	+= dm-mod.o
55
obj-$(CONFIG_BLK_DEV_DM_BUILTIN) += dm-builtin.o
S
Scott Bauer 已提交
56
obj-$(CONFIG_DM_UNSTRIPED)	+= dm-unstripe.o
M
Mikulas Patocka 已提交
57
obj-$(CONFIG_DM_BUFIO)		+= dm-bufio.o
58
obj-$(CONFIG_DM_BIO_PRISON)	+= dm-bio-prison.o
L
Linus Torvalds 已提交
59
obj-$(CONFIG_DM_CRYPT)		+= dm-crypt.o
H
Heinz Mauelshagen 已提交
60
obj-$(CONFIG_DM_DELAY)		+= dm-delay.o
B
Bryan Gurney 已提交
61
obj-$(CONFIG_DM_DUST)		+= dm-dust.o
J
Josef Bacik 已提交
62
obj-$(CONFIG_DM_FLAKEY)		+= dm-flakey.o
L
Linus Torvalds 已提交
63
obj-$(CONFIG_DM_MULTIPATH)	+= dm-multipath.o dm-round-robin.o
64
obj-$(CONFIG_DM_MULTIPATH_QL)	+= dm-queue-length.o
65
obj-$(CONFIG_DM_MULTIPATH_ST)	+= dm-service-time.o
66
obj-$(CONFIG_DM_MULTIPATH_HST)	+= dm-historical-service-time.o
67
obj-$(CONFIG_DM_MULTIPATH_IOA)	+= dm-io-affinity.o
J
Jim Ramsay 已提交
68
obj-$(CONFIG_DM_SWITCH)		+= dm-switch.o
L
Linus Torvalds 已提交
69
obj-$(CONFIG_DM_SNAPSHOT)	+= dm-snapshot.o
70
obj-$(CONFIG_DM_PERSISTENT_DATA) += persistent-data/
71
obj-$(CONFIG_DM_MIRROR)		+= dm-mirror.o dm-log.o dm-region-hash.o
J
Jonthan Brassow 已提交
72
obj-$(CONFIG_DM_LOG_USERSPACE)	+= dm-log-userspace.o
L
Linus Torvalds 已提交
73
obj-$(CONFIG_DM_ZERO)		+= dm-zero.o
74 75
obj-$(CONFIG_DM_RAID)		+= dm-raid.o
obj-$(CONFIG_DM_THIN_PROVISIONING) += dm-thin-pool.o
M
Mikulas Patocka 已提交
76
obj-$(CONFIG_DM_VERITY)		+= dm-verity.o
J
Joe Thornber 已提交
77
obj-$(CONFIG_DM_CACHE)		+= dm-cache.o
78
obj-$(CONFIG_DM_CACHE_SMQ)	+= dm-cache-smq.o
79
obj-$(CONFIG_DM_EBS)		+= dm-ebs.o
J
Joe Thornber 已提交
80
obj-$(CONFIG_DM_ERA)		+= dm-era.o
N
Nikos Tsironis 已提交
81
obj-$(CONFIG_DM_CLONE)		+= dm-clone.o
J
Josef Bacik 已提交
82
obj-$(CONFIG_DM_LOG_WRITES)	+= dm-log-writes.o
M
Mikulas Patocka 已提交
83
obj-$(CONFIG_DM_INTEGRITY)	+= dm-integrity.o
84
obj-$(CONFIG_DM_ZONED)		+= dm-zoned.o
M
Mikulas Patocka 已提交
85
obj-$(CONFIG_DM_WRITECACHE)	+= dm-writecache.o
L
Linus Torvalds 已提交
86

87 88 89 90
ifeq ($(CONFIG_DM_INIT),y)
dm-mod-objs			+= dm-init.o
endif

M
Mike Anderson 已提交
91 92 93
ifeq ($(CONFIG_DM_UEVENT),y)
dm-mod-objs			+= dm-uevent.o
endif
94 95 96 97

ifeq ($(CONFIG_DM_VERITY_FEC),y)
dm-verity-objs			+= dm-verity-fec.o
endif
98 99 100 101

ifeq ($(CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG),y)
dm-verity-objs			+= dm-verity-verify-sig.o
endif