blob: c2fc80b10f09560331ce04347c2d6cd3bf4c088d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenkfa850ba2002-10-29 19:01:12 +00002#
Wolfgang Denk41b4d282007-10-23 16:50:03 +02003# (C) Copyright 2000-2007
wdenkfa850ba2002-10-29 19:01:12 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenkfa850ba2002-10-29 19:01:12 +00005
Miquel Raynalfb438442019-10-25 19:39:31 +02006mtd-$(CONFIG_MTD) += mtdcore.o mtd_uboot.o
7mtd-$(CONFIG_DM_MTD) += mtd-uclass.o
8mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
9mtd-$(CONFIG_MTD_CONCAT) += mtdconcat.o
10mtd-$(CONFIG_ALTERA_QSPI) += altera_qspi.o
11mtd-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
12mtd-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
13mtd-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
Miquel Raynalfb438442019-10-25 19:39:31 +020014mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o
15mtd-$(CONFIG_RENESAS_RPC_HF) += renesas_rpc_hf.o
16mtd-$(CONFIG_HBMC_AM654) += hbmc-am654.o
Miquel Raynala430fa02018-08-16 17:30:07 +020017
Miquel Raynalfb438442019-10-25 19:39:31 +020018# U-Boot build
19ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
20
21ifneq ($(mtd-y),)
22obj-y += mtd.o
23endif
Miquel Raynala430fa02018-08-16 17:30:07 +020024obj-y += nand/
Miquel Raynalfb438442019-10-25 19:39:31 +020025obj-y += onenand/
26obj-y += spi/
27obj-$(CONFIG_MTD_UBI) += ubi/
Abdellatif El Khlifif37af272023-04-17 10:11:52 +010028obj-$(CONFIG_NVMXIP) += nvmxip/
Miquel Raynalfb438442019-10-25 19:39:31 +020029
30#SPL/TPL build
31else
32
33ifneq ($(mtd-y),)
Sean Andersonb35df872023-11-04 16:37:47 -040034obj-$(CONFIG_SPL_MTD) += mtd.o
Miquel Raynalfb438442019-10-25 19:39:31 +020035endif
36obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += nand/
37obj-$(CONFIG_SPL_ONENAND_SUPPORT) += onenand/
38obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += spi/
39obj-$(CONFIG_SPL_UBI) += ubispl/
40
41endif