Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Albert ARIBAUD | 32399d8 | 2013-01-08 23:57:20 +0100 | [diff] [blame] | 2 | |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 3 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
Boris Brezillon | 894380f | 2018-08-16 17:30:09 +0200 | [diff] [blame] | 4 | nandcore-objs := core.o bbt.o |
| 5 | obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 6 | obj-$(CONFIG_MTD_RAW_NAND) += raw/ |
Peter Pan | 47e9045 | 2018-08-16 17:30:12 +0200 | [diff] [blame] | 7 | obj-$(CONFIG_MTD_SPI_NAND) += spi/ |
Miquel Raynal | 68f7356 | 2019-10-25 19:39:31 +0200 | [diff] [blame] | 8 | else |
| 9 | obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += raw/ |
| 10 | endif |