2 # (C) Copyright 2000-2007
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
12 ifneq (,$(findstring y,$(CONFIG_MTD_DEVICE)$(CONFIG_CMD_NAND)$(CONFIG_CMD_ONENAND)))
15 COBJS-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
16 COBJS-$(CONFIG_MTD_CONCAT) += mtdconcat.o
17 COBJS-$(CONFIG_HAS_DATAFLASH) += at45.o
18 COBJS-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
19 COBJS-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
20 COBJS-$(CONFIG_HAS_DATAFLASH) += dataflash.o
21 COBJS-$(CONFIG_FTSMC020) += ftsmc020.o
22 COBJS-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
23 COBJS-$(CONFIG_MW_EEPROM) += mw_eeprom.o
24 COBJS-$(CONFIG_ST_SMI) += st_smi.o
27 SRCS := $(COBJS:.o=.c)
28 OBJS := $(addprefix $(obj),$(COBJS))
32 $(LIB): $(obj).depend $(OBJS)
33 $(call cmd_link_o_target, $(OBJS))
35 #########################################################################
37 # defines $(obj).depend target
38 include $(SRCTREE)/rules.mk
40 sinclude $(obj).depend
42 #########################################################################