blob: b723e22a5cb92b0d9e6d83467286371b75766f2e [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
Dirk Behme0b02b182008-12-14 09:47:13 +010023SRCS := $(START:.o=.S) $(COBJS:.o=.c)
Tom Rini41aebf82012-08-08 17:03:10 -070024OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
Dirk Behme0b02b182008-12-14 09:47:13 +010025START := $(addprefix $(obj),$(START))
26
27all: $(obj).depend $(START) $(LIB)
28
29$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
Dirk Behme0b02b182008-12-14 09:47:13 +010031
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
Stefano Babic87d98d32010-07-26 10:05:05 +020039#########################################################################