]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/Makefile
Merge branch 'next' of git://git.denx.de/u-boot-mpc83xx
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / Makefile
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
8 include $(TOPDIR)/config.mk
9
10 LIB     = $(obj)lib$(CPU).o
11
12 START   := start.o
13
14 COBJS   += cache_v7.o
15
16 COBJS   += cpu.o
17 COBJS   += syslib.o
18
19 ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI81XX),)
20 SOBJS   += lowlevel_init.o
21 endif
22
23 ifneq ($(CONFIG_ARMV7_NONSEC)$(CONFIG_ARMV7_VIRT),)
24 SOBJS   += nonsec_virt.o
25 COBJS   += virt-v7.o
26 endif
27
28 SRCS    := $(START:.o=.S) $(COBJS:.o=.c)
29 OBJS    := $(addprefix $(obj),$(COBJS) $(SOBJS))
30 START   := $(addprefix $(obj),$(START))
31
32 all:    $(obj).depend $(START) $(LIB)
33
34 $(LIB): $(OBJS)
35         $(call cmd_link_o_target, $(OBJS))
36
37 #########################################################################
38
39 # defines $(obj).depend target
40 include $(SRCTREE)/rules.mk
41
42 sinclude $(obj).depend
43
44 #########################################################################