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.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-07-07 16:05:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(CPU).o
|
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
|
|
|
|
2010-11-20 23:03:32 +00:00
|
|
|
ifndef CONFIG_NAND_SPL
|
|
|
|
ifndef CONFIG_NAND_U_BOOT
|
2007-10-31 16:55:58 +00:00
|
|
|
COBJS += 44x_spd_ddr.o
|
2008-09-03 19:26:59 +00:00
|
|
|
endif
|
2010-11-20 23:03:32 +00:00
|
|
|
endif
|
|
|
|
COBJS-$(CONFIG_SDRAM_PPC4xx_IBM_DDR2) += 44x_spd_ddr2.o
|
|
|
|
COBJS-$(CONFIG_PPC4xx_DDR_AUTOCALIBRATION) += 4xx_ibm_ddr2_autocalib.o
|
2007-10-31 16:55:58 +00:00
|
|
|
COBJS += 4xx_pci.o
|
|
|
|
COBJS += 4xx_pcie.o
|
|
|
|
COBJS += bedbug_405.o
|
2010-11-20 23:03:32 +00:00
|
|
|
COBJS-$(CONFIG_CMD_CHIP_CONFIG) += cmd_chip_config.o
|
2007-10-31 16:55:58 +00:00
|
|
|
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
|
2010-11-20 23:03:32 +00:00
|
|
|
COBJS-$(CONFIG_CMD_ECCTEST) += cmd_ecctest.o
|
2007-10-31 16:55:58 +00:00
|
|
|
COBJS += fdt.o
|
|
|
|
COBJS += interrupts.o
|
2010-11-20 23:03:32 +00:00
|
|
|
COBJS-$(CONFIG_CMD_REGINFO) += reginfo.o
|
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
|
2010-11-20 23:03:32 +00:00
|
|
|
COBJS-$(CONFIG_XILINX_440) += xilinx_irq.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
|
|
|
|
endif
|
2004-02-06 23:19:44 +00:00
|
|
|
|
2013-04-02 08:37:04 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
COBJS-y += spl_boot.o
|
|
|
|
endif
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
2010-11-20 23:03:32 +00:00
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS-y))
|
2006-09-01 17:49:50 +00:00
|
|
|
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)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(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
|
|
|
|
|
|
|
#########################################################################
|