2012-06-13 07:29:47 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2012-06-13 07:29:47 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
LIB = $(obj)lib$(SOC).o
|
|
|
|
|
2012-08-19 04:40:05 +00:00
|
|
|
SOBJS = lowlevel_init.o
|
|
|
|
COBJS-y += cpu_info.o
|
2012-08-05 22:26:09 +00:00
|
|
|
COBJS-y += emac.o
|
2012-06-13 07:29:47 +00:00
|
|
|
|
2012-08-19 04:40:05 +00:00
|
|
|
COBJS-$(CONFIG_DISPLAY_BOARDINFO) += board.o
|
2012-08-03 05:21:05 +00:00
|
|
|
COBJS-$(CONFIG_GLOBAL_TIMER) += timer.o
|
2012-07-20 04:06:54 +00:00
|
|
|
COBJS-$(CONFIG_R8A7740) += cpu_info-r8a7740.o
|
|
|
|
COBJS-$(CONFIG_R8A7740) += pfc-r8a7740.o
|
2012-08-19 04:40:05 +00:00
|
|
|
COBJS-$(CONFIG_SH73A0) += cpu_info-sh73a0.o
|
2012-07-20 00:29:19 +00:00
|
|
|
COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o
|
2012-10-02 16:40:39 +00:00
|
|
|
COBJS_LN-$(CONFIG_TMU_TIMER) += sh_timer.o
|
2012-08-19 04:40:05 +00:00
|
|
|
|
|
|
|
COBJS := $(COBJS-y)
|
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
2012-10-02 16:40:39 +00:00
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN-y:.o=.c))
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN-y))
|
2012-08-19 04:40:05 +00:00
|
|
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
2012-06-13 07:29:47 +00:00
|
|
|
START := $(addprefix $(obj),$(START))
|
|
|
|
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
|
|
|
|
2012-10-02 16:40:39 +00:00
|
|
|
# from arch/sh/lib/ directory
|
|
|
|
$(obj)sh_timer.c:
|
|
|
|
@rm -f $(obj)sh_timer.c
|
|
|
|
ln -s $(SRCTREE)/arch/sh/lib/time.c $(obj)sh_timer.c
|
|
|
|
|
2012-06-13 07:29:47 +00:00
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|