blob: 96e186600a185e81b827f447a81ff3ec865afa98 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Marian Balakowiczf9328632006-09-01 19:49:50 +02002
Miquel Raynalfb438442019-10-25 19:39:31 +02003ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Boris Brezillonb95db8d2018-08-16 17:30:09 +02004nandcore-objs := core.o bbt.o
5obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
Miquel Raynalfb438442019-10-25 19:39:31 +02006obj-$(CONFIG_MTD_RAW_NAND) += raw/
Peter Pan0a6d6ba2018-08-16 17:30:12 +02007obj-$(CONFIG_MTD_SPI_NAND) += spi/
Miquel Raynalfb438442019-10-25 19:39:31 +02008else
9obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += raw/
10endif