summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/omap-common/Makefile
blob: 75b3753260c33782b2a548d9c35f30518a46a6cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# (C) Copyright 2000-2003
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier:	GPL-2.0+
#

include $(TOPDIR)/config.mk

LIB	= $(obj)libomap-common.o

COBJS	:= reset.o
COBJS	+= timer.o
COBJS	+= utils.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

ifeq ($(CONFIG_OMAP34XX),)
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))

all:	$(obj).depend $(LIB)

$(LIB):	$(OBJS)
	$(call cmd_link_o_target, $(OBJS))

#########################################################################

# defines $(obj).depend target
include $(SRCTREE)/rules.mk

sinclude $(obj).depend

#########################################################################