]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/mpc512x/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc512x / Makefile
1 #
2 # (C) Copyright 2007-2009 DENX Software Engineering
3 #
4 # SPDX-License-Identifier:      GPL-2.0+
5 #
6
7 include $(TOPDIR)/config.mk
8
9 $(shell mkdir -p $(OBJTREE)/board/freescale/common)
10
11 LIB     = $(obj)lib$(CPU).o
12
13 START   = start.o
14 COBJS-y := cpu.o
15 COBJS-y += traps.o
16 COBJS-y += cpu_init.o
17 COBJS-y += fixed_sdram.o
18 COBJS-y += i2c.o
19 COBJS-y += interrupts.o
20 COBJS-y += iopin.o
21 COBJS-y += serial.o
22 COBJS-y += speed.o
23 COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
24 COBJS-$(CONFIG_CMD_IDE) += ide.o
25 COBJS-$(CONFIG_PCI) += pci.o
26
27 # Stub implementations of cache management functions for USB
28 COBJS-$(CONFIG_USB_EHCI) += cache.o
29
30 COBJS   := $(COBJS-y)
31 SRCS    := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
32 OBJS    := $(addprefix $(obj),$(SOBJS) $(COBJS))
33 START   := $(addprefix $(obj),$(START))
34
35 all:    $(obj).depend $(START) $(LIB)
36
37 $(LIB): $(OBJS)
38         $(call cmd_link_o_target, $(OBJS))
39
40 #########################################################################
41
42 # defines $(obj).depend target
43 include $(SRCTREE)/rules.mk
44
45 sinclude $(obj).depend
46
47 #########################################################################