2 # Copyright 2008-2011 Freescale Semiconductor, Inc.
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # Version 2 as published by the Free Software Foundation.
9 include $(TOPDIR)/config.mk
13 COBJS-$(CONFIG_FSL_DDR1) += main.o util.o ctrl_regs.o options.o \
14 lc_common_dimm_params.o
16 COBJS-$(CONFIG_FSL_DDR2) += main.o util.o ctrl_regs.o options.o \
17 lc_common_dimm_params.o
19 COBJS-$(CONFIG_FSL_DDR3) += main.o util.o ctrl_regs.o options.o \
20 lc_common_dimm_params.o
24 ifdef CONFIG_SPD_EEPROM
28 COBJS-$(CONFIG_FSL_DDR1) += ddr1_dimm_params.o
29 COBJS-$(CONFIG_FSL_DDR2) += ddr2_dimm_params.o
30 COBJS-$(CONFIG_FSL_DDR3) += ddr3_dimm_params.o
33 COBJS-$(CONFIG_FSL_DDR_INTERACTIVE) += interactive.o
35 SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
36 OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
38 all: $(obj).depend $(LIB)
41 $(call cmd_link_o_target, $(OBJS))
43 include $(SRCTREE)/rules.mk
45 sinclude $(obj).depend