1# 2# (C) Copyright 2000-2007 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8ifneq (,$(findstring y,$(CONFIG_MTD_DEVICE)$(CONFIG_CMD_NAND)$(CONFIG_CMD_ONENAND)$(CONFIG_CMD_SF))) 9obj-y += mtdcore.o mtd_uboot.o 10endif 11obj-$(CONFIG_MTD) += mtd-uclass.o 12obj-$(CONFIG_MTD_PARTITIONS) += mtdpart.o 13obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o 14obj-$(CONFIG_ALTERA_QSPI) += altera_qspi.o 15obj-$(CONFIG_HAS_DATAFLASH) += at45.o 16obj-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o 17obj-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o 18obj-$(CONFIG_HAS_DATAFLASH) += dataflash.o 19obj-$(CONFIG_FTSMC020) += ftsmc020.o 20obj-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o 21obj-$(CONFIG_MW_EEPROM) += mw_eeprom.o 22obj-$(CONFIG_ST_SMI) += st_smi.o 23obj-$(CONFIG_STM32_FLASH) += stm32_flash.o 24