3 # Texas Instruments Incorporated - http://www.ti.com/
4 # Aneesh V <aneesh@ti.com>
6 # SPDX-License-Identifier: GPL-2.0+
8 # Based on common/Makefile.
11 include $(TOPDIR)/config.mk
15 ifdef CONFIG_SPL_BUILD
16 COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
17 COBJS-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o
18 COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
19 COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o
20 COBJS-$(CONFIG_SPL_ONENAND_SUPPORT) += spl_onenand.o
21 COBJS-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o
22 COBJS-$(CONFIG_SPL_MMC_SUPPORT) += spl_mmc.o
25 COBJS := $(sort $(COBJS-y))
26 SRCS := $(COBJS:.o=.c)
27 OBJS := $(addprefix $(obj),$(COBJS-y))
29 all: $(obj).depend $(LIB)
32 $(call cmd_link_o_target, $(OBJS))
34 #########################################################################
36 # defines $(obj).depend target
37 include $(SRCTREE)/rules.mk
39 sinclude $(obj).depend
41 #########################################################################