2009-10-18 19:45:31 +02:00
|
|
|
############################################################################
|
|
|
|
# drivers/mtd/Make.defs
|
2012-08-02 02:42:46 +02:00
|
|
|
# These driver supports various Memory Technology Devices (MTD) using the
|
|
|
|
# NuttX MTD interface.
|
2009-10-18 19:45:31 +02:00
|
|
|
#
|
2016-04-17 22:13:44 +02:00
|
|
|
# Copyright (C) 2009-2013, 2015-2016 Gregory Nutt. All rights reserved.
|
2012-06-25 23:21:08 +02:00
|
|
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
2009-10-18 19:45:31 +02:00
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2011-05-16 17:09:39 +02:00
|
|
|
# Include MTD drivers
|
|
|
|
|
2013-01-15 01:03:58 +01:00
|
|
|
ifeq ($(CONFIG_MTD),y)
|
|
|
|
|
2017-05-11 15:17:29 +02:00
|
|
|
CSRCS += ftl.c mtd_config.c
|
2011-05-16 17:09:39 +02:00
|
|
|
|
2013-04-30 20:37:34 +02:00
|
|
|
ifeq ($(CONFIG_MTD_PARTITION),y)
|
|
|
|
CSRCS += mtd_partition.c
|
|
|
|
endif
|
|
|
|
|
2014-03-25 00:45:45 +01:00
|
|
|
ifeq ($(CONFIG_MTD_SECT512),y)
|
|
|
|
CSRCS += sector512.c
|
|
|
|
endif
|
|
|
|
|
2014-07-11 19:20:11 +02:00
|
|
|
ifeq ($(CONFIG_MTD_WRBUFFER),y)
|
|
|
|
CSRCS += mtd_rwbuffer.c
|
|
|
|
else
|
|
|
|
ifeq ($(CONFIG_MTD_READAHEAD),y)
|
|
|
|
CSRCS += mtd_rwbuffer.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-11-12 20:40:18 +01:00
|
|
|
ifeq ($(CONFIG_MTD_PROGMEM),y)
|
|
|
|
CSRCS += mtd_progmem.c
|
|
|
|
endif
|
|
|
|
|
2013-11-15 21:11:21 +01:00
|
|
|
ifeq ($(CONFIG_MTD_NAND),y)
|
2013-11-18 16:43:44 +01:00
|
|
|
CSRCS += mtd_nand.c mtd_onfi.c mtd_nandscheme.c mtd_nandmodel.c mtd_modeltab.c
|
2013-11-27 18:04:40 +01:00
|
|
|
ifeq ($(CONFIG_MTD_NAND_SWECC),y)
|
2013-11-18 16:43:44 +01:00
|
|
|
CSRCS += mtd_nandecc.c hamming.c
|
|
|
|
endif
|
2013-11-15 21:11:21 +01:00
|
|
|
endif
|
|
|
|
|
2013-05-01 03:10:54 +02:00
|
|
|
ifeq ($(CONFIG_RAMMTD),y)
|
|
|
|
CSRCS += rammtd.c
|
|
|
|
endif
|
|
|
|
|
2015-11-28 16:00:26 +01:00
|
|
|
ifeq ($(CONFIG_FILEMTD),y)
|
|
|
|
CSRCS += filemtd.c
|
|
|
|
endif
|
|
|
|
|
2011-09-07 15:32:13 +02:00
|
|
|
ifeq ($(CONFIG_MTD_AT24XX),y)
|
|
|
|
CSRCS += at24xx.c
|
|
|
|
endif
|
|
|
|
|
2017-05-11 15:17:29 +02:00
|
|
|
ifeq ($(CONFIG_MTD_AT45DB),y)
|
|
|
|
CSRCS += at45db.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MTD_RAMTRON),y)
|
|
|
|
CSRCS += ramtron.c
|
|
|
|
endif
|
|
|
|
|
2012-06-25 23:21:08 +02:00
|
|
|
ifeq ($(CONFIG_MTD_SST25),y)
|
|
|
|
CSRCS += sst25.c
|
|
|
|
endif
|
|
|
|
|
2013-11-28 15:04:46 +01:00
|
|
|
ifeq ($(CONFIG_MTD_SST25XX),y)
|
|
|
|
CSRCS += sst25xx.c
|
|
|
|
endif
|
|
|
|
|
2016-05-10 19:09:15 +02:00
|
|
|
ifeq ($(CONFIG_MTD_SST26),y)
|
|
|
|
CSRCS += sst26.c
|
|
|
|
endif
|
|
|
|
|
2013-02-11 22:44:00 +01:00
|
|
|
ifeq ($(CONFIG_MTD_SST39FV),y)
|
|
|
|
CSRCS += sst39vf.c
|
|
|
|
endif
|
|
|
|
|
2012-09-17 20:35:37 +02:00
|
|
|
ifeq ($(CONFIG_MTD_W25),y)
|
|
|
|
CSRCS += w25.c
|
|
|
|
endif
|
|
|
|
|
2018-08-28 14:31:28 +02:00
|
|
|
ifeq ($(CONFIG_MTD_GD25),y)
|
|
|
|
CSRCS += gd25.c
|
|
|
|
endif
|
|
|
|
|
2012-12-07 17:00:56 +01:00
|
|
|
ifeq ($(CONFIG_MTD_AT25),y)
|
|
|
|
CSRCS += at25.c
|
|
|
|
endif
|
|
|
|
|
2016-09-02 19:00:04 +02:00
|
|
|
ifeq ($(CONFIG_MTD_M25P),y)
|
|
|
|
CSRCS += m25px.c
|
|
|
|
endif
|
|
|
|
|
2017-01-30 14:26:38 +01:00
|
|
|
ifeq ($(CONFIG_MTD_MX25L),y)
|
|
|
|
CSRCS += mx25lx.c
|
2016-09-02 19:00:04 +02:00
|
|
|
endif
|
|
|
|
|
2017-11-29 14:15:36 +01:00
|
|
|
ifeq ($(CONFIG_MTD_MX35),y)
|
|
|
|
CSRCS += mx35.c
|
|
|
|
endif
|
|
|
|
|
2015-11-07 18:51:09 +01:00
|
|
|
ifeq ($(CONFIG_MTD_S25FL1),y)
|
|
|
|
CSRCS += s25fl1.c
|
2015-08-25 17:10:12 +02:00
|
|
|
endif
|
|
|
|
|
2016-04-17 19:20:07 +02:00
|
|
|
ifeq ($(CONFIG_MTD_N25QXXX),y)
|
|
|
|
CSRCS += n25qxxx.c
|
|
|
|
endif
|
|
|
|
|
2017-08-06 18:51:17 +02:00
|
|
|
ifeq ($(CONFIG_MTD_MX25RXX),y)
|
|
|
|
CSRCS += mx25rxx.c
|
|
|
|
endif
|
|
|
|
|
2016-06-09 05:13:06 +02:00
|
|
|
ifeq ($(CONFIG_MTD_IS25XP),y)
|
|
|
|
CSRCS += is25xp.c
|
|
|
|
endif
|
|
|
|
|
2013-05-01 03:10:54 +02:00
|
|
|
ifeq ($(CONFIG_MTD_SMART),y)
|
|
|
|
ifeq ($(CONFIG_FS_SMARTFS),y)
|
|
|
|
CSRCS += smart.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-12-12 16:21:55 +01:00
|
|
|
ifeq ($(CONFIG_FS_PROCFS),y)
|
|
|
|
ifneq ($(CONFIG_FS_PROCFS_EXCLUDE_MTD),y)
|
|
|
|
CSRCS += mtd_procfs.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-05-16 17:09:39 +02:00
|
|
|
# Include MTD driver support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path mtd
|
|
|
|
VPATH += :mtd
|
|
|
|
|
2013-01-15 01:03:58 +01:00
|
|
|
endif
|