summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2012-09-05 20:16:36 +0000
committerStefano Babic <sbabic@denx.de>2012-09-10 14:24:29 +0200
commitea00e59be08989dae905076f4acf3eb297fce552 (patch)
tree2eff5a7c4f2a8205091fa2960c815007575bce4d /Makefile
parentb85705e60ec0f5ce2638ccf27a802e8df1a8d57c (diff)
downloadu-boot-imx-ea00e59be08989dae905076f4acf3eb297fce552.zip
u-boot-imx-ea00e59be08989dae905076f4acf3eb297fce552.tar.gz
u-boot-imx-ea00e59be08989dae905076f4acf3eb297fce552.tar.bz2
MX: set a common place to share code for Freescale i.MX
Up now only MX5 and MX6 can share code, because they have a common source directory in cpu/armv7. Other not armv7 i.MX can profit of the same shared code. Move these files into a directory accessible for all, similar to plat-mxc in linux. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index e5f8d05..fe2f98c 100644
--- a/Makefile
+++ b/Makefile
@@ -306,11 +306,8 @@ ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
LIBS-y += $(CPUDIR)/omap-common/libomap-common.o
endif
-ifeq ($(SOC),mx5)
-LIBS-y += $(CPUDIR)/imx-common/libimx-common.o
-endif
-ifeq ($(SOC),mx6)
-LIBS-y += $(CPUDIR)/imx-common/libimx-common.o
+ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
+LIBS-y += arch/$(ARCH)/imx-common/libimx-common.o
endif
ifeq ($(SOC),s5pc1xx)