2009-10-18 19:45:31 +02:00
|
|
|
############################################################################
|
|
|
|
# drivers/mtd/Make.defs
|
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2009-10-18 19:45:31 +02:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2009-10-18 19:45:31 +02:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# These driver supports various Memory Technology Devices (MTD) using the
|
|
|
|
# NuttX MTD interface.
|
2009-10-18 19:45:31 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
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
|
|
|
|
|
2021-12-04 13:48:15 +01:00
|
|
|
ifeq ($(CONFIG_NULLMTD),y)
|
|
|
|
CSRCS += nullmtd.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
|
|
|
|
|
2019-09-15 16:33:22 +02:00
|
|
|
ifeq ($(CONFIG_MTD_GD5F),y)
|
|
|
|
CSRCS += gd5f.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
|
|
|
|
|
2019-11-21 13:10:49 +01:00
|
|
|
ifeq ($(CONFIG_MTD_W25QXXXJV),y)
|
|
|
|
CSRCS += w25qxxxjv.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
|
|
|
|
|
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
|