blob: 1af9ab1e96114f21872d8c863be49589ea8746e7 [file] [log] [blame]
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +02001#
Wolfgang Denk1d194b52009-05-16 10:47:37 +02002# (C) Copyright 2007-2009 DENX Software Engineering
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +02003#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +02005#
6
7include $(TOPDIR)/config.mk
8
Wolfgang Denke384d2e2009-05-16 10:47:38 +02009$(shell mkdir -p $(OBJTREE)/board/freescale/common)
10
Sebastien Carliera8d426f2010-11-05 15:48:07 +010011LIB = $(obj)lib$(CPU).o
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +020012
13START = start.o
Wolfgang Denk1d7cc1e2009-06-14 20:58:47 +020014COBJS-y := cpu.o
15COBJS-y += traps.o
16COBJS-y += cpu_init.o
17COBJS-y += fixed_sdram.o
18COBJS-y += i2c.o
19COBJS-y += interrupts.o
20COBJS-y += iopin.o
21COBJS-y += serial.o
22COBJS-y += speed.o
Kumar Galaf5e5cf12010-05-21 04:17:48 -050023COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
Kumar Galaf5e5cf12010-05-21 04:17:48 -050024COBJS-$(CONFIG_CMD_IDE) += ide.o
Wolfgang Denke384d2e2009-05-16 10:47:38 +020025COBJS-$(CONFIG_PCI) += pci.o
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +020026
Marek Vasut594f17e2012-05-25 16:14:46 +020027# Stub implementations of cache management functions for USB
28COBJS-$(CONFIG_USB_EHCI) += cache.o
29
Wolfgang Denk1d194b52009-05-16 10:47:37 +020030COBJS := $(COBJS-y)
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +020031SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
32OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
33START := $(addprefix $(obj),$(START))
34
35all: $(obj).depend $(START) $(LIB)
36
37$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010038 $(call cmd_link_o_target, $(OBJS))
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +020039
40#########################################################################
41
42# defines $(obj).depend target
43include $(SRCTREE)/rules.mk
44
45sinclude $(obj).depend
46
47#########################################################################