]>
Commit | Line | Data |
---|---|---|
d9e73a87 AM |
1 | # |
2 | # (C) Copyright 2010,2011 Nvidia Corporation. | |
3 | # | |
4 | # (C) Copyright 2000-2008 | |
5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
6 | # | |
1a459660 | 7 | # SPDX-License-Identifier: GPL-2.0+ |
d9e73a87 AM |
8 | # |
9 | ||
10 | include $(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. | |
d9e73a87 AM |
14 | CFLAGS_arch/arm/cpu/tegra20-common/warmboot_avp.o += -march=armv4t |
15 | ||
16 | LIB = $(obj)lib$(SOC)-common.o | |
17 | ||
3064f322 | 18 | COBJS-y += clock.o funcmux.o pinmux.o |
29f3e3f2 | 19 | COBJS-$(CONFIG_TEGRA_LP0) += warmboot.o crypto.o warmboot_avp.o |
d9e73a87 AM |
20 | COBJS-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o |
21 | COBJS-$(CONFIG_TEGRA_PMU) += pmu.o | |
22 | ||
23 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) | |
24 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) | |
25 | ||
26 | all: $(obj).depend $(LIB) | |
27 | ||
28 | $(LIB): $(OBJS) | |
29 | $(call cmd_link_o_target, $(OBJS)) | |
30 | ||
31 | ######################################################################### | |
32 | ||
33 | # defines $(obj).depend target | |
34 | include $(SRCTREE)/rules.mk | |
35 | ||
36 | sinclude $(obj).depend | |
37 | ||
38 | ######################################################################### |