1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the memory technology device drivers. 4# 5 6# Core functionality. 7obj-$(CONFIG_MTD) += mtd.o 8mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o 9 10obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o 11obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o 12obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o 13obj-$(CONFIG_MTD_AFS_PARTS) += afs.o 14obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o 15obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o 16obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o 17obj-y += parsers/ 18 19# 'Users' - code which presents functionality to userspace. 20obj-$(CONFIG_MTD_BLKDEVS) += mtd_blkdevs.o 21obj-$(CONFIG_MTD_BLOCK) += mtdblock.o 22obj-$(CONFIG_MTD_BLOCK_RO) += mtdblock_ro.o 23obj-$(CONFIG_FTL) += ftl.o 24obj-$(CONFIG_NFTL) += nftl.o 25obj-$(CONFIG_INFTL) += inftl.o 26obj-$(CONFIG_RFD_FTL) += rfd_ftl.o 27obj-$(CONFIG_SSFDC) += ssfdc.o 28obj-$(CONFIG_SM_FTL) += sm_ftl.o 29obj-$(CONFIG_MTD_OOPS) += mtdoops.o 30obj-$(CONFIG_MTD_SWAP) += mtdswap.o 31 32nftl-objs := nftlcore.o nftlmount.o 33inftl-objs := inftlcore.o inftlmount.o 34 35obj-y += chips/ lpddr/ maps/ devices/ nand/ tests/ 36 37obj-$(CONFIG_MTD_SPI_NOR) += spi-nor/ 38obj-$(CONFIG_MTD_UBI) += ubi/ 39