2 # (C) Copyright 2010,2011 Nvidia Corporation.
4 # (C) Copyright 2000-2008
5 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 # SPDX-License-Identifier: GPL-2.0+
10 include $(TOPDIR)/config.mk
12 # The AVP is ARMv4T architecture so we must use special compiler
13 # flags for any startup files it might use.
14 CFLAGS_arch/arm/cpu/tegra20-common/warmboot_avp.o += -march=armv4t
16 LIB = $(obj)lib$(SOC)-common.o
18 COBJS-y += clock.o funcmux.o pinmux.o
19 COBJS-$(CONFIG_TEGRA_LP0) += warmboot.o crypto.o warmboot_avp.o
20 COBJS-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o
21 COBJS-$(CONFIG_TEGRA_PMU) += pmu.o
23 SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
24 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
26 all: $(obj).depend $(LIB)
29 $(call cmd_link_o_target, $(OBJS))
31 #########################################################################
33 # defines $(obj).depend target
34 include $(SRCTREE)/rules.mk
36 sinclude $(obj).depend
38 #########################################################################