Makefile 1.2 KB

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