2008-12-14 08:47:13 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2003
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2008-12-14 08:47:13 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
#########################################################################
|