Steve Sakoman | 1ad2158 | 2010-06-08 13:07:46 -0700 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2003 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Steve Sakoman | 1ad2158 | 2010-06-08 13:07:46 -0700 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)libomap-common.o |
Steve Sakoman | 1ad2158 | 2010-06-08 13:07:46 -0700 | [diff] [blame] | 11 | |
Robert P. J. Day | 7bf063b | 2012-11-15 01:21:18 +0000 | [diff] [blame] | 12 | COBJS := reset.o |
| 13 | COBJS += timer.o |
Aneesh V | c0e8852 | 2011-07-21 09:10:12 -0400 | [diff] [blame] | 14 | COBJS += utils.o |
Steve Sakoman | 1ad2158 | 2010-06-08 13:07:46 -0700 | [diff] [blame] | 15 | |
Sricharan | 9784f1f | 2011-11-15 09:49:58 -0500 | [diff] [blame] | 16 | ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),) |
Sricharan | 060cd22 | 2011-11-15 09:49:50 -0500 | [diff] [blame] | 17 | COBJS += hwinit-common.o |
| 18 | COBJS += clocks-common.o |
| 19 | COBJS += emif-common.o |
Nishanth Menon | 41d7ab1 | 2012-03-01 14:17:37 +0000 | [diff] [blame] | 20 | COBJS += vc.o |
Andrii Tseglytskyi | 28095da | 2013-05-20 22:42:08 +0000 | [diff] [blame] | 21 | COBJS += abb.o |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 22 | endif |
| 23 | |
Lokesh Vutla | 5605505 | 2013-07-30 11:36:30 +0530 | [diff] [blame^] | 24 | ifeq ($(CONFIG_OMAP34XX),) |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 25 | COBJS += boot-common.o |
Sricharan | 060cd22 | 2011-11-15 09:49:50 -0500 | [diff] [blame] | 26 | SOBJS += lowlevel_init.o |
| 27 | endif |
| 28 | |
Sricharan | 060cd22 | 2011-11-15 09:49:50 -0500 | [diff] [blame] | 29 | ifndef CONFIG_SPL_BUILD |
Sricharan | 9784f1f | 2011-11-15 09:49:58 -0500 | [diff] [blame] | 30 | ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),) |
Sricharan | 060cd22 | 2011-11-15 09:49:50 -0500 | [diff] [blame] | 31 | COBJS += mem-common.o |
| 32 | endif |
| 33 | endif |
| 34 | |
Steve Sakoman | 1ad2158 | 2010-06-08 13:07:46 -0700 | [diff] [blame] | 35 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 36 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 37 | |
| 38 | all: $(obj).depend $(LIB) |
| 39 | |
| 40 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 41 | $(call cmd_link_o_target, $(OBJS)) |
Steve Sakoman | 1ad2158 | 2010-06-08 13:07:46 -0700 | [diff] [blame] | 42 | |
| 43 | ######################################################################### |
| 44 | |
| 45 | # defines $(obj).depend target |
| 46 | include $(SRCTREE)/rules.mk |
| 47 | |
| 48 | sinclude $(obj).depend |
| 49 | |
| 50 | ######################################################################### |