Kyungmin Park | 17aa280 | 2007-09-10 17:14:34 +0900 | [diff] [blame] | 1 | # |
Stefan Roese | 30363e9 | 2007-09-17 08:20:47 +0200 | [diff] [blame] | 2 | # Copyright (C) 2005-2007 Samsung Electronics. |
| 3 | # Kyungmin Park <kyungmin.park@samsung.com> |
Kyungmin Park | 17aa280 | 2007-09-10 17:14:34 +0900 | [diff] [blame] | 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Kyungmin Park | 17aa280 | 2007-09-10 17:14:34 +0900 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libonenand.o |
Kyungmin Park | 17aa280 | 2007-09-10 17:14:34 +0900 | [diff] [blame] | 11 | |
Marek Vasut | 54cd51b | 2011-10-31 14:14:15 +0100 | [diff] [blame] | 12 | ifndef CONFIG_SPL_BUILD |
Jean-Christophe PLAGNIOL-VILLARD | 4fb09b8 | 2008-08-13 01:40:42 +0200 | [diff] [blame] | 13 | COBJS-$(CONFIG_CMD_ONENAND) := onenand_uboot.o onenand_base.o onenand_bbt.o |
Minkyu Kang | 4678d67 | 2009-10-01 17:20:08 +0900 | [diff] [blame] | 14 | COBJS-$(CONFIG_SAMSUNG_ONENAND) += samsung.o |
Marek Vasut | 54cd51b | 2011-10-31 14:14:15 +0100 | [diff] [blame] | 15 | else |
| 16 | COBJS-y := onenand_spl.o |
| 17 | endif |
Kyungmin Park | 17aa280 | 2007-09-10 17:14:34 +0900 | [diff] [blame] | 18 | |
Jean-Christophe PLAGNIOL-VILLARD | 4fb09b8 | 2008-08-13 01:40:42 +0200 | [diff] [blame] | 19 | COBJS := $(COBJS-y) |
Kyungmin Park | 17aa280 | 2007-09-10 17:14:34 +0900 | [diff] [blame] | 20 | SRCS := $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | |
| 23 | all: $(LIB) |
| 24 | |
| 25 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 26 | $(call cmd_link_o_target, $(OBJS)) |
Kyungmin Park | 17aa280 | 2007-09-10 17:14:34 +0900 | [diff] [blame] | 27 | |
| 28 | ######################################################################### |
| 29 | |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |