]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/powerpc/cpu/ppc4xx/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / powerpc / cpu / ppc4xx / 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$(CPU).o
11
12 START := resetvec.o
13 START += start.o
14
15 SOBJS := cache.o
16 SOBJS += dcr.o
17 SOBJS += kgdb.o
18
19 COBJS := 40x_spd_sdram.o
20
21 ifndef CONFIG_NAND_SPL
22 ifndef CONFIG_NAND_U_BOOT
23 COBJS += 44x_spd_ddr.o
24 endif
25 endif
26 COBJS-$(CONFIG_SDRAM_PPC4xx_IBM_DDR2) += 44x_spd_ddr2.o
27 COBJS-$(CONFIG_PPC4xx_DDR_AUTOCALIBRATION) += 4xx_ibm_ddr2_autocalib.o
28 COBJS += 4xx_pci.o
29 COBJS += 4xx_pcie.o
30 COBJS += bedbug_405.o
31 COBJS-$(CONFIG_CMD_CHIP_CONFIG) += cmd_chip_config.o
32 COBJS += cpu.o
33 COBJS += cpu_init.o
34 COBJS += denali_data_eye.o
35 COBJS += denali_spd_ddr2.o
36 COBJS += ecc.o
37 COBJS-$(CONFIG_CMD_ECCTEST) += cmd_ecctest.o
38 COBJS += fdt.o
39 COBJS += interrupts.o
40 COBJS-$(CONFIG_CMD_REGINFO) += reginfo.o
41 COBJS += sdram.o
42 COBJS += speed.o
43 COBJS += tlb.o
44 COBJS += traps.o
45 COBJS += usb.o
46 COBJS += usb_ohci.o
47 COBJS-$(CONFIG_XILINX_440) += xilinx_irq.o
48 ifndef CONFIG_XILINX_440
49 COBJS += 4xx_uart.o
50 COBJS += gpio.o
51 COBJS += miiphy.o
52 COBJS += uic.o
53 endif
54
55 ifdef CONFIG_SPL_BUILD
56 COBJS-y += spl_boot.o
57 endif
58
59 SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
60 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS-y))
61 START := $(addprefix $(obj),$(START))
62
63 all: $(obj).depend $(START) $(LIB)
64
65 $(LIB): $(OBJS)
66 $(call cmd_link_o_target, $(OBJS))
67
68 #########################################################################
69
70 # defines $(obj).depend target
71 include $(SRCTREE)/rules.mk
72
73 sinclude $(obj).depend
74
75 #########################################################################