1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for the memory technology device drivers.
7 obj-
$(CONFIG_MTD
) += mtd.o
8 mtd-y
:= mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
12 # 'Users' - code which presents functionality to userspace.
13 obj-
$(CONFIG_MTD_BLKDEVS
) += mtd_blkdevs.o
14 obj-
$(CONFIG_MTD_BLOCK
) += mtdblock.o
15 obj-
$(CONFIG_MTD_BLOCK_RO
) += mtdblock_ro.o
16 obj-
$(CONFIG_FTL
) += ftl.o
17 obj-
$(CONFIG_NFTL
) += nftl.o
18 obj-
$(CONFIG_INFTL
) += inftl.o
19 obj-
$(CONFIG_RFD_FTL
) += rfd_ftl.o
20 obj-
$(CONFIG_SSFDC
) += ssfdc.o
21 obj-
$(CONFIG_SM_FTL
) += sm_ftl.o
22 obj-
$(CONFIG_MTD_OOPS
) += mtdoops.o
23 obj-
$(CONFIG_MTD_SWAP
) += mtdswap.o
25 nftl-objs
:= nftlcore.o nftlmount.o
26 inftl-objs
:= inftlcore.o inftlmount.o
28 obj-y
+= chips
/ lpddr
/ maps
/ devices
/ nand
/ tests
/
30 obj-
$(CONFIG_MTD_SPI_NOR
) += spi-nor
/
31 obj-
$(CONFIG_MTD_UBI
) += ubi
/
32 obj-
$(CONFIG_MTD_HYPERBUS
) += hyperbus
/