]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/rmobile/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / rmobile / Makefile
1 #
2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB     = $(obj)lib$(SOC).o
11
12 SOBJS = lowlevel_init.o
13 COBJS-y += cpu_info.o
14 COBJS-y += emac.o
15
16 COBJS-$(CONFIG_DISPLAY_BOARDINFO) += board.o
17 COBJS-$(CONFIG_GLOBAL_TIMER) += timer.o
18 COBJS-$(CONFIG_R8A7740) += cpu_info-r8a7740.o
19 COBJS-$(CONFIG_R8A7740) += pfc-r8a7740.o
20 COBJS-$(CONFIG_SH73A0) += cpu_info-sh73a0.o
21 COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o
22 COBJS_LN-$(CONFIG_TMU_TIMER) += sh_timer.o
23
24 COBJS   := $(COBJS-y)
25 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
26 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN-y:.o=.c))
27 OBJS    := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN-y))
28 SOBJS   := $(addprefix $(obj),$(SOBJS))
29 START   := $(addprefix $(obj),$(START))
30
31 all:    $(obj).depend $(LIB)
32
33 $(LIB): $(OBJS)
34         $(call cmd_link_o_target, $(OBJS))
35
36 # from arch/sh/lib/ directory
37 $(obj)sh_timer.c:
38         @rm -f $(obj)sh_timer.c
39         ln -s $(SRCTREE)/arch/sh/lib/time.c $(obj)sh_timer.c
40
41 #########################################################################
42
43 # defines $(obj).depend target
44 include $(SRCTREE)/rules.mk
45
46 sinclude $(obj).depend
47
48 #########################################################################
49