]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/mpc86xx/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc86xx / Makefile
1 #
2 # Copyright 2007 Freescale Semiconductor, Inc.
3 # (C) Copyright 2002,2003 Motorola Inc.
4 # Xianghua Xiao,X.Xiao@motorola.com
5 #
6 # (C) Copyright 2004 Freescale Semiconductor. (MC86xx Port)
7 # Jeff Brown
8 # SPDX-License-Identifier:      GPL-2.0+
9 #
10
11 include $(TOPDIR)/config.mk
12
13 LIB     = $(obj)lib$(CPU).o
14
15 SSTART  = start.o
16 CSTART  = traps.o
17
18 SOBJS-y += cache.o
19 SOBJS-$(CONFIG_MP) += release.o
20
21 COBJS-y += cpu.o
22 COBJS-y += cpu_init.o
23 # 8610 & 8641 are identical w/regards to DDR
24 COBJS-$(CONFIG_MPC8610) += ddr-8641.o
25 COBJS-$(CONFIG_MPC8641) += ddr-8641.o
26 COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
27 COBJS-y += interrupts.o
28 COBJS-$(CONFIG_MP) += mp.o
29 COBJS-$(CONFIG_MPC8610) += mpc8610_serdes.o
30 COBJS-$(CONFIG_MPC8641) += mpc8641_serdes.o
31 COBJS-y += speed.o
32
33 SRCS    := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
34 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
35 START   := $(addprefix $(obj),$(SSTART) $(CSTART))
36
37 all:    $(obj).depend $(START) $(LIB)
38
39 $(LIB): $(OBJS)
40         $(call cmd_link_o_target, $(OBJS))
41
42 #########################################################################
43
44 # defines $(obj).depend target
45 include $(SRCTREE)/rules.mk
46
47 sinclude $(obj).depend
48
49 #########################################################################