Dirk Behme | 0b02b18 | 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 | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Dirk Behme | 0b02b18 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)lib$(CPU).o |
Dirk Behme | 0b02b18 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 11 | |
| 12 | START := start.o |
Aneesh V | bcae721 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 13 | |
Aneesh V | bcae721 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 14 | COBJS += cache_v7.o |
Aneesh V | bcae721 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 15 | |
Aneesh V | 87d3da7 | 2011-11-21 23:33:59 +0000 | [diff] [blame] | 16 | COBJS += cpu.o |
| 17 | COBJS += syslib.o |
Dirk Behme | 0b02b18 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 18 | |
TENART Antoine | 9ed6e41 | 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 | 41aebf8 | 2012-08-08 17:03:10 -0700 | [diff] [blame] | 20 | SOBJS += lowlevel_init.o |
| 21 | endif |
| 22 | |
Andre Przywara | d429688 | 2013-09-19 18:06:45 +0200 | [diff] [blame] | 23 | ifneq ($(CONFIG_ARMV7_NONSEC)$(CONFIG_ARMV7_VIRT),) |
Andre Przywara | 45b940d | 2013-09-19 18:06:40 +0200 | [diff] [blame] | 24 | SOBJS += nonsec_virt.o |
Andre Przywara | 1ef9238 | 2013-09-19 18:06:42 +0200 | [diff] [blame] | 25 | COBJS += virt-v7.o |
Andre Przywara | 45b940d | 2013-09-19 18:06:40 +0200 | [diff] [blame] | 26 | endif |
| 27 | |
Dirk Behme | 0b02b18 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 28 | SRCS := $(START:.o=.S) $(COBJS:.o=.c) |
Tom Rini | 41aebf8 | 2012-08-08 17:03:10 -0700 | [diff] [blame] | 29 | OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) |
Dirk Behme | 0b02b18 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 30 | START := $(addprefix $(obj),$(START)) |
| 31 | |
| 32 | all: $(obj).depend $(START) $(LIB) |
| 33 | |
| 34 | $(LIB): $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 35 | $(call cmd_link_o_target, $(OBJS)) |
Dirk Behme | 0b02b18 | 2008-12-14 09:47:13 +0100 | [diff] [blame] | 36 | |
| 37 | ######################################################################### |
| 38 | |
| 39 | # defines $(obj).depend target |
| 40 | include $(SRCTREE)/rules.mk |
| 41 | |
| 42 | sinclude $(obj).depend |
| 43 | |
Stefano Babic | 87d98d3 | 2010-07-26 10:05:05 +0200 | [diff] [blame] | 44 | ######################################################################### |