blob: 3466c7ac1164de67f9d93d6d6c26d8897f3041e5 [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
Andre Przywarae776fd22013-09-19 18:06:40 +020023ifneq ($(CONFIG_ARMV7_NONSEC),)
24SOBJS += nonsec_virt.o
25endif
26
Dirk Behme7d75a102008-12-14 09:47:13 +010027SRCS := $(START:.o=.S) $(COBJS:.o=.c)
Tom Riniee5bce42012-08-08 17:03:10 -070028OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
Dirk Behme7d75a102008-12-14 09:47:13 +010029START := $(addprefix $(obj),$(START))
30
31all: $(obj).depend $(START) $(LIB)
32
33$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010034 $(call cmd_link_o_target, $(OBJS))
Dirk Behme7d75a102008-12-14 09:47:13 +010035
36#########################################################################
37
38# defines $(obj).depend target
39include $(SRCTREE)/rules.mk
40
41sinclude $(obj).depend
42
Stefano Babicdd1d1d52010-07-26 10:05:05 +020043#########################################################################