Allen Martin | d9e73a8 | 2012-08-31 08:30:01 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2010,2011 Nvidia Corporation. |
| 3 | # |
| 4 | # (C) Copyright 2000-2008 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Allen Martin | d9e73a8 | 2012-08-31 08:30:01 +0000 | [diff] [blame] | 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. |
Allen Martin | d9e73a8 | 2012-08-31 08:30:01 +0000 | [diff] [blame] | 14 | CFLAGS_arch/arm/cpu/tegra20-common/warmboot_avp.o += -march=armv4t |
| 15 | |
| 16 | LIB = $(obj)lib$(SOC)-common.o |
| 17 | |
Tom Warren | 3064f32 | 2012-09-19 14:08:52 -0700 | [diff] [blame] | 18 | COBJS-y += clock.o funcmux.o pinmux.o |
Tom Warren | 29f3e3f | 2012-09-04 17:00:24 -0700 | [diff] [blame] | 19 | COBJS-$(CONFIG_TEGRA_LP0) += warmboot.o crypto.o warmboot_avp.o |
Allen Martin | d9e73a8 | 2012-08-31 08:30:01 +0000 | [diff] [blame] | 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 | ######################################################################### |