mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	rmobile: Fix build timer driver with BUILD_DIR
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>
This commit is contained in:
		
				
					committed by
					
						 Albert ARIBAUD
						Albert ARIBAUD
					
				
			
			
				
	
			
			
			
						parent
						
							96d1e0933f
						
					
				
				
					commit
					35729c6cb3
				
			| @@ -35,11 +35,12 @@ COBJS-$(CONFIG_R8A7740) += cpu_info-r8a7740.o | |||||||
| COBJS-$(CONFIG_R8A7740) += pfc-r8a7740.o | COBJS-$(CONFIG_R8A7740) += pfc-r8a7740.o | ||||||
| COBJS-$(CONFIG_SH73A0) += cpu_info-sh73a0.o | COBJS-$(CONFIG_SH73A0) += cpu_info-sh73a0.o | ||||||
| COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o | COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o | ||||||
| COBJS-$(CONFIG_TMU_TIMER) += $(TOPDIR)/arch/sh/lib/time.o | COBJS_LN-$(CONFIG_TMU_TIMER) += sh_timer.o | ||||||
|  |  | ||||||
| COBJS	:= $(COBJS-y) | COBJS	:= $(COBJS-y) | ||||||
| SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c) | SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c) | ||||||
| OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS)) | 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)) | SOBJS	:= $(addprefix $(obj),$(SOBJS)) | ||||||
| START	:= $(addprefix $(obj),$(START)) | START	:= $(addprefix $(obj),$(START)) | ||||||
|  |  | ||||||
| @@ -48,6 +49,11 @@ all:	$(obj).depend $(LIB) | |||||||
| $(LIB):	$(OBJS) | $(LIB):	$(OBJS) | ||||||
| 	$(call cmd_link_o_target, $(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 | # defines $(obj).depend target | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user