blob: ecffaa90335dc2caf0cbf865e715484898efe20a [file] [log] [blame]
Joe Hamman11c45eb2007-12-13 06:45:08 -06001#
2# (C) Copyright 2004-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Paul Gortmakerbd42bbb2009-09-18 19:08:46 -04005# (C) Copyright 2007 Wind River Systems Inc <www.windriver.com>.
6# Added support for Wind River SBC8548 board
Joe Hamman11c45eb2007-12-13 06:45:08 -06007#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Joe Hamman11c45eb2007-12-13 06:45:08 -06009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Joe Hamman11c45eb2007-12-13 06:45:08 -060014
Kumar Gala33b90792008-08-26 23:15:28 -050015COBJS-y += $(BOARD).o
16COBJS-y += law.o
17COBJS-y += tlb.o
18COBJS-$(CONFIG_FSL_DDR2) += ddr.o
Joe Hamman11c45eb2007-12-13 06:45:08 -060019
Kumar Gala33b90792008-08-26 23:15:28 -050020SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS-y))
Joe Hamman11c45eb2007-12-13 06:45:08 -060022SOBJS := $(addprefix $(obj),$(SOBJS))
23
24$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Joe Hamman11c45eb2007-12-13 06:45:08 -060026
Joe Hamman11c45eb2007-12-13 06:45:08 -060027#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################