blob: fc0b7a192e8cd2d56d32731438f326f718dbe683 [file] [log] [blame]
wdenk945af8d2003-07-16 21:53:01 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2003-2006
wdenk945af8d2003-07-16 21:53:01 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk945af8d2003-07-16 21:53:01 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenk945af8d2003-07-16 21:53:01 +000011
Wolfgang Denk085ecde2010-11-23 13:20:22 +010012SSTART = start.o
13CSTART = traps.o
14SOBJS += io.o
15SOBJS += firmware_sc_task_bestcomm.impl.o
16COBJS-y += i2c.o
17COBJS-y += cpu.o
18COBJS-y += cpu_init.o
19COBJS-y += ide.o
20COBJS-y += interrupts.o
21COBJS-y += loadtask.o
22COBJS-y += pci_mpc5200.o
23COBJS-y += serial.o
24COBJS-y += speed.o
25COBJS-$(CONFIG_CMD_USB) += usb_ohci.o
26COBJS-$(CONFIG_CMD_USB) += usb.o
wdenk945af8d2003-07-16 21:53:01 +000027
Stefan Roese083f2e02012-08-16 17:53:18 +020028ifdef CONFIG_SPL_BUILD
29COBJS-y += spl_boot.o
30endif
31
Wolfgang Denk085ecde2010-11-23 13:20:22 +010032SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
33OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
34START := $(addprefix $(obj),$(SSTART) $(CSTART))
Marian Balakowiczf9328632006-09-01 19:49:50 +020035
36all: $(obj).depend $(START) $(LIB)
wdenk945af8d2003-07-16 21:53:01 +000037
38$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010039 $(call cmd_link_o_target, $(OBJS))
wdenk945af8d2003-07-16 21:53:01 +000040
41#########################################################################
42
Marian Balakowiczf9328632006-09-01 19:49:50 +020043# defines $(obj).depend target
44include $(SRCTREE)/rules.mk
wdenk945af8d2003-07-16 21:53:01 +000045
Marian Balakowiczf9328632006-09-01 19:49:50 +020046sinclude $(obj).depend
wdenk945af8d2003-07-16 21:53:01 +000047
48#########################################################################