Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [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+ |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [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)lib$(CPU).o |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 11 | |
| 12 | START := start.o |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 13 | |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 14 | COBJS += cache_v7.o |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 15 | |
Aneesh V | 210f331 | 2011-11-21 23:33:59 +0000 | [diff] [blame] | 16 | COBJS += cpu.o |
| 17 | COBJS += syslib.o |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 18 | |
TENART Antoine | a6be77c | 2013-07-02 12:05:58 +0200 | [diff] [blame] | 19 | ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI81XX),) |
Tom Rini | ee5bce4 | 2012-08-08 17:03:10 -0700 | [diff] [blame] | 20 | SOBJS += lowlevel_init.o |
| 21 | endif |
| 22 | |
Andre Przywara | e776fd2 | 2013-09-19 18:06:40 +0200 | [diff] [blame^] | 23 | ifneq ($(CONFIG_ARMV7_NONSEC),) |
| 24 | SOBJS += nonsec_virt.o |
| 25 | endif |
| 26 | |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 27 | SRCS := $(START:.o=.S) $(COBJS:.o=.c) |
Tom Rini | ee5bce4 | 2012-08-08 17:03:10 -0700 | [diff] [blame] | 28 | OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 29 | START := $(addprefix $(obj),$(START)) |
| 30 | |
| 31 | all: $(obj).depend $(START) $(LIB) |
| 32 | |
| 33 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 34 | $(call cmd_link_o_target, $(OBJS)) |
Dirk Behme | 7d75a10 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 35 | |
| 36 | ######################################################################### |
| 37 | |
| 38 | # defines $(obj).depend target |
| 39 | include $(SRCTREE)/rules.mk |
| 40 | |
| 41 | sinclude $(obj).depend |
| 42 | |
Stefano Babic | dd1d1d5 | 2010-07-26 10:05:05 +0200 | [diff] [blame] | 43 | ######################################################################### |