xref: /linux/drivers/block/Makefile (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the kernel block device drivers.
4#
5# 12 June 2000, Christoph Hellwig <hch@infradead.org>
6# Rewritten to use lists instead of if-statements.
7#
8
9# needed for trace events
10ccflags-y				+= -I$(src)
11
12obj-$(CONFIG_BLK_DEV_RUST_NULL) += rnull_mod.o
13rnull_mod-y := rnull.o
14
15obj-$(CONFIG_MAC_FLOPPY)	+= swim3.o
16obj-$(CONFIG_BLK_DEV_SWIM)	+= swim_mod.o
17obj-$(CONFIG_BLK_DEV_FD)	+= floppy.o
18obj-$(CONFIG_AMIGA_FLOPPY)	+= amiflop.o
19obj-$(CONFIG_PS3_DISK)		+= ps3disk.o
20obj-$(CONFIG_PS3_VRAM)		+= ps3vram.o
21obj-$(CONFIG_ATARI_FLOPPY)	+= ataflop.o
22obj-$(CONFIG_AMIGA_Z2RAM)	+= z2ram.o
23obj-$(CONFIG_N64CART)		+= n64cart.o
24obj-$(CONFIG_BLK_DEV_RAM)	+= brd.o
25obj-$(CONFIG_BLK_DEV_LOOP)	+= loop.o
26obj-$(CONFIG_CDROM_PKTCDVD)	+= pktcdvd.o
27obj-$(CONFIG_SUNVDC)		+= sunvdc.o
28
29obj-$(CONFIG_BLK_DEV_NBD)	+= nbd.o
30obj-$(CONFIG_VIRTIO_BLK)	+= virtio_blk.o
31
32obj-$(CONFIG_XEN_BLKDEV_FRONTEND)	+= xen-blkfront.o
33obj-$(CONFIG_XEN_BLKDEV_BACKEND)	+= xen-blkback/
34obj-$(CONFIG_BLK_DEV_DRBD)     += drbd/
35obj-$(CONFIG_BLK_DEV_RBD)     += rbd.o
36obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX)	+= mtip32xx/
37
38obj-$(CONFIG_ZRAM) += zram/
39obj-$(CONFIG_BLK_DEV_RNBD)	+= rnbd/
40
41obj-$(CONFIG_BLK_DEV_NULL_BLK)	+= null_blk/
42
43obj-$(CONFIG_BLK_DEV_UBLK)			+= ublk_drv.o
44
45swim_mod-y	:= swim.o swim_asm.o
46