| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Makefile for the memory technology device drivers. |
| 4 | # |
| 5 | |
| 6 | # Core functionality. |
| 7 | obj-$(CONFIG_MTD) += mtd.o |
| 8 | mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o |
| 9 | |
| 10 | obj-$(CONFIG_MTD_SPLIT) += mtdsplit/ |
| 11 | |
| 12 | obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o |
| 13 | obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o |
| 14 | obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o |
| 15 | obj-$(CONFIG_MTD_AFS_PARTS) += afs.o |
| 16 | obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o |
| 17 | obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o |
| 18 | obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o |
| 19 | obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o |
| 20 | obj-$(CONFIG_MTD_GPT_PARTS) += gptpart.o |
| 21 | obj-$(CONFIG_MTD_PMT_PARTS) += pmtpart.o |
| 22 | obj-y += parsers/ |
| 23 | |
| 24 | # 'Users' - code which presents functionality to userspace. |
| 25 | obj-$(CONFIG_MTD_BLKDEVS) += mtd_blkdevs.o |
| 26 | obj-$(CONFIG_MTD_BLOCK) += mtdblock.o |
| 27 | obj-$(CONFIG_MTD_BLOCK_RO) += mtdblock_ro.o |
| 28 | obj-$(CONFIG_FTL) += ftl.o |
| 29 | obj-$(CONFIG_NFTL) += nftl.o |
| 30 | obj-$(CONFIG_INFTL) += inftl.o |
| 31 | obj-$(CONFIG_RFD_FTL) += rfd_ftl.o |
| 32 | obj-$(CONFIG_SSFDC) += ssfdc.o |
| 33 | obj-$(CONFIG_SM_FTL) += sm_ftl.o |
| 34 | obj-$(CONFIG_MTD_OOPS) += mtdoops.o |
| 35 | obj-$(CONFIG_MTD_SWAP) += mtdswap.o |
| 36 | |
| 37 | nftl-objs := nftlcore.o nftlmount.o |
| 38 | inftl-objs := inftlcore.o inftlmount.o |
| 39 | |
| 40 | obj-y += chips/ lpddr/ maps/ devices/ nand/ tests/ |
| 41 | |
| 42 | obj-$(CONFIG_MTD_SPI_NOR) += spi-nor/ |
| 43 | obj-$(CONFIG_MTD_UBI) += ubi/ |
| 44 | |
| 45 | ifeq ($(CONFIG_MTD_NANDX_V2), y) |
| 46 | include $(srctree)/drivers/mtd/nandx/Nandx.mk |
| 47 | endif |
| 48 | |
| 49 | # Composite drivers must be loaded last |
| 50 | obj-y += composite/ |