2006-09-02 02:49:50 +09:00
|
|
|
#
|
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
2005-08-17 19:55:25 +09:00
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2008-05-20 23:00:29 +09:00
|
|
|
LIB := $(obj)libnand.a
|
2006-09-02 02:49:50 +09:00
|
|
|
|
2008-08-13 08:40:43 +09:00
|
|
|
ifdef CONFIG_CMD_NAND
|
|
|
|
ifndef CONFIG_NAND_LEGACY
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS-y += nand.o
|
|
|
|
COBJS-y += nand_base.o
|
|
|
|
COBJS-y += nand_bbt.o
|
2008-08-13 08:40:43 +09:00
|
|
|
COBJS-y += nand_ecc.o
|
|
|
|
COBJS-y += nand_ids.o
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS-y += nand_util.o
|
2008-08-13 08:40:43 +09:00
|
|
|
endif
|
2007-09-25 00:05:30 +09:00
|
|
|
|
2009-03-22 18:22:34 +09:00
|
|
|
COBJS-$(CONFIG_NAND_ATMEL) += atmel_nand.o
|
2008-11-27 11:43:06 +09:00
|
|
|
COBJS-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o
|
2009-03-31 01:58:39 +09:00
|
|
|
COBJS-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
|
2008-03-22 06:12:51 +09:00
|
|
|
COBJS-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
|
2008-08-13 08:40:43 +09:00
|
|
|
COBJS-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
|
2009-02-09 23:53:31 +09:00
|
|
|
COBJS-$(CONFIG_NAND_NOMADIK) += nomadik.o
|
2008-08-31 07:39:47 +09:00
|
|
|
COBJS-$(CONFIG_NAND_S3C64XX) += s3c64xx.o
|
2008-12-14 17:47:16 +09:00
|
|
|
COBJS-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
|
2008-08-13 08:40:43 +09:00
|
|
|
endif
|
2008-01-15 05:09:32 +09:00
|
|
|
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS := $(COBJS-y)
|
2008-05-20 23:00:29 +09:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
2005-08-17 19:55:25 +09:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2006-10-09 08:02:05 +09:00
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
2005-08-17 19:55:25 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2005-08-17 19:55:25 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|