2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2006-09-01 17:49:50 +00:00
|
|
|
#
|
2007-11-24 20:26:56 +00:00
|
|
|
# (C) Copyright 2000-2007
|
2006-09-01 17:49:50 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2019-10-25 17:39:31 +00:00
|
|
|
mtd-$(CONFIG_MTD) += mtdcore.o mtd_uboot.o
|
|
|
|
mtd-$(CONFIG_DM_MTD) += mtd-uclass.o
|
|
|
|
mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
|
|
|
|
mtd-$(CONFIG_MTD_CONCAT) += mtdconcat.o
|
|
|
|
mtd-$(CONFIG_ALTERA_QSPI) += altera_qspi.o
|
|
|
|
mtd-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
|
|
|
|
mtd-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
|
|
|
|
mtd-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
|
|
|
|
mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o
|
|
|
|
mtd-$(CONFIG_RENESAS_RPC_HF) += renesas_rpc_hf.o
|
|
|
|
mtd-$(CONFIG_HBMC_AM654) += hbmc-am654.o
|
|
|
|
|
|
|
|
# U-Boot build
|
|
|
|
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
2018-08-16 15:30:07 +00:00
|
|
|
|
2019-10-25 17:39:31 +00:00
|
|
|
ifneq ($(mtd-y),)
|
|
|
|
obj-y += mtd.o
|
|
|
|
endif
|
2018-08-16 15:30:07 +00:00
|
|
|
obj-y += nand/
|
2019-10-25 17:39:31 +00:00
|
|
|
obj-y += onenand/
|
|
|
|
obj-y += spi/
|
|
|
|
obj-$(CONFIG_MTD_UBI) += ubi/
|
|
|
|
|
|
|
|
#SPL/TPL build
|
|
|
|
else
|
|
|
|
|
|
|
|
ifneq ($(mtd-y),)
|
|
|
|
obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd.o
|
|
|
|
endif
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += nand/
|
|
|
|
obj-$(CONFIG_SPL_ONENAND_SUPPORT) += onenand/
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += spi/
|
|
|
|
obj-$(CONFIG_SPL_UBI) += ubispl/
|
|
|
|
|
|
|
|
endif
|