blob: ee4b02183a264e829f821ea06856a6227f5cdf83 [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 Przywara8de142c2013-09-19 18:06:45 +020023ifneq ($(CONFIG_ARMV7_NONSEC)$(CONFIG_ARMV7_VIRT),)
Andre Przywarae776fd22013-09-19 18:06:40 +020024SOBJS += nonsec_virt.o
Andre Przywaraad5ad742013-09-19 18:06:42 +020025COBJS += virt-v7.o
Andre Przywarae776fd22013-09-19 18:06:40 +020026endif
27
Dirk Behme7d75a102008-12-14 09:47:13 +010028SRCS := $(START:.o=.S) $(COBJS:.o=.c)
Tom Riniee5bce42012-08-08 17:03:10 -070029OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
Dirk Behme7d75a102008-12-14 09:47:13 +010030START := $(addprefix $(obj),$(START))
31
32all: $(obj).depend $(START) $(LIB)
33
34$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010035 $(call cmd_link_o_target, $(OBJS))
Dirk Behme7d75a102008-12-14 09:47:13 +010036
37#########################################################################
38
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
41
42sinclude $(obj).depend
43
Stefano Babicdd1d1d52010-07-26 10:05:05 +020044#########################################################################