2012-08-13 19:03:19 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2012
|
|
|
|
# Texas Instruments Incorporated - http://www.ti.com/
|
|
|
|
# Aneesh V <aneesh@ti.com>
|
|
|
|
#
|
|
|
|
# This file is released under the terms of GPL v2 and any later version.
|
|
|
|
# See the file COPYING in the root directory of the source tree for details.
|
|
|
|
#
|
|
|
|
# Based on common/Makefile.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
LIB = $(obj)libspl.o
|
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
|
2012-08-27 10:50:59 +00:00
|
|
|
COBJS-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o
|
2012-08-13 19:03:19 +00:00
|
|
|
COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
|
2012-08-14 21:33:02 +00:00
|
|
|
COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o
|
2013-02-07 23:14:48 +00:00
|
|
|
COBJS-$(CONFIG_SPL_ONENAND_SUPPORT) += spl_onenand.o
|
2012-09-18 00:22:50 +00:00
|
|
|
COBJS-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o
|
2012-08-13 19:03:19 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
COBJS := $(sort $(COBJS-y))
|
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
|
|
|
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|