2002-07-07 16:05:51 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2002-07-07 16:05:51 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
LIB = $(obj)lib$(CPU).a
|
2002-07-07 16:05:51 +00:00
|
|
|
|
2007-10-31 16:55:58 +00:00
|
|
|
START := resetvec.o
|
|
|
|
START += start.o
|
|
|
|
|
|
|
|
SOBJS := cache.o
|
|
|
|
SOBJS += dcr.o
|
|
|
|
SOBJS += kgdb.o
|
|
|
|
|
|
|
|
COBJS := 40x_spd_sdram.o
|
2009-10-04 18:04:21 +00:00
|
|
|
|
2007-10-31 16:55:58 +00:00
|
|
|
COBJS += 44x_spd_ddr.o
|
|
|
|
COBJS += 44x_spd_ddr2.o
|
2008-09-03 19:26:59 +00:00
|
|
|
ifdef CONFIG_PPC4xx_DDR_AUTOCALIBRATION
|
|
|
|
COBJS += 4xx_ibm_ddr2_autocalib.o
|
|
|
|
endif
|
2007-10-31 16:55:58 +00:00
|
|
|
COBJS += 4xx_pci.o
|
|
|
|
COBJS += 4xx_pcie.o
|
|
|
|
COBJS += bedbug_405.o
|
2009-07-20 04:57:27 +00:00
|
|
|
ifdef CONFIG_CMD_CHIP_CONFIG
|
|
|
|
COBJS += cmd_chip_config.o
|
|
|
|
endif
|
2007-10-31 16:55:58 +00:00
|
|
|
COBJS += commproc.o
|
|
|
|
COBJS += cpu.o
|
|
|
|
COBJS += cpu_init.o
|
2007-12-22 20:16:11 +00:00
|
|
|
COBJS += denali_data_eye.o
|
|
|
|
COBJS += denali_spd_ddr2.o
|
2008-05-22 21:44:14 +00:00
|
|
|
COBJS += ecc.o
|
2007-10-31 16:55:58 +00:00
|
|
|
COBJS += fdt.o
|
|
|
|
COBJS += i2c.o
|
|
|
|
COBJS += interrupts.o
|
|
|
|
COBJS += iop480_uart.o
|
2009-10-04 18:04:21 +00:00
|
|
|
ifdef CONFIG_CMD_REGINFO
|
|
|
|
COBJS += reginfo.o
|
|
|
|
endif
|
2007-10-31 16:55:58 +00:00
|
|
|
COBJS += sdram.o
|
|
|
|
COBJS += speed.o
|
|
|
|
COBJS += tlb.o
|
|
|
|
COBJS += traps.o
|
|
|
|
COBJS += usb.o
|
|
|
|
COBJS += usb_ohci.o
|
|
|
|
COBJS += usbdev.o
|
2008-07-17 09:44:12 +00:00
|
|
|
ifndef CONFIG_XILINX_440
|
|
|
|
COBJS += 4xx_uart.o
|
|
|
|
COBJS += gpio.o
|
|
|
|
COBJS += miiphy.o
|
|
|
|
COBJS += uic.o
|
|
|
|
else
|
|
|
|
COBJS += xilinx_irq.o
|
|
|
|
endif
|
2004-02-06 23:19:44 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
|
|
|
START := $(addprefix $(obj),$(START))
|
2002-07-07 16:05:51 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
all: $(obj).depend $(START) $(LIB)
|
2002-07-07 16:05:51 +00:00
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2006-10-08 23:02:05 +00:00
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
2002-07-07 16:05:51 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2002-07-07 16:05:51 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
sinclude $(obj).depend
|
2002-07-07 16:05:51 +00:00
|
|
|
|
|
|
|
#########################################################################
|