Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # |
Jean-Christophe PLAGNIOL-VILLARD | 82ca974 | 2007-11-24 21:26:56 +0100 | [diff] [blame] | 3 | # (C) Copyright 2000-2007 |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 5 | |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 6 | mtd-$(CONFIG_MTD) += mtdcore.o mtd_uboot.o |
| 7 | mtd-$(CONFIG_DM_MTD) += mtd-uclass.o |
| 8 | mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o |
| 9 | mtd-$(CONFIG_MTD_CONCAT) += mtdconcat.o |
| 10 | mtd-$(CONFIG_ALTERA_QSPI) += altera_qspi.o |
| 11 | mtd-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o |
| 12 | mtd-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o |
| 13 | mtd-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 14 | mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o |
| 15 | mtd-$(CONFIG_RENESAS_RPC_HF) += renesas_rpc_hf.o |
| 16 | mtd-$(CONFIG_HBMC_AM654) += hbmc-am654.o |
| 17 | |
| 18 | # U-Boot build |
| 19 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 20 | |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 21 | ifneq ($(mtd-y),) |
| 22 | obj-y += mtd.o |
| 23 | endif |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 24 | obj-y += nand/ |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 25 | obj-y += onenand/ |
| 26 | obj-y += spi/ |
| 27 | obj-$(CONFIG_MTD_UBI) += ubi/ |
Abdellatif El Khlifi | 857360c | 2023-04-17 10:11:52 +0100 | [diff] [blame] | 28 | obj-$(CONFIG_NVMXIP) += nvmxip/ |
Alexey Romanov | 8e1fd2e | 2024-07-18 08:46:05 +0300 | [diff] [blame^] | 29 | obj-$(CONFIG_MTD_BLOCK) += mtdblock.o |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 30 | |
| 31 | #SPL/TPL build |
| 32 | else |
| 33 | |
| 34 | ifneq ($(mtd-y),) |
Sean Anderson | 34ec166 | 2023-11-04 16:37:47 -0400 | [diff] [blame] | 35 | obj-$(CONFIG_SPL_MTD) += mtd.o |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 36 | endif |
| 37 | obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += nand/ |
| 38 | obj-$(CONFIG_SPL_ONENAND_SUPPORT) += onenand/ |
| 39 | obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += spi/ |
| 40 | obj-$(CONFIG_SPL_UBI) += ubispl/ |
| 41 | |
| 42 | endif |