2010-06-08 20:07:46 +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+
|
2010-06-08 20:07:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)libomap-common.o
|
2010-06-08 20:07:46 +00:00
|
|
|
|
2012-11-15 01:21:18 +00:00
|
|
|
COBJS := reset.o
|
|
|
|
COBJS += timer.o
|
2011-07-21 13:10:12 +00:00
|
|
|
COBJS += utils.o
|
2010-06-08 20:07:46 +00:00
|
|
|
|
2011-11-15 14:49:58 +00:00
|
|
|
ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
|
2011-11-15 14:49:50 +00:00
|
|
|
COBJS += hwinit-common.o
|
|
|
|
COBJS += clocks-common.o
|
|
|
|
COBJS += emif-common.o
|
2012-03-01 14:17:37 +00:00
|
|
|
COBJS += vc.o
|
2013-05-20 22:42:08 +00:00
|
|
|
COBJS += abb.o
|
2012-01-09 20:38:59 +00:00
|
|
|
endif
|
|
|
|
|
2013-03-15 10:07:10 +00:00
|
|
|
ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI814X),)
|
2012-01-09 20:38:59 +00:00
|
|
|
COBJS += boot-common.o
|
2011-11-15 14:49:50 +00:00
|
|
|
SOBJS += lowlevel_init.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
2011-11-15 14:49:58 +00:00
|
|
|
ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
|
2011-11-15 14:49:50 +00:00
|
|
|
COBJS += mem-common.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-06-08 20:07:46 +00:00
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
|
|
|
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2010-06-08 20:07:46 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|