2008-12-14 08:47:13 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2003
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2008-12-14 08:47:13 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(CPU).o
|
2008-12-14 08:47:13 +00:00
|
|
|
|
|
|
|
START := start.o
|
2011-07-21 13:10:21 +00:00
|
|
|
|
|
|
|
COBJS += cache_v7.o
|
|
|
|
|
2011-11-21 23:33:59 +00:00
|
|
|
COBJS += cpu.o
|
|
|
|
COBJS += syslib.o
|
2008-12-14 08:47:13 +00:00
|
|
|
|
2013-07-30 06:06:31 +00:00
|
|
|
ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI814X),)
|
2012-08-09 00:03:10 +00:00
|
|
|
SOBJS += lowlevel_init.o
|
|
|
|
endif
|
|
|
|
|
2008-12-14 08:47:13 +00:00
|
|
|
SRCS := $(START:.o=.S) $(COBJS:.o=.c)
|
2012-08-09 00:03:10 +00:00
|
|
|
OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
|
2008-12-14 08:47:13 +00:00
|
|
|
START := $(addprefix $(obj),$(START))
|
|
|
|
|
|
|
|
all: $(obj).depend $(START) $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2008-12-14 08:47:13 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
2010-07-26 08:05:05 +00:00
|
|
|
#########################################################################
|