blob: 175387fd6585943e3eb3e0a108499e11e9a23b67 [file] [log] [blame]
Allen Martin21fe2f02012-08-31 08:30:01 +00001#
2# (C) Copyright 2010,2011 Nvidia Corporation.
3#
4# (C) Copyright 2000-2008
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Allen Martin21fe2f02012-08-31 08:30:01 +00008#
9
10include $(TOPDIR)/config.mk
11
12# The AVP is ARMv4T architecture so we must use special compiler
13# flags for any startup files it might use.
Allen Martin21fe2f02012-08-31 08:30:01 +000014CFLAGS_arch/arm/cpu/tegra20-common/warmboot_avp.o += -march=armv4t
15
16LIB = $(obj)lib$(SOC)-common.o
17
Tom Warrenf83e9c62012-09-19 14:08:52 -070018COBJS-y += clock.o funcmux.o pinmux.o
Tom Warren22562a42012-09-04 17:00:24 -070019COBJS-$(CONFIG_TEGRA_LP0) += warmboot.o crypto.o warmboot_avp.o
Allen Martin21fe2f02012-08-31 08:30:01 +000020COBJS-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o
21COBJS-$(CONFIG_TEGRA_PMU) += pmu.o
22
23SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
24OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
25
26all: $(obj).depend $(LIB)
27
28$(LIB): $(OBJS)
29 $(call cmd_link_o_target, $(OBJS))
30
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################