]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/mpc5xxx/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc5xxx / Makefile
1 #
2 # (C) Copyright 2003-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$(CPU).o
11
12 SSTART  = start.o
13 CSTART  = traps.o
14 SOBJS  += io.o
15 SOBJS  += firmware_sc_task_bestcomm.impl.o
16 COBJS-y += i2c.o
17 COBJS-y += cpu.o
18 COBJS-y += cpu_init.o
19 COBJS-y += ide.o
20 COBJS-y += interrupts.o
21 COBJS-y += loadtask.o
22 COBJS-y += pci_mpc5200.o
23 COBJS-y += serial.o
24 COBJS-y += speed.o
25 COBJS-$(CONFIG_CMD_USB) += usb_ohci.o
26 COBJS-$(CONFIG_CMD_USB) += usb.o
27
28 ifdef CONFIG_SPL_BUILD
29 COBJS-y += spl_boot.o
30 endif
31
32 SRCS    := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
33 OBJS    := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
34 START   := $(addprefix $(obj),$(SSTART) $(CSTART))
35
36 all:    $(obj).depend $(START) $(LIB)
37
38 $(LIB): $(OBJS)
39         $(call cmd_link_o_target, $(OBJS))
40
41 #########################################################################
42
43 # defines $(obj).depend target
44 include $(SRCTREE)/rules.mk
45
46 sinclude $(obj).depend
47
48 #########################################################################