Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # |
Jean-Christophe PLAGNIOL-VILLARD | 59829cc | 2007-11-24 21:26:56 +0100 | [diff] [blame] | 3 | # (C) Copyright 2000-2007 |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 5 | |
Miquel Raynal | fb43844 | 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 | fb43844 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 14 | mtd-$(CONFIG_FLASH_PIC32) += pic32_flash.o |
Miquel Raynal | fb43844 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 15 | mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o |
| 16 | mtd-$(CONFIG_RENESAS_RPC_HF) += renesas_rpc_hf.o |
| 17 | mtd-$(CONFIG_HBMC_AM654) += hbmc-am654.o |
Miquel Raynal | a430fa0 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 18 | |
Miquel Raynal | fb43844 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 19 | # U-Boot build |
| 20 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
| 21 | |
| 22 | ifneq ($(mtd-y),) |
| 23 | obj-y += mtd.o |
| 24 | endif |
Miquel Raynal | a430fa0 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 25 | obj-y += nand/ |
Miquel Raynal | fb43844 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 26 | obj-y += onenand/ |
| 27 | obj-y += spi/ |
| 28 | obj-$(CONFIG_MTD_UBI) += ubi/ |
| 29 | |
| 30 | #SPL/TPL build |
| 31 | else |
| 32 | |
| 33 | ifneq ($(mtd-y),) |
| 34 | obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd.o |
| 35 | endif |
| 36 | obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += nand/ |
| 37 | obj-$(CONFIG_SPL_ONENAND_SUPPORT) += onenand/ |
| 38 | obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += spi/ |
| 39 | obj-$(CONFIG_SPL_UBI) += ubispl/ |
| 40 | |
| 41 | endif |