]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/tegra20-common/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / arm / cpu / tegra20-common / Makefile
1 #
2 # (C) Copyright 2010,2011 Nvidia Corporation.
3 #
4 # (C) Copyright 2000-2008
5 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 #
7 # SPDX-License-Identifier:      GPL-2.0+
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.
14 CFLAGS_arch/arm/cpu/tegra20-common/warmboot_avp.o += -march=armv4t
15
16 LIB     = $(obj)lib$(SOC)-common.o
17
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
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 #########################################################################