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