]> Git Repo - J-u-boot.git/blame - drivers/mtd/Makefile
Merge git://git.denx.de/u-boot-sh
[J-u-boot.git] / drivers / mtd / Makefile
CommitLineData
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
6mtd-$(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
14mtd-$(CONFIG_MW_EEPROM) += mw_eeprom.o
15mtd-$(CONFIG_FLASH_PIC32) += pic32_flash.o
16mtd-$(CONFIG_ST_SMI) += st_smi.o
17mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o
18mtd-$(CONFIG_RENESAS_RPC_HF) += renesas_rpc_hf.o
19mtd-$(CONFIG_HBMC_AM654) += hbmc-am654.o
20
21# U-Boot build
22ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
a430fa06 23
fb438449
MR
24ifneq ($(mtd-y),)
25obj-y += mtd.o
26endif
a430fa06 27obj-y += nand/
fb438449
MR
28obj-y += onenand/
29obj-y += spi/
30obj-$(CONFIG_MTD_UBI) += ubi/
31
32#SPL/TPL build
33else
34
35ifneq ($(mtd-y),)
36obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd.o
37endif
38obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += nand/
39obj-$(CONFIG_SPL_ONENAND_SUPPORT) += onenand/
40obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += spi/
41obj-$(CONFIG_SPL_UBI) += ubispl/
42
43endif
This page took 0.469798 seconds and 4 git commands to generate.