mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 16:07:30 +00:00
35729c6cb3
Rmobile common timer driver diverts the same driver as SH architecture. When it builds at the same place with source, it is no problem, but when it builds out of source, it cannot build. This patch revises this problem. Reported-by: Albert ARIBAUD <albert.u.boot@aribaud.net> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
65 lines
2 KiB
Makefile
65 lines
2 KiB
Makefile
#
|
|
# (C) Copyright 2000-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# See file CREDITS for list of people who contributed to this
|
|
# project.
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License as
|
|
# published by the Free Software Foundation; either version 2 of
|
|
# the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
# MA 02111-1307 USA
|
|
#
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
LIB = $(obj)lib$(SOC).o
|
|
|
|
SOBJS = lowlevel_init.o
|
|
COBJS-y += cpu_info.o
|
|
COBJS-y += emac.o
|
|
|
|
COBJS-$(CONFIG_DISPLAY_BOARDINFO) += board.o
|
|
COBJS-$(CONFIG_GLOBAL_TIMER) += timer.o
|
|
COBJS-$(CONFIG_R8A7740) += cpu_info-r8a7740.o
|
|
COBJS-$(CONFIG_R8A7740) += pfc-r8a7740.o
|
|
COBJS-$(CONFIG_SH73A0) += cpu_info-sh73a0.o
|
|
COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o
|
|
COBJS_LN-$(CONFIG_TMU_TIMER) += sh_timer.o
|
|
|
|
COBJS := $(COBJS-y)
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN-y:.o=.c))
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN-y))
|
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
|
START := $(addprefix $(obj),$(START))
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
$(call cmd_link_o_target, $(OBJS))
|
|
|
|
# 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
|
|
|
|
#########################################################################
|
|
|
|
# defines $(obj).depend target
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
sinclude $(obj).depend
|
|
|
|
#########################################################################
|
|
|