2008-12-14 08:47:13 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2003
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(SOC).o
|
2008-12-14 08:47:13 +00:00
|
|
|
|
|
|
|
SOBJS := lowlevel_init.o
|
2009-05-15 21:45:22 +00:00
|
|
|
|
|
|
|
COBJS += board.o
|
|
|
|
COBJS += clock.o
|
|
|
|
COBJS += mem.o
|
|
|
|
COBJS += sys_info.o
|
2011-11-18 12:48:07 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
COBJS-$(CONFIG_SPL_OMAP3_ID_NAND) += spl_id_nand.o
|
|
|
|
endif
|
2008-12-14 08:47:13 +00:00
|
|
|
|
2011-11-28 06:37:35 +00:00
|
|
|
COBJS-$(CONFIG_DRIVER_TI_EMAC) += emac.o
|
2010-06-07 19:20:53 +00:00
|
|
|
COBJS-$(CONFIG_EMIF4) += emif4.o
|
2010-06-07 19:20:34 +00:00
|
|
|
COBJS-$(CONFIG_SDRC) += sdrc.o
|
2012-11-06 13:48:27 +00:00
|
|
|
COBJS-$(CONFIG_USB_MUSB_AM35X) += am35x_musb.o
|
2010-06-07 19:20:34 +00:00
|
|
|
|
2008-12-14 08:47:13 +00:00
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
2010-06-07 19:20:34 +00:00
|
|
|
OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
|
2008-12-14 08:47:13 +00:00
|
|
|
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2008-12-14 08:47:13 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|