xref: /openbmc/u-boot/arch/arm/cpu/armv7/Makefile (revision 3765b3e7)
1#
2# (C) Copyright 2000-2003
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	= $(obj)lib$(CPU).o
11
12START	:= start.o
13
14COBJS	+= cache_v7.o
15
16COBJS	+= cpu.o
17COBJS	+= syslib.o
18
19ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI81XX),)
20SOBJS	+= lowlevel_init.o
21endif
22
23ifneq ($(CONFIG_ARMV7_NONSEC)$(CONFIG_ARMV7_VIRT),)
24SOBJS	+= nonsec_virt.o
25COBJS	+= virt-v7.o
26endif
27
28SRCS	:= $(START:.o=.S) $(COBJS:.o=.c)
29OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
30START	:= $(addprefix $(obj),$(START))
31
32all:	$(obj).depend $(START) $(LIB)
33
34$(LIB):	$(OBJS)
35	$(call cmd_link_o_target, $(OBJS))
36
37#########################################################################
38
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
41
42sinclude $(obj).depend
43
44#########################################################################
45