blob: 75b3753260c33782b2a548d9c35f30518a46a6cb [file] [log] [blame]
Steve Sakoman1ad21582010-06-08 13:07:46 -07001#
2# (C) Copyright 2000-2003
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Steve Sakoman1ad21582010-06-08 13:07:46 -07006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)libomap-common.o
Steve Sakoman1ad21582010-06-08 13:07:46 -070011
Robert P. J. Day7bf063b2012-11-15 01:21:18 +000012COBJS := reset.o
13COBJS += timer.o
Aneesh Vc0e88522011-07-21 09:10:12 -040014COBJS += utils.o
Steve Sakoman1ad21582010-06-08 13:07:46 -070015
Sricharan9784f1f2011-11-15 09:49:58 -050016ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
Sricharan060cd222011-11-15 09:49:50 -050017COBJS += hwinit-common.o
18COBJS += clocks-common.o
19COBJS += emif-common.o
Nishanth Menon41d7ab12012-03-01 14:17:37 +000020COBJS += vc.o
Andrii Tseglytskyi28095da2013-05-20 22:42:08 +000021COBJS += abb.o
Chandan Nath77a73fe2012-01-09 20:38:59 +000022endif
23
Lokesh Vutla56055052013-07-30 11:36:30 +053024ifeq ($(CONFIG_OMAP34XX),)
Chandan Nath77a73fe2012-01-09 20:38:59 +000025COBJS += boot-common.o
Sricharan060cd222011-11-15 09:49:50 -050026SOBJS += lowlevel_init.o
27endif
28
Sricharan060cd222011-11-15 09:49:50 -050029ifndef CONFIG_SPL_BUILD
Sricharan9784f1f2011-11-15 09:49:58 -050030ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
Sricharan060cd222011-11-15 09:49:50 -050031COBJS += mem-common.o
32endif
33endif
34
Steve Sakoman1ad21582010-06-08 13:07:46 -070035SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
36OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
37
38all: $(obj).depend $(LIB)
39
40$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010041 $(call cmd_link_o_target, $(OBJS))
Steve Sakoman1ad21582010-06-08 13:07:46 -070042
43#########################################################################
44
45# defines $(obj).depend target
46include $(SRCTREE)/rules.mk
47
48sinclude $(obj).depend
49
50#########################################################################