blob: c6d3418c1681d67b56b7bf9d5ee64a849d8b9b84 [file] [log] [blame]
Timur Tabi9b45b5a2010-06-14 15:28:24 -05001#
2# Copyright 2010 Freescale Semiconductor, Inc.
3#
4# This program is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by the Free
6# Software Foundation; either version 2 of the License, or (at your option)
7# any later version.
8#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Timur Tabi9b45b5a2010-06-14 15:28:24 -050013
14COBJS-y += $(BOARD).o
15COBJS-y += ddr.o
16COBJS-y += law.o
17COBJS-y += tlb.o
18
Timur Tabi209c0722010-09-24 01:25:53 +020019COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
20
Timur Tabi9b45b5a2010-06-14 15:28:24 -050021SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS-y))
23SOBJS := $(addprefix $(obj),$(SOBJS))
24
25$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS))
Timur Tabi9b45b5a2010-06-14 15:28:24 -050027
Timur Tabi9b45b5a2010-06-14 15:28:24 -050028#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################