blob: 993d317476b6c7357fd33223e3a2e4ddefe8f446 [file] [log] [blame]
Kyungmin Park17aa2802007-09-10 17:14:34 +09001#
Stefan Roese30363e92007-09-17 08:20:47 +02002# Copyright (C) 2005-2007 Samsung Electronics.
3# Kyungmin Park <kyungmin.park@samsung.com>
Kyungmin Park17aa2802007-09-10 17:14:34 +09004#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Kyungmin Park17aa2802007-09-10 17:14:34 +09006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libonenand.o
Kyungmin Park17aa2802007-09-10 17:14:34 +090011
Marek Vasut54cd51b2011-10-31 14:14:15 +010012ifndef CONFIG_SPL_BUILD
Jean-Christophe PLAGNIOL-VILLARD4fb09b82008-08-13 01:40:42 +020013COBJS-$(CONFIG_CMD_ONENAND) := onenand_uboot.o onenand_base.o onenand_bbt.o
Minkyu Kang4678d672009-10-01 17:20:08 +090014COBJS-$(CONFIG_SAMSUNG_ONENAND) += samsung.o
Marek Vasut54cd51b2011-10-31 14:14:15 +010015else
16COBJS-y := onenand_spl.o
17endif
Kyungmin Park17aa2802007-09-10 17:14:34 +090018
Jean-Christophe PLAGNIOL-VILLARD4fb09b82008-08-13 01:40:42 +020019COBJS := $(COBJS-y)
Kyungmin Park17aa2802007-09-10 17:14:34 +090020SRCS := $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22
23all: $(LIB)
24
25$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS))
Kyungmin Park17aa2802007-09-10 17:14:34 +090027
28#########################################################################
29
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################