blob: 3006cd61e5e0b78daa210b3ce18f7c9554fb0914 [file] [log] [blame]
Vipin KUMAR7cb16352010-01-15 19:15:43 +05301#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Vipin KUMAR7cb16352010-01-15 19:15:43 +05306#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(SOC).o
Vipin KUMAR7cb16352010-01-15 19:15:43 +053011
Stefan Roesec6bc1db2012-01-03 16:49:01 +010012COBJS-y := cpu.o \
Vipin KUMAR4255edc2012-05-07 13:06:45 +053013 reset.o \
Vipin KUMAR7cb16352010-01-15 19:15:43 +053014 timer.o
Vipin KUMAR7cb16352010-01-15 19:15:43 +053015
Stefan Roesec6bc1db2012-01-03 16:49:01 +010016ifdef CONFIG_SPL_BUILD
17COBJS-y += spl.o spl_boot.o
18COBJS-$(CONFIG_SPEAR600) += spear600.o
19COBJS-$(CONFIG_DDR_MT47H64M16) += spr600_mt47h64m16_3_333_cl5_psync.o
20COBJS-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_333_cl5_psync.o
21COBJS-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_37e_166_cl4_sync.o
22COBJS-$(CONFIG_DDR_MT47H128M8) += spr600_mt47h128m8_3_266_cl5_async.o
23endif
24
25SRCS := $(START:.o=.S) $(COBJS-y:.o=.c)
26OBJS := $(addprefix $(obj),$(COBJS-y))
27START := $(addprefix $(obj),$(START))
28
29all: $(obj).depend $(LIB)
Vipin KUMAR7cb16352010-01-15 19:15:43 +053030
Stefan Roesec6bc1db2012-01-03 16:49:01 +010031$(LIB): $(OBJS)
32 $(call cmd_link_o_target, $(OBJS))
Vipin KUMAR7cb16352010-01-15 19:15:43 +053033
Vipin KUMAR7cb16352010-01-15 19:15:43 +053034#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################