]> git.sur5r.net Git - u-boot/commitdiff
ARM: tegra: move Tegra specific code under arch/arm/
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 17 Oct 2013 11:38:54 +0000 (20:38 +0900)
committerTom Rini <trini@ti.com>
Thu, 31 Oct 2013 17:26:44 +0000 (13:26 -0400)
This patch moves Tegra specific directory entries
from the toplevel Makefile and spl/Makefile
to arch/arm/cpu/*/Makefile using Kbuild descending feature.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Warren <TWarren@nvidia.com>
Makefile
arch/arm/cpu/Makefile [new file with mode: 0644]
arch/arm/cpu/arm720t/Makefile
arch/arm/cpu/armv7/Makefile
spl/Makefile

index f4bde335d8100e756dc22337e08796943b34af63..7e5fd9466b982bf2bdd0f6710ecbe0d70c93c1e5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -314,11 +314,7 @@ endif
 ifeq ($(SOC),exynos)
 LIBS-y += $(CPUDIR)/s5p-common/libs5p-common.o
 endif
-ifneq ($(CONFIG_TEGRA),)
-LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o
-LIBS-y += arch/$(ARCH)/cpu/tegra-common/libcputegra-common.o
-LIBS-y += $(CPUDIR)/tegra-common/libtegra-common.o
-endif
+LIBS-$(CONFIG_ARM) += arch/arm/cpu/libcpu.o
 
 LIBS := $(addprefix $(obj),$(sort $(LIBS-y)))
 .PHONY : $(LIBS)
diff --git a/arch/arm/cpu/Makefile b/arch/arm/cpu/Makefile
new file mode 100644 (file)
index 0000000..fd0da53
--- /dev/null
@@ -0,0 +1,2 @@
+obj-$(CONFIG_TEGRA) += $(SOC)-common/
+obj-$(CONFIG_TEGRA) += tegra-common/
index 243a123378198b701c428e93e632fc75b494ef36..6badb3bb84b7200d9714c47d7f99ab09fdc11430 100644 (file)
@@ -7,3 +7,5 @@
 
 extra-y        = start.o
 obj-y  = interrupts.o cpu.o
+
+obj-$(CONFIG_TEGRA) += tegra-common/
index 8a8b6027410480779764e0739f28389a6d754835..2c17322f0c6081a2da549471fcf84d0adc07c2f0 100644 (file)
@@ -20,3 +20,5 @@ ifneq ($(CONFIG_ARMV7_NONSEC)$(CONFIG_ARMV7_VIRT),)
 obj-y  += nonsec_virt.o
 obj-y  += virt-v7.o
 endif
+
+obj-$(CONFIG_TEGRA) += tegra-common/
index d24c1cd4dad26d87a60361f2f3bd5491e9326bd9..d3dc51133e10344fb4bc640ff53aabb87972d585 100644 (file)
@@ -109,11 +109,7 @@ ifneq (,$(CONFIG_MX23)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
 LIBS-y += arch/$(ARCH)/imx-common/libimx-common.o
 endif
 
-ifneq ($(CONFIG_TEGRA),)
-LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o
-LIBS-y += arch/$(ARCH)/cpu/tegra-common/libcputegra-common.o
-LIBS-y += $(CPUDIR)/tegra-common/libtegra-common.o
-endif
+LIBS-$(CONFIG_ARM) += arch/arm/cpu/libcpu.o
 
 ifneq ($(CONFIG_MX23)$(CONFIG_MX35),)
 LIBS-y += arch/$(ARCH)/imx-common/libimx-common.o