blob: c2e282b95286cb993a2bb9fc646c251ea81b7b6a [file] [log] [blame]
Sergei Poselenovf2bf96c2008-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 Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Sergei Poselenovf2bf96c2008-04-30 11:42:50 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Sergei Poselenovf2bf96c2008-04-30 11:42:50 +020013#
14
Kumar Gala01135a82008-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 Poselenovf2bf96c2008-04-30 11:42:50 +020021
Kumar Gala01135a82008-08-26 22:56:56 -050022SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS-y))
Sergei Poselenovf2bf96c2008-04-30 11:42:50 +020024SOBJS := $(addprefix $(obj),$(SOBJS))
25
26$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS))
Sergei Poselenovf2bf96c2008-04-30 11:42:50 +020028
Sergei Poselenovf2bf96c2008-04-30 11:42:50 +020029#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################