summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/omap3/Makefile
blob: f070c1819652219a7866ffa8a774022c5ee75a96 (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
#
# (C) Copyright 2000-2003
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier:	GPL-2.0+
#

include $(TOPDIR)/config.mk

LIB	=  $(obj)lib$(SOC).o

SOBJS	:= lowlevel_init.o

COBJS	+= board.o
COBJS	+= clock.o
COBJS	+= mem.o
COBJS	+= sys_info.o
ifdef CONFIG_SPL_BUILD
COBJS-$(CONFIG_SPL_OMAP3_ID_NAND)	+= spl_id_nand.o
endif

COBJS-$(CONFIG_DRIVER_TI_EMAC)	+= emac.o
COBJS-$(CONFIG_EMIF4)	+= emif4.o
COBJS-$(CONFIG_SDRC)	+= sdrc.o
COBJS-$(CONFIG_USB_MUSB_AM35X)	+= am35x_musb.o

SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS	:= $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))

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

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

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

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

sinclude $(obj).depend

#########################################################################
OpenPOWER on IntegriCloud