2005-01-09 23:16:25 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2005-01-09 23:16:25 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2005-01-09 23:16:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(CPU).o
|
2005-01-09 23:16:25 +00:00
|
|
|
|
|
|
|
START = start.o
|
2011-11-28 06:37:32 +00:00
|
|
|
COBJS = cpu.o cache.o
|
2005-01-09 23:16:25 +00:00
|
|
|
|
2011-10-24 00:14:23 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE
|
|
|
|
START :=
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
|
|
|
|
START := $(addprefix $(obj),$(START))
|
|
|
|
|
|
|
|
all: $(obj).depend $(START) $(LIB)
|
2005-01-09 23:16:25 +00:00
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2005-01-09 23:16:25 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2005-01-09 23:16:25 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
sinclude $(obj).depend
|
2005-01-09 23:16:25 +00:00
|
|
|
|
|
|
|
#########################################################################
|