1# SPDX-License-Identifier: GPL-2.0+
2
3ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
4nandcore-objs := core.o bbt.o
5obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
6obj-$(CONFIG_MTD_RAW_NAND) += raw/
7obj-$(CONFIG_MTD_SPI_NAND) += spi/
8else
9obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += raw/
10endif
11