3 # Texas Instruments Incorporated - http://www.ti.com/
4 # Aneesh V <aneesh@ti.com>
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.
9 # Based on common/Makefile.
12 include $(TOPDIR)/config.mk
16 ifdef CONFIG_SPL_BUILD
17 COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
18 COBJS-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o
19 COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
20 COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o
21 COBJS-$(CONFIG_SPL_ONENAND_SUPPORT) += spl_onenand.o
22 COBJS-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o
23 COBJS-$(CONFIG_SPL_MMC_SUPPORT) += spl_mmc.o
26 COBJS := $(sort $(COBJS-y))
27 SRCS := $(COBJS:.o=.c)
28 OBJS := $(addprefix $(obj),$(COBJS-y))
30 all: $(obj).depend $(LIB)
33 $(call cmd_link_o_target, $(OBJS))
35 #########################################################################
37 # defines $(obj).depend target
38 include $(SRCTREE)/rules.mk
40 sinclude $(obj).depend
42 #########################################################################