]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | # SPDX-License-Identifier: GPL-2.0+ |
f9328639 | 2 | # |
59829cc1 | 3 | # (C) Copyright 2000-2007 |
f9328639 | 4 | # Wolfgang Denk, DENX Software Engineering, [email protected]. |
f9328639 | 5 | |
fb438449 MR |
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 | |
14 | mtd-$(CONFIG_MW_EEPROM) += mw_eeprom.o | |
15 | mtd-$(CONFIG_FLASH_PIC32) += pic32_flash.o | |
16 | mtd-$(CONFIG_ST_SMI) += st_smi.o | |
17 | mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o | |
18 | mtd-$(CONFIG_RENESAS_RPC_HF) += renesas_rpc_hf.o | |
19 | mtd-$(CONFIG_HBMC_AM654) += hbmc-am654.o | |
20 | ||
21 | # U-Boot build | |
22 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) | |
a430fa06 | 23 | |
fb438449 MR |
24 | ifneq ($(mtd-y),) |
25 | obj-y += mtd.o | |
26 | endif | |
a430fa06 | 27 | obj-y += nand/ |
fb438449 MR |
28 | obj-y += onenand/ |
29 | obj-y += spi/ | |
30 | obj-$(CONFIG_MTD_UBI) += ubi/ | |
31 | ||
32 | #SPL/TPL build | |
33 | else | |
34 | ||
35 | ifneq ($(mtd-y),) | |
36 | obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd.o | |
37 | endif | |
38 | obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += nand/ | |
39 | obj-$(CONFIG_SPL_ONENAND_SUPPORT) += onenand/ | |
40 | obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += spi/ | |
41 | obj-$(CONFIG_SPL_UBI) += ubispl/ | |
42 | ||
43 | endif |