xref: /linux/block/Makefile (revision bb5b94f5bbe75470912b70fb08880fc5273aa62d)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the kernel block layer
4#
5
6obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-sysfs.o \
7			blk-flush.o blk-settings.o blk-ioc.o blk-map.o \
8			blk-exec.o blk-merge.o blk-timeout.o \
9			blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \
10			blk-mq-sysfs.o blk-mq-cpumap.o blk-mq-sched.o ioctl.o \
11			genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \
12			disk-events.o
13
14obj-$(CONFIG_BOUNCE)		+= bounce.o
15obj-$(CONFIG_BLK_SCSI_REQUEST)	+= scsi_ioctl.o
16obj-$(CONFIG_BLK_DEV_BSG)	+= bsg.o
17obj-$(CONFIG_BLK_DEV_BSGLIB)	+= bsg-lib.o
18obj-$(CONFIG_BLK_CGROUP)	+= blk-cgroup.o
19obj-$(CONFIG_BLK_CGROUP_RWSTAT)	+= blk-cgroup-rwstat.o
20obj-$(CONFIG_BLK_DEV_THROTTLING)	+= blk-throttle.o
21obj-$(CONFIG_BLK_CGROUP_IOPRIO)	+= blk-ioprio.o
22obj-$(CONFIG_BLK_CGROUP_IOLATENCY)	+= blk-iolatency.o
23obj-$(CONFIG_BLK_CGROUP_IOCOST)	+= blk-iocost.o
24obj-$(CONFIG_MQ_IOSCHED_DEADLINE)	+= mq-deadline.o
25mq-deadline-y += mq-deadline-main.o
26mq-deadline-$(CONFIG_MQ_IOSCHED_DEADLINE_CGROUP)+= mq-deadline-cgroup.o
27obj-$(CONFIG_MQ_IOSCHED_KYBER)	+= kyber-iosched.o
28bfq-y				:= bfq-iosched.o bfq-wf2q.o bfq-cgroup.o
29obj-$(CONFIG_IOSCHED_BFQ)	+= bfq.o
30
31obj-$(CONFIG_BLK_CMDLINE_PARSER)	+= cmdline-parser.o
32obj-$(CONFIG_BLK_DEV_INTEGRITY) += bio-integrity.o blk-integrity.o
33obj-$(CONFIG_BLK_DEV_INTEGRITY_T10)	+= t10-pi.o
34obj-$(CONFIG_BLK_MQ_PCI)	+= blk-mq-pci.o
35obj-$(CONFIG_BLK_MQ_VIRTIO)	+= blk-mq-virtio.o
36obj-$(CONFIG_BLK_MQ_RDMA)	+= blk-mq-rdma.o
37obj-$(CONFIG_BLK_DEV_ZONED)	+= blk-zoned.o
38obj-$(CONFIG_BLK_WBT)		+= blk-wbt.o
39obj-$(CONFIG_BLK_DEBUG_FS)	+= blk-mq-debugfs.o
40obj-$(CONFIG_BLK_DEBUG_FS_ZONED)+= blk-mq-debugfs-zoned.o
41obj-$(CONFIG_BLK_SED_OPAL)	+= sed-opal.o
42obj-$(CONFIG_BLK_PM)		+= blk-pm.o
43obj-$(CONFIG_BLK_INLINE_ENCRYPTION)	+= keyslot-manager.o blk-crypto.o
44obj-$(CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK)	+= blk-crypto-fallback.o
45