Merge branch 'master' of git://www.denx.de/git/u-boot-mmc
[oweals/u-boot.git] / arch / arm / cpu / armv7 / omap-common / Makefile
index dc01ee5d3c70f949d4010ad3d160315c69cd3ab9..c4b9809ad07d4145ccd7f30c6499eb4ebde68bca 100644 (file)
@@ -25,9 +25,28 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)libomap-common.o
 
-SOBJS  := reset.o
+COBJS  := reset.o
+COBJS  += timer.o
+COBJS  += utils.o
 
-COBJS  := timer.o
+ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
+COBJS  += hwinit-common.o
+COBJS  += clocks-common.o
+COBJS  += emif-common.o
+COBJS  += vc.o
+COBJS  += abb.o
+endif
+
+ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI814X),)
+COBJS  += boot-common.o
+SOBJS  += lowlevel_init.o
+endif
+
+ifndef CONFIG_SPL_BUILD
+ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
+COBJS  += mem-common.o
+endif
+endif
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))