blob: c2e282b95286cb993a2bb9fc646c251ea81b7b6a [file] [log] [blame]
Sergei Poselenov5d108ac2008-04-30 11:42:50 +02001#
2# (C) Copyright 2008
3# Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com.
4# (C) Copyright 2001-2006
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Sergei Poselenov5d108ac2008-04-30 11:42:50 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Sergei Poselenov5d108ac2008-04-30 11:42:50 +020013#
14
Kumar Galabe0bd822008-08-26 22:56:56 -050015COBJS-y += $(BOARD).o
16COBJS-y += law.o
17COBJS-y += tlb.o
18COBJS-y += nand.o
19COBJS-y += sdram.o
20COBJS-$(CONFIG_FSL_DDR2) += ddr.o
Sergei Poselenov5d108ac2008-04-30 11:42:50 +020021
Kumar Galabe0bd822008-08-26 22:56:56 -050022SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS-y))
Sergei Poselenov5d108ac2008-04-30 11:42:50 +020024SOBJS := $(addprefix $(obj),$(SOBJS))
25
26$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS))
Sergei Poselenov5d108ac2008-04-30 11:42:50 +020028
Sergei Poselenov5d108ac2008-04-30 11:42:50 +020029#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################