2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR
)/config.mk
10 LIB
= $(obj
)lib
$(CPU
).o
19 COBJS
:= 40x_spd_sdram.o
21 ifndef CONFIG_NAND_SPL
22 ifndef CONFIG_NAND_U_BOOT
23 COBJS
+= 44x_spd_ddr.o
26 COBJS-
$(CONFIG_SDRAM_PPC4xx_IBM_DDR2
) += 44x_spd_ddr2.o
27 COBJS-
$(CONFIG_PPC4xx_DDR_AUTOCALIBRATION
) += 4xx_ibm_ddr2_autocalib.o
31 COBJS-
$(CONFIG_CMD_CHIP_CONFIG
) += cmd_chip_config.o
34 COBJS
+= denali_data_eye.o
35 COBJS
+= denali_spd_ddr2.o
37 COBJS-
$(CONFIG_CMD_ECCTEST
) += cmd_ecctest.o
40 COBJS-
$(CONFIG_CMD_REGINFO
) += reginfo.o
47 COBJS-
$(CONFIG_XILINX_440
) += xilinx_irq.o
48 ifndef CONFIG_XILINX_440
55 ifdef CONFIG_SPL_BUILD
59 SRCS
:= $(START
:.o
=.S
) $(SOBJS
:.o
=.S
) $(COBJS
:.o
=.c
)
60 OBJS
:= $(addprefix $(obj
),$(SOBJS
) $(COBJS
) $(COBJS-y
))
61 START
:= $(addprefix $(obj
),$(START
))
63 all: $(obj
).depend
$(START
) $(LIB
)
66 $(call cmd_link_o_target
, $(OBJS
))
68 #########################################################################
70 # defines $(obj).depend target
71 include $(SRCTREE
)/rules.mk
73 sinclude
$(obj
).depend
75 #########################################################################