SPL: Move the omap SPL framework to common/spl
[kernel/u-boot.git] / common / spl / Makefile
1 #
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
12 include $(TOPDIR)/config.mk
13
14 LIB     = $(obj)libspl.o
15
16 ifdef CONFIG_SPL_BUILD
17 COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
18 COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
19 endif
20
21 COBJS   := $(sort $(COBJS-y))
22 SRCS    := $(COBJS:.o=.c)
23 OBJS    := $(addprefix $(obj),$(COBJS-y))
24
25 all:    $(obj).depend $(LIB)
26
27 $(LIB): $(OBJS)
28         $(call cmd_link_o_target, $(OBJS))
29
30 #########################################################################
31
32 # defines $(obj).depend target
33 include $(SRCTREE)/rules.mk
34
35 sinclude $(obj).depend
36
37 #########################################################################