]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
imx: spl: Merge libimx-common make rules
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Mon, 6 May 2013 01:15:48 +0000 (01:15 +0000)
committerStefano Babic <sbabic@denx.de>
Thu, 16 May 2013 15:44:45 +0000 (17:44 +0200)
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
spl/Makefile

index 8b655c485aa12ec074aa50b01d7c44b5e12d7f77..d8fe948ff0a77ac3c10083fccd3a6133a6c03c6e 100644 (file)
@@ -88,7 +88,7 @@ ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(C
 LIBS-y += $(CPUDIR)/omap-common/libomap-common.o
 endif
 
-ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
+ifneq (,$(CONFIG_MX23)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
 LIBS-y += arch/$(ARCH)/imx-common/libimx-common.o
 endif
 
@@ -98,10 +98,6 @@ LIBS-y += arch/$(ARCH)/cpu/tegra-common/libcputegra-common.o
 LIBS-y += $(CPUDIR)/tegra-common/libtegra-common.o
 endif
 
-ifneq ($(CONFIG_MX23)$(CONFIG_MX35),)
-LIBS-y += arch/$(ARCH)/imx-common/libimx-common.o
-endif
-
 # Add GCC lib
 ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
 PLATFORM_LIBGCC = $(SPLTREE)/arch/$(ARCH)/lib/libgcc.o