blob: b723e22a5cb92b0d9e6d83467286371b75766f2e [file] [log] [blame]
Dirk Behme7d75a102008-12-14 09:47:13 +01001#
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+
Dirk Behme7d75a102008-12-14 09:47:13 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
Dirk Behme7d75a102008-12-14 09:47:13 +010011
12START := start.o
Aneesh Vb8e60b92011-07-21 09:10:21 -040013
Aneesh Vb8e60b92011-07-21 09:10:21 -040014COBJS += cache_v7.o
Aneesh Vb8e60b92011-07-21 09:10:21 -040015
Aneesh V210f3312011-11-21 23:33:59 +000016COBJS += cpu.o
17COBJS += syslib.o
Dirk Behme7d75a102008-12-14 09:47:13 +010018
TENART Antoinea6be77c2013-07-02 12:05:58 +020019ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI81XX),)
Tom Riniee5bce42012-08-08 17:03:10 -070020SOBJS += lowlevel_init.o
21endif
22
Dirk Behme7d75a102008-12-14 09:47:13 +010023SRCS := $(START:.o=.S) $(COBJS:.o=.c)
Tom Riniee5bce42012-08-08 17:03:10 -070024OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
Dirk Behme7d75a102008-12-14 09:47:13 +010025START := $(addprefix $(obj),$(START))
26
27all: $(obj).depend $(START) $(LIB)
28
29$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
Dirk Behme7d75a102008-12-14 09:47:13 +010031
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
Stefano Babicdd1d1d52010-07-26 10:05:05 +020039#########################################################################