blob: ee4b02183a264e829f821ea06856a6227f5cdf83 [file] [log] [blame]
Dirk Behme0b02b182008-12-14 09:47:13 +01001#
2# (C) Copyright 2000-2003
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Behme0b02b182008-12-14 09:47:13 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
Dirk Behme0b02b182008-12-14 09:47:13 +010011
12START := start.o
Aneesh Vbcae7212011-07-21 09:10:21 -040013
Aneesh Vbcae7212011-07-21 09:10:21 -040014COBJS += cache_v7.o
Aneesh Vbcae7212011-07-21 09:10:21 -040015
Aneesh V87d3da72011-11-21 23:33:59 +000016COBJS += cpu.o
17COBJS += syslib.o
Dirk Behme0b02b182008-12-14 09:47:13 +010018
TENART Antoine9ed6e412013-07-02 12:05:58 +020019ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI81XX),)
Tom Rini41aebf82012-08-08 17:03:10 -070020SOBJS += lowlevel_init.o
21endif
22
Andre Przywarad4296882013-09-19 18:06:45 +020023ifneq ($(CONFIG_ARMV7_NONSEC)$(CONFIG_ARMV7_VIRT),)
Andre Przywara45b940d2013-09-19 18:06:40 +020024SOBJS += nonsec_virt.o
Andre Przywara1ef92382013-09-19 18:06:42 +020025COBJS += virt-v7.o
Andre Przywara45b940d2013-09-19 18:06:40 +020026endif
27
Dirk Behme0b02b182008-12-14 09:47:13 +010028SRCS := $(START:.o=.S) $(COBJS:.o=.c)
Tom Rini41aebf82012-08-08 17:03:10 -070029OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
Dirk Behme0b02b182008-12-14 09:47:13 +010030START := $(addprefix $(obj),$(START))
31
32all: $(obj).depend $(START) $(LIB)
33
34$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010035 $(call cmd_link_o_target, $(OBJS))
Dirk Behme0b02b182008-12-14 09:47:13 +010036
37#########################################################################
38
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
41
42sinclude $(obj).depend
43
Stefano Babic87d98d32010-07-26 10:05:05 +020044#########################################################################