blob: a74563cc4feb1fab9e5888465ba3167fdd350233 [file] [log] [blame]
Tom Rini28591df2012-08-13 12:03:19 -07001#
2# (C) Copyright 2012
3# Texas Instruments Incorporated - http://www.ti.com/
4# Aneesh V <aneesh@ti.com>
5#
6# This file is released under the terms of GPL v2 and any later version.
7# See the file COPYING in the root directory of the source tree for details.
8#
9# Based on common/Makefile.
10#
11
12include $(TOPDIR)/config.mk
13
14LIB = $(obj)libspl.o
15
16ifdef CONFIG_SPL_BUILD
17COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
Stefan Roese900c1772012-08-27 12:50:59 +020018COBJS-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o
Tom Rini28591df2012-08-13 12:03:19 -070019COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
Tom Rini9ef51bd2012-08-14 14:33:02 -070020COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o
Enric Balletbo i Serrad6b5eed2013-02-07 23:14:48 +000021COBJS-$(CONFIG_SPL_ONENAND_SUPPORT) += spl_onenand.o
Ilya Yanokf7a2c552012-09-18 00:22:50 +000022COBJS-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o
Ying Zhangdaee1d82013-05-09 23:00:36 +000023COBJS-$(CONFIG_SPL_MMC_SUPPORT) += spl_mmc.o
Tom Rini28591df2012-08-13 12:03:19 -070024endif
25
26COBJS := $(sort $(COBJS-y))
27SRCS := $(COBJS:.o=.c)
28OBJS := $(addprefix $(obj),$(COBJS-y))
29
30all: $(obj).depend $(LIB)
31
32$(LIB): $(OBJS)
33 $(call cmd_link_o_target, $(OBJS))
34
35#########################################################################
36
37# defines $(obj).depend target
38include $(SRCTREE)/rules.mk
39
40sinclude $(obj).depend
41
42#########################################################################