blob: 1af9ab1e96114f21872d8c863be49589ea8746e7 [file] [log] [blame]
Rafal Jaworowski8993e542007-07-27 14:43:59 +02001#
Wolfgang Denk03e069d2009-05-16 10:47:37 +02002# (C) Copyright 2007-2009 DENX Software Engineering
Rafal Jaworowski8993e542007-07-27 14:43:59 +02003#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Rafal Jaworowski8993e542007-07-27 14:43:59 +02005#
6
7include $(TOPDIR)/config.mk
8
Wolfgang Denkde26ef92009-05-16 10:47:38 +02009$(shell mkdir -p $(OBJTREE)/board/freescale/common)
10
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010011LIB = $(obj)lib$(CPU).o
Rafal Jaworowski8993e542007-07-27 14:43:59 +020012
13START = start.o
Wolfgang Denk7629f1c2009-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 Gala6ece2552010-05-21 04:17:48 -050023COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
Kumar Gala6ece2552010-05-21 04:17:48 -050024COBJS-$(CONFIG_CMD_IDE) += ide.o
Wolfgang Denkde26ef92009-05-16 10:47:38 +020025COBJS-$(CONFIG_PCI) += pci.o
Rafal Jaworowski8993e542007-07-27 14:43:59 +020026
Marek Vasut25315682012-05-25 16:14:46 +020027# Stub implementations of cache management functions for USB
28COBJS-$(CONFIG_USB_EHCI) += cache.o
29
Wolfgang Denk03e069d2009-05-16 10:47:37 +020030COBJS := $(COBJS-y)
Rafal Jaworowski8993e542007-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 Carlier6d8962e2010-11-05 15:48:07 +010038 $(call cmd_link_o_target, $(OBJS))
Rafal Jaworowski8993e542007-07-27 14:43:59 +020039
40#########################################################################
41
42# defines $(obj).depend target
43include $(SRCTREE)/rules.mk
44
45sinclude $(obj).depend
46
47#########################################################################